Skip to content

Commit b78f6b9

Browse files
committed
feat: support Ruby 2.6 and 2.7
1 parent 3149fe3 commit b78f6b9

File tree

5 files changed

+15
-20
lines changed

5 files changed

+15
-20
lines changed

.github/workflows/checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
os: [ubuntu-latest, macos-latest]
24-
ruby: ['3.0', '3.1', head]
24+
ruby: ['2.6', '2.7', '3.0', '3.1', head]
2525
runs-on: ${{ matrix.os }}
2626
steps:
2727
- name: Checkout
@@ -42,6 +42,6 @@ jobs:
4242
- name: Set up Ruby
4343
uses: ruby/setup-ruby@v1
4444
with:
45-
ruby-version: '3.0'
45+
ruby-version: '2.6'
4646
bundler-cache: true
4747
- run: bundle exec rubocop

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ AllCops:
1414
NewCops: enable
1515
DisplayCopNames: true
1616
DisplayStyleGuide: true
17-
TargetRubyVersion: 3.0
17+
TargetRubyVersion: 2.6
1818
Exclude:
1919
- 'bin/*'
2020
- 'node_modules/**/*'

Gemfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gemspec
77

88
gem "rake", "~> 13.0"
99
gem "rspec", "~> 3.0"
10-
gem "rubocop", "~> 1.21"
11-
gem "rubocop-performance"
12-
gem "rubocop-rspec"
10+
gem "rubocop", "< 1.51" # TODO: this version dropped support for Ruby 2.6
11+
gem "rubocop-performance", "< 1.18.0" # TODO: this version dropped support for Ruby 2.6
12+
gem "rubocop-rspec", "< 2.21.0" # TODO: this version dropped support for Ruby 2.6
1313
gem "simplecov", require: false

Gemfile.lock

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ GEM
1010
diff-lcs (1.5.0)
1111
docile (1.4.0)
1212
json (2.6.3)
13-
language_server-protocol (3.17.0.3)
1413
parallel (1.23.0)
1514
parser (3.2.2.3)
1615
ast (~> 2.4.1)
@@ -33,30 +32,26 @@ GEM
3332
diff-lcs (>= 1.2.0, < 2.0)
3433
rspec-support (~> 3.12.0)
3534
rspec-support (3.12.1)
36-
rubocop (1.55.1)
35+
rubocop (1.50.2)
3736
json (~> 2.3)
38-
language_server-protocol (>= 3.17.0)
3937
parallel (~> 1.10)
40-
parser (>= 3.2.2.3)
38+
parser (>= 3.2.0.0)
4139
rainbow (>= 2.2.2, < 4.0)
4240
regexp_parser (>= 1.8, < 3.0)
4341
rexml (>= 3.2.5, < 4.0)
44-
rubocop-ast (>= 1.28.1, < 2.0)
42+
rubocop-ast (>= 1.28.0, < 2.0)
4543
ruby-progressbar (~> 1.7)
4644
unicode-display_width (>= 2.4.0, < 3.0)
4745
rubocop-ast (1.29.0)
4846
parser (>= 3.2.1.0)
4947
rubocop-capybara (2.18.0)
5048
rubocop (~> 1.41)
51-
rubocop-factory_bot (2.23.1)
52-
rubocop (~> 1.33)
53-
rubocop-performance (1.18.0)
49+
rubocop-performance (1.17.1)
5450
rubocop (>= 1.7.0, < 2.0)
5551
rubocop-ast (>= 0.4.0)
56-
rubocop-rspec (2.23.0)
52+
rubocop-rspec (2.20.0)
5753
rubocop (~> 1.33)
5854
rubocop-capybara (~> 2.17)
59-
rubocop-factory_bot (~> 2.22)
6055
ruby-progressbar (1.13.0)
6156
simplecov (0.22.0)
6257
docile (~> 1.1)
@@ -76,9 +71,9 @@ DEPENDENCIES
7671
package_json!
7772
rake (~> 13.0)
7873
rspec (~> 3.0)
79-
rubocop (~> 1.21)
80-
rubocop-performance
81-
rubocop-rspec
74+
rubocop (< 1.51)
75+
rubocop-performance (< 1.18.0)
76+
rubocop-rspec (< 2.21.0)
8277
simplecov
8378

8479
BUNDLED WITH

package_json.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
1212
spec.description = "It does stuff"
1313
spec.homepage = "https://github.com/G-Rath/package_json"
1414
spec.license = "MIT"
15-
spec.required_ruby_version = ">= 3.0.0"
15+
spec.required_ruby_version = ">= 2.6.0"
1616

1717
spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
1818

0 commit comments

Comments
 (0)