Skip to content

Commit

Permalink
Merge pull request #106 from airbrake/rubocop-fix
Browse files Browse the repository at this point in the history
Fix Rubocop not installing on 1.9.3 by using Ruby 2.3.1
  • Loading branch information
kyrylo authored Jul 25, 2016
2 parents b525377 + c3938f3 commit 0656003
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,6 @@ Style/MultilineMethodCallBraceLayout:

Style/MultilineHashBraceLayout:
Enabled: true

Style/NumericPredicate:
Enabled: false
6 changes: 4 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
source 'https://rubygems.org'
gemspec

# Rubocop supports only >=1.9.3
gem 'rubocop', '~> 0.40', require: false unless RUBY_VERSION == '1.9.2'
# Rubocop supports only >=2.0.0
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.0.0')
gem 'rubocop', '~> 0.42', require: false
end
4 changes: 4 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
machine:
ruby:
version: 2.3.1

dependencies:
cache_directories:
- vendor
Expand Down

0 comments on commit 0656003

Please sign in to comment.