Skip to content

Commit

Permalink
Merge pull request #182 from Shopify/drop-ruby-2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
exterm authored Aug 6, 2020
2 parents 73c9a6e + 3d6801e commit 1944354
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
inherit_from:
- https://shopify.github.io/ruby-style-guide/rubocop.yml
inherit_gem:
rubocop-shopify: rubocop.yml

AllCops:
TargetRubyVersion: 2.4
TargetRubyVersion: 2.5
Exclude:
- 'vendor/**/*'
- 'gemfiles/vendor/**/*'
Expand Down
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: ruby
cache: bundler
rvm:
- 2.4.1
- 2.5
- 2.6
- 2.7
Expand All @@ -10,4 +9,6 @@ gemfile:
- gemfiles/Gemfile.rubocop-next
script:
- bundle exec rspec spec
- bundle show rubocop
- bundle show rubocop-shopify
- bundle exec rubocop
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ GEM
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 1.7)
rubocop-shopify (1.0.0)
rubocop (>= 0.78.0)
ruby-progressbar (1.10.1)
smart_properties (1.15.0)
thread_safe (0.3.6)
Expand All @@ -97,6 +99,7 @@ DEPENDENCIES
rake
rspec
rubocop
rubocop-shopify

BUNDLED WITH
1.17.3
3 changes: 2 additions & 1 deletion erb_lint.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |s|
s.bindir = 'exe'
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }

s.required_ruby_version = '>= 2.4.0'
s.required_ruby_version = '>= 2.5.0'

s.metadata = {
"allowed_push_host" => "https://rubygems.org",
Expand All @@ -34,4 +34,5 @@ Gem::Specification.new do |s|

s.add_development_dependency('rspec')
s.add_development_dependency('rubocop')
s.add_development_dependency('rubocop-shopify')
end
5 changes: 4 additions & 1 deletion gemfiles/Gemfile.rubocop-next
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

eval_gemfile "../Gemfile"

gem "rubocop", ">= 0.87"
gem "rubocop", ">= 0.87", "< 0.89"

# most recent rubocop-shopify release (1.0.4) is not compatible with rubocop >= 0.87, but this unreleased version is
gem "rubocop-shopify", git: "https://github.com/Shopify/ruby-style-guide.git", ref: "ee3b64392b09f7e8d8089a57c4e65f91c0594732"
4 changes: 2 additions & 2 deletions spec/erb_lint/linters/rubocop_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
rubocop_config: {
require: [File.expand_path('../../fixtures/cops/auto_correct_cop', __FILE__)],
AllCops: {
TargetRubyVersion: '2.4',
TargetRubyVersion: '2.5',
},
},
)
Expand Down Expand Up @@ -234,7 +234,7 @@
only: ['Layout/ArgumentAlignment'],
rubocop_config: {
AllCops: {
TargetRubyVersion: '2.4',
TargetRubyVersion: '2.5',
},
'Layout/ArgumentAlignment': {
Enabled: true,
Expand Down
2 changes: 1 addition & 1 deletion spec/erb_lint/linters/rubocop_text_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
rubocop_config: {
require: [File.expand_path('../../fixtures/cops/auto_correct_cop', __FILE__)],
AllCops: {
TargetRubyVersion: '2.4',
TargetRubyVersion: '2.5',
},
},
)
Expand Down

0 comments on commit 1944354

Please sign in to comment.