Skip to content

Preserve development connection options - #145

Open
OskarEichler wants to merge 1 commit into
ostinelli:masterfrom
OskarEichler:codex/development-options-immutability
Open

OskarEichler wants to merge 1 commit into
ostinelli:masterfrom
OskarEichler:codex/development-options-immutability

Conversation

@OskarEichler

Copy link
Copy Markdown

Summary

Build the development connection with a non-mutating Hash#merge.

Connection.development(options) currently overwrites options[:url] in the caller-owned hash via merge!. Factory construction should not mutate that options object; the development URL still overrides any supplied URL in the hash passed to Connection.new.

This follows the resolution discussed in #104.

Verification

  • focused model: the caller production URL remains unchanged after development connection construction; release changes it
  • full suite: 86 examples, 0 failures on Ruby 4.0.6 and Ruby 3.2.11
  • all runtime files compile on both Rubies

No connection behavior changes beyond removing the caller-visible mutation.

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.

1 participant