config.gemspec in config-1.7.2 vs config.gemspec in config-2.0.0
- old
+ new
@@ -19,49 +19,30 @@
s.files = `git ls-files`.split($/)
s.files.select! { |file| /(^lib\/|\.md$|\.gemspec$)/ =~ file }
s.files += Dir.glob('doc/**/*')
s.require_paths = ['lib']
- s.required_ruby_version = '>= 2.0.0'
+ s.required_ruby_version = '>= 2.4.0'
+ s.add_dependency 'activesupport', '>= 4.2'
s.add_dependency 'deep_merge', '~> 1.2', '>= 1.2.1'
+ s.add_dependency 'dry-schema', '~> 1.0'
- if RUBY_VERSION >= '2.2'
- s.add_dependency 'activesupport', '>= 3.0'
- s.add_dependency 'dry-validation', '~> 0.12', '>= 0.12.2', '< 1.0.0'
-
- s.add_development_dependency 'rails', '~> 5.2', '>= 5.2.2'
- end
-
- if RUBY_VERSION >= '2.1' && RUBY_VERSION < '2.2'
- s.add_dependency 'activesupport', '>= 3.0', '< 5.0.0'
- s.add_dependency 'dry-configurable', '~> 0.5.0'
- s.add_dependency 'dry-logic', '~> 0.5.0'
- s.add_dependency 'dry-validation', '~> 0.10', '>= 0.10.7', '< 1.0.0'
- s.add_dependency 'i18n', '~> 0.9.0'
-
- s.add_development_dependency 'rails', '< 5.0.0'
- end
-
- s.add_development_dependency 'bundler', '~> 1.13', '>= 1.13.6'
s.add_development_dependency 'rake', '~> 12.0', '>= 12.0.0'
# Testing
s.add_development_dependency 'appraisal', '~> 2.2', '>= 2.2.0'
+ s.add_development_dependency 'rails', '~> 5.2', '>= 5.2.2'
s.add_development_dependency 'rspec', '~> 3.7', '>= 3.7.0'
s.add_development_dependency 'rspec-rails', '~> 3.7', '>= 3.7.2'
s.add_development_dependency 'test-unit', '~> 3.2', '>= 3.2.7'
s.add_development_dependency 'sqlite3', '~> 1.3', '>= 1.3.13'
# Static code analysis
s.add_development_dependency 'mdl', '~> 0.5', '>= 0.5.0'
- # Version 0.51 drops support for Ruby 2.0
- s.add_development_dependency 'rubocop', '~> 0.50', '< 0.51' if RUBY_VERSION < '2.1'
- # Version 0.58 drops support for Ruby 2.1
- s.add_development_dependency 'rubocop', '~> 0.57', '< 0.58' if RUBY_VERSION >= '2.1' && RUBY_VERSION < '2.2'
# Version 0.62 requires Ruby 2.2
- s.add_development_dependency 'rubocop', '~> 0.62' if RUBY_VERSION >= '2.2'
+ s.add_development_dependency 'rubocop', '~> 0.62'
if ENV['TRAVIS']
s.add_development_dependency 'codeclimate-test-reporter', '~> 1.0.9'
s.add_development_dependency 'simplecov', '~> 0.13.0'
end