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

Add missing files to gemspec & bump version to 2.15.1 #615

Merged
merged 2 commits into from Feb 15, 2024

Conversation

sambostock
Copy link
Contributor

2.15.0 is broken because we're failing to include the backport patch which we try to require at the top of rubocop.yml.

This updates the gempspec to include all ruby files under lib, as well as the README.md. It also switches to use a wildcard to match the rubocop.yml and rubocop-cli.yml files, which will be useful when we add extension configs.

It also bumps the gem version so we can publish the fix.

@sambostock sambostock requested a review from a team as a code owner February 15, 2024 18:14
@sambostock sambostock added the bug label Feb 15, 2024
2.15.0 is broken because we're failing to include the backport patch
which we try to `require` at the top of `rubocop.yml`.

This updates the `gempspec` to include all ruby files under `lib`, as
well as the `README.md`. It also switches to use a wildcard to match the
`rubocop.yml` and `rubocop-cli.yml` files, which will be useful when we
add extension configs.
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
s.email = "gems@shopify.com"
s.homepage = "https://shopify.github.io/ruby-style-guide/"

s.files = ["rubocop.yml", "rubocop-cli.yml", "LICENSE.md"]
s.files = Dir["rubocop*.yml", "lib/**/*", "LICENSE.md", "README.md"]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looks like this technically causes lib/tasks/config.rake to be included as well, but that doesn't seem to be a problem if nothing is looking for it.

@ghost
Copy link

ghost commented Feb 15, 2024

Thanks for getting this fix in so quickly 🙌

@sambostock sambostock merged commit fecd514 into main Feb 15, 2024
28 checks passed
@sambostock sambostock deleted the add-missing-files-to-gemspec branch February 15, 2024 18:42
@sambostock
Copy link
Contributor Author

This was missed because testing pulled the gem from the git repo, rather than a published version, which clones the entire repo directory structure, ignoring spec.files entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants