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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary explicit dependencies: sprockets, activesupport, sass and pry #218

Merged
merged 6 commits into from
Mar 15, 2021

Conversation

kevindew
Copy link
Member

With the exception of pry, none of these dependencies are explicitly referenced in the code (activesupport and sprockets are implicit though). This removes an unnecessary constraint on sprockets 4, as middleman-sprockets depends on 3 and up which causes problems for apps that integrate with govuk_publishing_components.

⚠️ Don't forget to update the gem version in the CHANGELOG before merging! When you're ready to release bump version file and generate a tag. ⚠️

@kevindew kevindew force-pushed the unnecessary-deps branch 2 times, most recently from b167e42 to 55d8d31 Compare March 15, 2021 10:23
Copy link
Contributor

@ChrisBAshton ChrisBAshton left a comment

Choose a reason for hiding this comment

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

👏

@richardTowers
Copy link
Contributor

Do you want to bump the version to 2.2.1 in this PR, so we get a new gem when we merge?

@kevindew
Copy link
Member Author

Do you want to bump the version to 2.2.1 in this PR, so we get a new gem when we merge?

I'm optimistically hoping I might get my long protracted bug fix PR into this release too. But if that hits a snag I'll release them separately.

This is implicitly required by middleman-sprockets and is not referenced
explicitly in the code. This dependency is unnecessarily set to a
minimum version of 4.0.0 which causes problems for some consumers
(notably govuk-developer-docs) that haven't made the (rather painful)
migration to sprockets 4.
This is a deprecated library where there are no explicit references to
it in the code.
This was presumably installed just to allow debugging within this gem
and is not a dependency that clients of this need.
I can't find any places where this is used in this project.
Since Ruby 2.7 has bundler installed and is the minimum version for this
gem there isn't need to flag bundler as a development dependency.
This also fixes the formatting of the changelog from 125
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.

3 participants