Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimistic govuk_publishing_components and I18n gem versions #200

Merged
merged 4 commits into from Nov 10, 2020

Conversation

kevindew
Copy link
Member

@kevindew kevindew commented Nov 9, 2020

This changes the versioning approach we use in the gemspec for govuk_publishing_components and i18n gems. I've taken an optimistic approach where we assume future versions will work until a problem is found rather than the existing pessimistic approach where we are not allowing future versions until we've tested them.

I've done this so that we don't need to re-release this gem each time new versions of govuk_publishing_components is released as this is done very frequently (sometimes 3 minor versions in a day 馃槺 ). I expect it's an incredibly rare event that we manage to update govuk_publishing_components in a way that breaks this gem (typically for breaking component changes we identify them before releasing).

The I18n gem has a rather stable API and the current pin was tying this to a rather old version.

This doesn't specify a maximum version for govuk_publishing_components
which is done so that we don't have to re-release this gem each time a
new version of govuk_publishing_components is released.

As this gem only uses 2 components it seems unlikely that new versions
of govuk_publishing_components would break this gem unintentionally and,
given the frontend nature of the components, we'd likely need more than
our minitest tests to confirm compatibility for a breaking change.

If it turns out that govuk_publishing_components becomes more volatile
in it's changes we may need to switch back to pessimistic versioning but
I'm expecting this will just save people a chore moving forward.
The I18n gem is updated infrequently and has a rather stable API. It
seems unnecessary to be using an old version (0.7) and hindering any
applications that use this gem from using a newer version.
We only need to care that minitest isn't a new major version so we can
loosen this pin to accept newer minor versions.
@kevindew kevindew merged commit 7883322 into master Nov 10, 2020
@kevindew kevindew deleted the optimistic-components-version branch November 10, 2020 09:57
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.

None yet

3 participants