Uh oh!
There was an error while loading. Please reload this page.
chore: bump Ruby to 3.3, use symbols for ElementPatchMode - #12
Conversation
ismasan
left a comment
There was a problem hiding this comment.
This PR seems to be doing unrelated things:
- Increase the required Ruby version (why?)
- Replace the default options Hash with a Data struct, but it's not clear what for.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| only_if_missing: DEFAULT_ONLY_IF_MISSING | ||
| ) | ||
| def with(overrides) |
There was a problem hiding this comment.
Data objects already define a #with method for this.
There was a problem hiding this comment.
How do you plan to use this? Currently, the OPTION_DEFAULTS hash is accessed within the build_options method, so there's not much use in being able to create a copy of this Data struct with overrides. If there's no plan to use it for something specific I'm not sure we need it.
There was a problem hiding this comment.
What i wanted to do. is not worth. I benchmarked it, and we get very little gain.
I recycled this PR to have the bump only.
- Ruby 3.3+ required (3.2 EOL March 2026) - Add rubygems_mfa_required metadata - Use symbols instead of strings for ElementPatchMode constants
Drop rubies version that should never reach the stars.
Less object allocation ==> faster gem.