summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Herold <opensource@michaeljherold.com>2019-11-16 20:37:50 -0600
committerMichael Herold <opensource@michaeljherold.com>2019-11-17 11:49:53 -0600
commit729c99b11ad73755840590faee6909c315898a53 (patch)
treeb299183540d17c3b319126493c5a29630f6b23f9
parent565a1ed0de48c2ddca1f2a321e88739049c7922e (diff)
downloadhashie-729c99b11ad73755840590faee6909c315898a53.tar.gz
Switch to only setting Bundler as a dev dependency
Our contributing documentation specifically mentions Bundler so we should set it as a development dependency.
-rw-r--r--Gemfile27
-rw-r--r--hashie.gemspec4
2 files changed, 17 insertions, 14 deletions
diff --git a/Gemfile b/Gemfile
index 524b968..a254ee7 100644
--- a/Gemfile
+++ b/Gemfile
@@ -10,20 +10,25 @@ group :development do
gem 'pry'
gem 'pry-stack_explorer', platforms: %i[ruby_19 ruby_20 ruby_21]
gem 'rubocop', '0.52.1'
+
+ group :test do
+ # ActiveSupport required to test compatibility with ActiveSupport Core Extensions.
+ # rubocop:disable Bundler/DuplicatedGem
+ require File.expand_path('../lib/hashie/extensions/ruby_version', __FILE__)
+ if Hashie::Extensions::RubyVersion.new(RUBY_VERSION) >=
+ Hashie::Extensions::RubyVersion.new('2.4.0')
+ gem 'activesupport', '~> 5.x', require: false
+ else
+ gem 'activesupport', '~> 4.x', require: false
+ end
+ # rubocop:enable Bundler/DuplicatedGem
+ gem 'rake'
+ gem 'rspec', '~> 3'
+ gem 'rspec-pending_for', '~> 0.1'
+ end
end
group :test do
- # ActiveSupport required to test compatibility with ActiveSupport Core Extensions.
- # rubocop:disable Bundler/DuplicatedGem
- require File.expand_path('../lib/hashie/extensions/ruby_version', __FILE__)
- if Hashie::Extensions::RubyVersion.new(RUBY_VERSION) >=
- Hashie::Extensions::RubyVersion.new('2.4.0')
- gem 'activesupport', '~> 5.x', require: false
- else
- gem 'activesupport', '~> 4.x', require: false
- end
- # rubocop:enable Bundler/DuplicatedGem
gem 'codeclimate-test-reporter', '~> 1.0', require: false
gem 'danger-changelog', '~> 0.1.0', require: false
- gem 'rspec-core', '~> 3.1.7'
end
diff --git a/hashie.gemspec b/hashie.gemspec
index e3c8a8b..dbb438d 100644
--- a/hashie.gemspec
+++ b/hashie.gemspec
@@ -24,7 +24,5 @@ Gem::Specification.new do |gem|
}
end
- gem.add_development_dependency 'rake', '< 11'
- gem.add_development_dependency 'rspec', '~> 3.0'
- gem.add_development_dependency 'rspec-pending_for', '~> 0.1'
+ gem.add_development_dependency 'bundler'
end