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

Move development dependencies from gemspec to Gemfile #527

Closed

Conversation

mishina2228
Copy link
Contributor

Gemspec should not contain RUBY_VERSION as a condition to switch dependencies,
because it is meaningless.
Please see the following for details:

In addition, Bundler no longer uses add_development_dependency when genererating new gems.

For these reason, this PR moves development dependencies from gemspec to Gemfile.

The CI status can be seen here: https://app.circleci.com/pipelines/github/mishina2228/mocha/9/workflows/2c6bbae9-c2c8-44f7-bf86-2f0fb487b83d

Gemspec should not contain `RUBY_VERSION` as a condition to switch dependencies,
because it is meaningless.
Please see the following for details:
- rubocop/rubocop#7137
- rubocop/ruby-style-guide#763

In addition, Bundler no longer uses `add_development_dependency` when genererating new gems.
- rubygems/bundler#7222

For these reason, this PR moves development dependencies from gemspec to Gemfile.
Gemfile Show resolved Hide resolved
@floehopper
Copy link
Member

@mishina2228 This is great - thanks! I've tweaked your commit very slightly so the order of the gems in the two Gemfile.*.latest files are consistent. The changes have been merged in dd127f7. Closing.

@floehopper floehopper closed this Apr 25, 2022
@mishina2228 mishina2228 deleted the ruby-version-in-gemspec branch April 26, 2022 09:36
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