Skip to content

Conversation

@kovpack
Copy link
Contributor

@kovpack kovpack commented Oct 21, 2025

Motivation

Transfer Railsware github repo ownership to Mailtrap org

Changes

  • Github URL.
  • Minor updates in README & specs.

Summary by CodeRabbit

  • Chores
    • Updated repository references throughout the gem from the railsware organization to the mailtrap organization, including documentation, gem metadata, and User-Agent headers in requests. This ensures the gem correctly points to its current repository home.

@coderabbitai
Copy link

coderabbitai bot commented Oct 21, 2025

Walkthrough

This PR updates repository references across the codebase from the railsware organization to the mailtrap organization, reflecting a change in project ownership. Updates include the README badge, gemspec metadata, HTTP client User-Agent header, and VCR fixture cassettes.

Changes

Cohort / File(s) Summary
Project Metadata
README.md, mailtrap.gemspec, lib/mailtrap/client.rb
Updated external references and gemspec metadata from https://github.com/railsware/mailtrap-ruby to https://github.com/mailtrap/mailtrap-ruby. Includes homepage, source code URI, changelog URI, and User-Agent header updates.
VCR Test Fixtures - Client Send Operations
spec/fixtures/vcr_cassettes/Mailtrap_ActionMailer_DeliveryMethod/_deliver_/*, spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/*, spec/fixtures/vcr_cassettes/Mailtrap_Client/_send_batch/*
Updated User-Agent headers in HTTP interaction fixtures from railsware to mailtrap GitHub URL across action mailer, client send, and batch send test cassettes.
VCR Test Fixtures - Email Templates API
spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_create/*, spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_delete/*, spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_get/*, spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_list/*, spec/fixtures/vcr_cassettes/Mailtrap_EmailTemplatesAPI/_update/*
Updated User-Agent headers in HTTP interaction fixtures for email template API operations across create, delete, get, list, and update endpoints.
VCR Test Fixtures - Suppressions API
spec/fixtures/vcr_cassettes/Mailtrap_SuppressionsAPI/vcr_list/*
Updated User-Agent headers in HTTP interaction fixtures for suppressions API list operations.

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

🐰 From railsware roads to mailtrap's keep,
Our little gem finds home so deep,
One URL swap, a hop and stride,
The tests all cheer with fixtures worldwide! 📬✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Title Check ✅ Passed The pull request title "Switch railsware github org to mailtap org" directly relates to the main objective of the changeset, which is transferring the repository from the railsware organization to the mailtrap organization across all files. The title clearly summarizes the primary change across README.md, gemspec metadata, client configuration, and VCR test fixtures. However, the title contains a typo: "mailtap" should be "mailtrap," which slightly diminishes clarity but does not render the title unrelated or misleading about the actual change being made.
Description Check ✅ Passed The pull request description includes a clear Motivation section that explains the organizational transfer and a Changes section with bullet points identifying the URL updates and specification changes. However, the description is missing the "How to test" and "Images and GIFs" sections from the template. For this type of organizational/refactoring change where URLs are updated across configuration and fixture files, the missing sections are less critical than they would be for feature development, and the provided information adequately conveys the scope of changes. The description is sufficiently complete to understand the PR's intent, though the Changes section is quite brief and could benefit from more detail.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch switch-railsware-org-to-mailtrap-org

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a 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

📥 Commits

Reviewing files that changed from the base of the PR and between a9f7b42 and 97359bd.

📒 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 railsware to mailtrap. 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-ruby repository, reflecting the ownership transfer from railsware to mailtrap. 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 railsware to mailtrap. 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:

  1. The HTTP client code (likely in the main library) has been updated to use the new GitHub URL in the User-Agent header.
  2. 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-ruby instead of railsware/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-ruby repository URL instead of railsware/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 to https://github.com/mailtrap/mailtrap-ruby are 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:274 to generate the exact User-Agent header shown in the cassette: 'mailtrap-ruby (https://github.com/mailtrap/mailtrap-ruby)'. No other VCR cassettes contain the old railsware reference.

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-ruby with the new GitHub organization URL. No remaining railsware references 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_cassettes have been successfully migrated from railsware/mailtrap-ruby to mailtrap/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)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 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 -5

Length 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.yml
  • spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail_is_hash/sends_an_email.yml
  • spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_template/when_using_sandbox/sending_is_successful.yml
  • spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_template/when_api_key_is_incorrect/raises_authorization_error_with_array_of_errors.yml
  • spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_template/when_all_params_are_set/sending_is_successful.yml
  • spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/with_sandbox_flag/chooses_host_for_sandbox_sending.yml
  • spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/with_bulk_flag_and_alternative_host/chooses_alternative_host.yml
  • spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/with_an_alternative_host/sending_is_successful.yml
  • spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/with_bulk_flag/chooses_host_for_bulk_sending.yml
  • spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/when_no_subject_and_no_text_set/raises_sending_error_with_array_of_errors.yml
  • spec/fixtures/vcr_cassettes/Mailtrap_Client/_send/when_mail/when_all_params_are_set/sending_is_successful.yml
  • spec/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.

@IgorDobryn IgorDobryn merged commit 2a0efe4 into main Oct 21, 2025
9 checks passed
@IgorDobryn IgorDobryn deleted the switch-railsware-org-to-mailtrap-org branch October 21, 2025 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants