-
Notifications
You must be signed in to change notification settings - Fork 7
Switch railsware github org to mailtap org #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThis PR updates repository references across the codebase from the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes All changes follow an identical pattern of replacing one URL string with another across project metadata and test fixtures. While the change spans 50+ files, the homogeneous nature of updates (no logic changes, no control-flow modifications) keeps the review straightforward—primarily requiring spot-checking consistency rather than analyzing complex edits. Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (48)
README.md(2 hunks)lib/mailtrap/client.rb(1 hunks)mailtrap.gemspec(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_ActionMailer_DeliveryMethod/_deliver_/converts_the_message_and_sends_via_API.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/when_all_params_are_set/sending_is_successful.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/when_api_key_is_incorrect/raises_authorization_error_with_array_of_errors.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/when_no_subject_and_no_text_set/raises_sending_error_with_array_of_errors.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/with_an_alternative_host/sending_is_successful.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/with_bulk_flag/chooses_host_for_bulk_sending.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/with_bulk_flag_and_alternative_host/chooses_alternative_host.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/with_sandbox_flag/chooses_host_for_sandbox_sending.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail_is_hash/sends_an_email.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_template/when_all_params_are_set/sending_is_successful.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_template/when_api_key_is_incorrect/raises_authorization_error_with_array_of_errors.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_template/when_using_sandbox/sending_is_successful.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_Client/_send_batch/when_in_bulk_stream/successfully_sends_a_batch_of_emails.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_Client/_send_batch/when_in_sandbox_mode/successfully_sends_a_batch_of_emails.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_Client/_send_batch/with_API_errors/handles_API_errors.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_Client/_send_batch/with_template/successfully_sends_a_batch_of_emails_with_template.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_create/maps_response_data_to_EmailTemplate_object.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_create/returns_an_EmailTemplate_object.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_create/when_API_returns_an_error/raises_a_Mailtrap_Error.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_create/with_hash_request/maps_response_data_to_EmailTemplate_object.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_create/with_hash_request/returns_an_EmailTemplate_object.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_delete/returns_no_content.yml(2 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_delete/when_template_does_not_exist/raises_not_found_error.yml(2 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_get/maps_response_data_to_EmailTemplate_object.yml(2 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_get/returns_an_EmailTemplate_object.yml(2 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_get/when_template_does_not_exist/raises_not_found_error.yml(2 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_list/maps_response_data_to_EmailTemplate_objects.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_list/returns_an_array_of_EmailTemplate_objects.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_list/when_api_key_is_incorrect/raises_authorization_error.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/maps_response_data_to_EmailTemplate_object.yml(2 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/returns_an_EmailTemplate_object.yml(2 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/when_template_does_not_exist/raises_not_found_error.yml(2 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/when_updating_multiple_specific_fields/preserves_other_fields_unchanged.yml(2 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/when_updating_multiple_specific_fields/returns_an_EmailTemplate_object.yml(2 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/when_updating_multiple_specific_fields/updates_only_the_specified_fields.yml(2 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/when_updating_only_body_html/preserves_other_fields_unchanged.yml(2 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/when_updating_only_body_html/returns_an_EmailTemplate_object.yml(2 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/when_updating_only_body_html/updates_only_the_body_html_field.yml(2 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/when_updating_only_category/preserves_other_fields_unchanged.yml(2 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/when_updating_only_category/returns_an_EmailTemplate_object.yml(2 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/when_updating_only_category/updates_only_the_category_field.yml(2 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/with_hash_request/maps_response_data_to_EmailTemplate_object.yml(2 hunks)spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/with_hash_request/returns_an_EmailTemplate_object.yml(2 hunks)spec/fixtures/vcr_cassettes/Mailtrap_SuppressionsAPI/vcr_list/maps_response_data_to_Suppression_objects.yml(1 hunks)spec/fixtures/vcr_cassettes/Mailtrap_SuppressionsAPI/vcr_list/when_api_key_is_incorrect/raises_authorization_error.yml(1 hunks)
🔇 Additional comments (50)
spec/fixtures/vcr_cassettes/Mailtrap_Client/_send_batch/with_template/successfully_sends_a_batch_of_emails_with_template.yml (1)
14-15: Metadata update aligned with PR objective.The User-Agent header was correctly updated to reflect the new repository ownership under the mailtrap organization. This fixture update is consistent with the broader PR changes across README, gemspec, and other references.
spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_delete/when_template_does_not_exist/raises_not_found_error.yml (1)
16-16: LGTM!Both User-Agent headers are correctly updated to reflect the organizational change from
railswaretomailtrap. The changes are consistent and align with the PR's objective to transition repository ownership.Also applies to: 179-179
spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/when_updating_only_body_html/returns_an_EmailTemplate_object.yml (1)
16-16: Cassette updates align with org migration.Both User-Agent headers correctly reference the
mailtrap/mailtrap-rubyrepository, reflecting the ownership transfer fromrailswaretomailtrap. The fixture data remains otherwise intact.Also applies to: 179-179
spec/fixtures/vcr_cassettes/Mailtrap_SuppressionsAPI/vcr_list/when_api_key_is_incorrect/raises_authorization_error.yml (1)
14-15: Update looks good; verify cassette regeneration approach.The User-Agent header URL update correctly reflects the organization change from
railswaretomailtrap. Since VCR cassettes record exact HTTP interactions, ensure the corresponding HTTP client code was also updated to generate this header, and verify the test still passes with this cassette.Please confirm:
- The HTTP client code (likely in the main library) has been updated to use the new GitHub URL in the User-Agent header.
- The test suite passes with this updated cassette.
Alternatively, if the cassette should be regenerated rather than manually edited, please ensure a full re-recording against the live API has been performed.
spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_get/when_template_does_not_exist/raises_not_found_error.yml (1)
16-16: VCR cassette User-Agent updates align with organizational migration.Both HTTP interaction recordings have been consistently updated to reflect the new GitHub organization. The User-Agent headers now reference
mailtrap/mailtrap-rubyinstead ofrailsware/mailtrap-ruby, which aligns with the corresponding HTTP client code updates mentioned in the PR summary.Also applies to: 179-179
spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/when_template_does_not_exist/raises_not_found_error.yml (1)
16-16: User-Agent headers correctly updated to reflect org transfer.Both HTTP request interactions in this VCR cassette have been updated to use the new
mailtrap/mailtrap-rubyrepository URL instead ofrailsware/mailtrap-ruby, which is consistent with the PR objective of transferring ownership to the Mailtrap organization. VCR records HTTP interactions and replays them during test runs, so these fixture updates are necessary to match the updated User-Agent header that the client library now generates.The changes are minimal, focused, and do not alter request/response structure or behavior.
Also applies to: 180-180
README.md (2)
1-1: Badge URL correctly updated to reflect new org.The GitHub Actions badge now points to the mailtrap organization as expected.
185-185: Contributing link updated to point to mailtrap org.GitHub link in the Contributing section now correctly references the mailtrap organization.
spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_template/when_using_sandbox/sending_is_successful.yml (1)
15-15: User-Agent header updated in VCR fixture.Recorded HTTP User-Agent header now reflects the mailtrap organization. This aligns with the upstream library change in lib/mailtrap/client.rb.
spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/when_updating_only_category/updates_only_the_category_field.yml (1)
16-16: User-Agent headers updated in both VCR interactions.Both recorded HTTP interactions in this cassette now reflect the updated User-Agent string pointing to the mailtrap organization.
Also applies to: 179-179
spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/when_updating_only_category/preserves_other_fields_unchanged.yml (1)
16-16: User-Agent headers updated consistently across VCR interactions.Both recorded HTTP requests in this fixture cassette reflect the new mailtrap organization reference.
Also applies to: 179-179
spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/when_updating_multiple_specific_fields/preserves_other_fields_unchanged.yml (1)
16-16: User-Agent headers aligned with new organization.Both HTTP interactions in this cassette now use the mailtrap organization reference in their User-Agent strings.
Also applies to: 180-180
spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_create/with_hash_request/maps_response_data_to_EmailTemplate_object.yml (1)
16-16: User-Agent header updated to reference mailtrap org.The recorded HTTP request in this fixture now reflects the updated repository reference.
spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/with_bulk_flag/chooses_host_for_bulk_sending.yml (1)
15-15: User-Agent header updated for bulk send fixture.The bulk API HTTP interaction now correctly references the mailtrap organization.
spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_delete/returns_no_content.yml (1)
16-16: User-Agent headers updated across create and delete interactions.Both HTTP operations in this fixture (POST create and DELETE) now reference the mailtrap organization.
Also applies to: 179-179
spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_create/when_API_returns_an_error/raises_a_Mailtrap_Error.yml (1)
16-16: Fixture correctly reflects updated User-Agent header.The recorded HTTP interaction's User-Agent header is appropriately updated to match the org transfer. No functional changes to the interaction or test flow.
spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail_is_hash/sends_an_email.yml (1)
15-15: User-Agent header update is consistent with source code changes.Fixture correctly reflects the updated organization in the User-Agent string sent by the client.
lib/mailtrap/client.rb (1)
274-274: User-Agent header correctly updated to reflect new organization.The hardcoded User-Agent string reflects the repo ownership transfer from railsware to mailtrap organization. This change will be reflected in all HTTP requests made by the client.
spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/with_an_alternative_host/sending_is_successful.yml (1)
15-15: Fixture update is consistent with org transfer.User-Agent header in alternative host scenario is correctly updated.
spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/with_bulk_flag_and_alternative_host/chooses_alternative_host.yml (1)
15-15: Fixture correctly reflects User-Agent update in bulk/custom-host scenario.spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/with_sandbox_flag/chooses_host_for_sandbox_sending.yml (1)
15-15: Sandbox mode fixture correctly reflects updated User-Agent.spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/when_updating_multiple_specific_fields/updates_only_the_specified_fields.yml (1)
16-16: Both HTTP interactions correctly reflect updated organization in User-Agent headers.The fixture records two sequential operations (POST create, PATCH update) with consistent User-Agent updates across both interactions.
Also applies to: 180-180
spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/returns_an_EmailTemplate_object.yml (1)
16-16: Both HTTP interactions correctly reflect updated organization in User-Agent headers.The fixture records create and full-update operations with consistent User-Agent updates across both interactions.
Also applies to: 180-180
spec/fixtures/vcr_cassettes/Mailtrap_Client/_send_batch/with_API_errors/handles_API_errors.yml (1)
15-15: LGTM! User-Agent header correctly updated to reference the new Mailtrap organization repository.spec/fixtures/vcr_cassettes/Mailtrap_SuppressionsAPI/vcr_list/maps_response_data_to_Suppression_objects.yml (1)
15-15: LGTM! User-Agent header correctly updated to reference the new Mailtrap organization repository.spec/fixtures/vcr_cassettes/Mailtrap_ActionMailer_DeliveryMethod/_deliver_/converts_the_message_and_sends_via_API.yml (1)
15-15: LGTM! User-Agent header correctly updated to reference the new Mailtrap organization repository.spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/when_updating_only_body_html/preserves_other_fields_unchanged.yml (1)
16-16: LGTM! User-Agent headers correctly updated across both HTTP interactions to reference the new Mailtrap organization repository.Also applies to: 179-179
spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_list/maps_response_data_to_EmailTemplate_objects.yml (1)
15-15: LGTM! User-Agent header correctly updated to reference the new Mailtrap organization repository.spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/when_updating_only_category/returns_an_EmailTemplate_object.yml (1)
16-16: LGTM! User-Agent headers correctly updated across both HTTP interactions to reference the new Mailtrap organization repository.Also applies to: 179-179
spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_get/returns_an_EmailTemplate_object.yml (1)
16-16: LGTM! User-Agent headers correctly updated across both HTTP interactions to reference the new Mailtrap organization repository.Also applies to: 179-179
spec/fixtures/vcr_cassettes/Mailtrap_Client/_send_batch/when_in_sandbox_mode/successfully_sends_a_batch_of_emails.yml (1)
15-15: LGTM! User-Agent header correctly updated to reference the new Mailtrap organization repository.spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_list/when_api_key_is_incorrect/raises_authorization_error.yml (1)
15-16: VCR cassette org migration update.User-Agent header correctly updated to reflect the new mailtrap GitHub organization. Fixture remains functionally equivalent for test replay.
spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/with_hash_request/maps_response_data_to_EmailTemplate_object.yml (1)
16-16: VCR cassette org migration updates.Both User-Agent headers across the two HTTP interactions (POST and PATCH) correctly updated to mailtrap organization. Fixture structure and replay behavior unchanged.
Also applies to: 180-180
spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_create/returns_an_EmailTemplate_object.yml (2)
16-16: VCR cassette org migration update.User-Agent header correctly updated to mailtrap organization.
16-16: VCR cassette org migration update.User-Agent header correctly updated to mailtrap organization.
spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_create/maps_response_data_to_EmailTemplate_object.yml (1)
16-16: VCR cassette org migration update.User-Agent header correctly updated to mailtrap organization.
spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/with_hash_request/returns_an_EmailTemplate_object.yml (1)
16-16: VCR cassette org migration updates.Both User-Agent headers (POST and PATCH interactions) correctly updated to mailtrap organization. Fixture behavior unchanged.
Also applies to: 180-180
spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_get/maps_response_data_to_EmailTemplate_object.yml (1)
16-16: VCR cassette org migration updates.Both User-Agent headers (POST create and GET retrieve interactions) correctly updated to mailtrap organization. Fixture behavior unchanged.
Also applies to: 179-179
spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/when_api_key_is_incorrect/raises_authorization_error_with_array_of_errors.yml (1)
15-15: VCR fixture User-Agent header updated.The recorded HTTP interaction now references the correct mailtrap organization URL.
spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_template/when_all_params_are_set/sending_is_successful.yml (1)
15-15: VCR fixture User-Agent header updated.The recorded HTTP interaction now references the correct mailtrap organization URL.
spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/when_all_params_are_set/sending_is_successful.yml (1)
15-15: VCR fixture User-Agent header updated.The recorded HTTP interaction now references the correct mailtrap organization URL.
spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_template/when_api_key_is_incorrect/raises_authorization_error_with_array_of_errors.yml (1)
15-15: VCR fixture User-Agent header updated.The recorded HTTP interaction now references the correct mailtrap organization URL.
spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/when_no_subject_and_no_text_set/raises_sending_error_with_array_of_errors.yml (1)
15-15: VCR fixture User-Agent header updated.The recorded HTTP interaction now references the correct mailtrap organization URL.
mailtrap.gemspec (1)
13-13: Organization URLs updated consistently across all files.The gemspec metadata and User-Agent header in
lib/mailtrap/client.rb(line 274) both correctly reflect the repository ownership transfer from railsware to mailtrap. All references tohttps://github.com/mailtrap/mailtrap-rubyare consistent.spec/fixtures/vcr_cassettes/Mailtrap_Client/_send_batch/when_in_bulk_stream/successfully_sends_a_batch_of_emails.yml (1)
14-15: User-Agent header update is correct and verified.The cassette update matches the client code. The HTTP client has been properly updated at
lib/mailtrap/client.rb:274to generate the exact User-Agent header shown in the cassette:'mailtrap-ruby (https://github.com/mailtrap/mailtrap-ruby)'. No other VCR cassettes contain the oldrailswarereference.spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_list/returns_an_array_of_EmailTemplate_objects.yml (1)
14-15: User-Agent header update is correct and consistently applied across all test fixtures.Verification confirms that all 45 VCR cassettes have been successfully updated to use
mailtrap-rubywith the new GitHub organization URL. No remainingrailswarereferences were found. The specific file on lines 14-15 correctly reflects the org migration metadata update.spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_create/with_hash_request/returns_an_EmailTemplate_object.yml (1)
16-16: Fixture update is correct and necessary.The User-Agent header in this cassette has been properly updated to reflect the change made in
lib/mailtrap/client.rb. VCR cassettes must match the actual headers sent by the client code, so this update is required.spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/when_updating_multiple_specific_fields/returns_an_EmailTemplate_object.yml (2)
16-16: First interaction User-Agent correctly updated.The User-Agent header in the first HTTP request (POST to create template) has been properly updated to reflect the organization change.
180-180: Second interaction User-Agent correctly updated.The User-Agent header in the second HTTP request (PATCH to update template) is consistently updated with the same organizational reference. Both interactions in this cassette now use the correct User-Agent header.
spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/maps_response_data_to_EmailTemplate_object.yml (1)
16-16: User-Agent headers correctly updated across all VCR cassettes.Verification confirms that all 45 VCR cassettes in
spec/fixtures/vcr_cassetteshave been successfully migrated fromrailsware/mailtrap-rubytomailtrap/mailtrap-ruby. No cassettes retain the old organization reference.
| - "*/*" | ||
| User-Agent: | ||
| - mailtrap-ruby (https://github.com/railsware/mailtrap-ruby) | ||
| - mailtrap-ruby (https://github.com/mailtrap/mailtrap-ruby) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
LGTM! Cassette User-Agent headers updated consistently.
Both User-Agent headers have been correctly updated to reflect the new mailtrap organization. The cassette file structure and all other request/response data remain intact.
As a follow-up, verify that all VCR cassette files in the repository have been similarly updated for consistency with this organizational migration:
Also applies to: 179-179
🏁 Script executed:
#!/bin/bash
# Description: Find all VCR cassette files and check for mixed org references
echo "=== Checking for cassettes with railsware references ==="
rg -l 'railsware' spec/fixtures/vcr_cassettes/ 2>/dev/null || echo "No railsware references found (good)"
echo ""
echo "=== Sample of cassettes with mailtrap references ==="
rg -l 'mailtrap' spec/fixtures/vcr_cassettes/ 2>/dev/null | head -5Length of output: 2059
Incomplete cassette User-Agent migration — 12 cassettes still contain railsware references.
While the cassette under review was correctly updated to mailtrap, the verification revealed that the migration is incomplete. The following cassette files still contain the old railsware organization reference and must be updated for consistency:
spec/fixtures/vcr_cassettes/Mailtrap_ActionMailer_DeliveryMethod/_deliver_/converts_the_message_and_sends_via_API.ymlspec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail_is_hash/sends_an_email.ymlspec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_template/when_using_sandbox/sending_is_successful.ymlspec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_template/when_api_key_is_incorrect/raises_authorization_error_with_array_of_errors.ymlspec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_template/when_all_params_are_set/sending_is_successful.ymlspec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/with_sandbox_flag/chooses_host_for_sandbox_sending.ymlspec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/with_bulk_flag_and_alternative_host/chooses_alternative_host.ymlspec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/with_an_alternative_host/sending_is_successful.ymlspec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/with_bulk_flag/chooses_host_for_bulk_sending.ymlspec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/when_no_subject_and_no_text_set/raises_sending_error_with_array_of_errors.ymlspec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/when_all_params_are_set/sending_is_successful.ymlspec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/when_api_key_is_incorrect/raises_authorization_error_with_array_of_errors.yml
Update all remaining cassettes to use mailtrap (https://github.com/mailtrap/mailtrap-ruby) as the User-Agent header to maintain consistency across the test fixtures.
🤖 Prompt for AI Agents
In
spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/when_updating_only_body_html/updates_only_the_body_html_field.yml
around line 16, the User-Agent header was migrated but other cassette files
listed in the review still contain the old "railsware" reference; update each of
the twelve listed cassette files by replacing the User-Agent entry "railsware
(https://github.com/railsware)" (or any variant containing "railsware") with
"mailtrap (https://github.com/mailtrap/mailtrap-ruby)" so all fixtures
consistently use the new agent string; ensure exact matching string is used,
preserve surrounding whitespace/format, and run a quick grep to verify no
remaining "railsware" occurrences in spec/fixtures/vcr_cassettes.
Motivation
Transfer Railsware github repo ownership to Mailtrap org
Changes
Summary by CodeRabbit