Skip to content

Commit

Permalink
Upgrade rubocop to 0.51 & rspec to 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiyt committed Oct 26, 2017
1 parent e4d05ad commit d0e60fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
inherit_from:
- .rubocop_todo.yml

AllCops:
TargetRubyVersion: 2

Metrics/AbcSize:
Enabled: false

Expand Down
11 changes: 9 additions & 2 deletions ssrf_filter.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,16 @@ Gem::Specification.new do |gem|
gem.license = 'MIT'
gem.files = Dir['lib/**/*.rb']

major, minor = RUBY_VERSION.scan(/\A(\d+)\.(\d+)\.\d+\Z/).first.map(&:to_i)

gem.add_development_dependency('bundler-audit', '~> 0.6')
gem.add_development_dependency('coveralls', '~> 0.8')
gem.add_development_dependency('rspec', '~> 3.6')
gem.add_development_dependency('rubocop', '~> 0.50')
gem.add_development_dependency('rspec', '~> 3.7')
gem.add_development_dependency('webmock', '~> 3.1')

if major == 2 && minor > 0
gem.add_development_dependency('rubocop', '~> 0.51')
else
gem.add_development_dependency('rubocop', '~> 0.50.0')
end
end

0 comments on commit d0e60fe

Please sign in to comment.