Skip to content

Conversation

@seuros
Copy link
Contributor

@seuros seuros commented Jan 14, 2026

Drop rubies version that should never reach the stars.

Less object allocation ==> faster gem.

Copy link
Collaborator

@ismasan ismasan left a comment

Choose a reason for hiding this comment

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

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.

only_if_missing: DEFAULT_ONLY_IF_MISSING
)

def with(overrides)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Data objects already define a #with method for this.

Copy link
Collaborator

Choose a reason for hiding this comment

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

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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
@seuros seuros changed the title feat: Add Data in DataStar chore: bump Ruby to 3.3, use symbols for ElementPatchMode Jan 16, 2026
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.

2 participants