Skip to content

Commit bfb3352

Browse files
authored
Merge pull request #142 from amatsuda/required_ruby_version
Required ruby version
2 parents d107616 + 9834f2a commit bfb3352

File tree

5 files changed

+36
-35
lines changed

5 files changed

+36
-35
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010

1111
matrix:
1212
ruby-version:
13+
- '2.4'
14+
- '2.5'
15+
- '2.6'
1316
- '2.7'
1417
- '3.0'
1518
- '3.1'
@@ -22,6 +25,8 @@ jobs:
2225
steps:
2326
- uses: actions/checkout@v3
2427

28+
- run: rm Gemfile.lock
29+
2530
- uses: ruby/setup-ruby@v1
2631
with:
2732
ruby-version: ${{ matrix.ruby-version }}

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require:
66
AllCops:
77
DisplayCopNames: true
88
NewCops: enable
9-
TargetRubyVersion: 2.7
9+
TargetRubyVersion: 2.5
1010

1111
Bundler/DuplicatedGem:
1212
Enabled: false

Gemfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ source "https://rubygems.org"
44

55
gemspec
66

7-
gem "bundler", "~> 2.4.0"
87
gem "rake", ">= 11"
98

109
# Use local copy of simplecov in development if you want to
1110
# gem "simplecov", :path => File.dirname(__FILE__) + "/../simplecov"
12-
gem "simplecov", git: "https://github.com/simplecov-ruby/simplecov"
11+
if RUBY_VERSION < "2.5"
12+
gem "simplecov", "< 0.19"
13+
else
14+
gem "simplecov", git: "https://github.com/simplecov-ruby/simplecov"
15+
end
1316

1417
group :test do
1518
gem "minitest"

Gemfile.lock

Lines changed: 23 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
GIT
22
remote: https://github.com/simplecov-ruby/simplecov
3-
revision: 1d8f692d772c101c56f3f4e94945e898ad7b3769
3+
revision: 0260b1f309e76c8ed87731ebbc348b05d753b8a2
44
specs:
55
simplecov (0.22.0)
66
docile (~> 1.1)
@@ -16,44 +16,38 @@ GEM
1616
remote: https://rubygems.org/
1717
specs:
1818
ast (2.4.2)
19-
concurrent-ruby (1.2.2)
20-
docile (1.4.0)
19+
concurrent-ruby (1.3.4)
20+
docile (1.4.1)
2121
execjs (2.9.1)
22-
json (2.7.1)
23-
json (2.7.1-java)
24-
language_server-protocol (3.17.0.3)
25-
minitest (5.20.0)
22+
minitest (5.15.0)
2623
parallel (1.24.0)
27-
parser (3.2.2.4)
24+
parser (3.3.4.2)
2825
ast (~> 2.4.1)
2926
racc
30-
racc (1.7.3)
31-
racc (1.7.3-java)
32-
rack (3.0.9.1)
27+
racc (1.8.1)
28+
racc (1.8.1-java)
29+
rack (3.1.7)
3330
rainbow (3.1.1)
34-
rake (13.1.0)
35-
regexp_parser (2.8.3)
31+
rake (13.2.1)
32+
regexp_parser (2.9.2)
3633
rexml (3.3.6)
3734
strscan
38-
rubocop (1.59.0)
39-
json (~> 2.3)
40-
language_server-protocol (>= 3.17.0)
35+
rubocop (1.28.2)
4136
parallel (~> 1.10)
42-
parser (>= 3.2.2.4)
37+
parser (>= 3.1.0.0)
4338
rainbow (>= 2.2.2, < 4.0)
4439
regexp_parser (>= 1.8, < 3.0)
45-
rexml (>= 3.2.5, < 4.0)
46-
rubocop-ast (>= 1.30.0, < 2.0)
40+
rexml
41+
rubocop-ast (>= 1.17.0, < 2.0)
4742
ruby-progressbar (~> 1.7)
48-
unicode-display_width (>= 2.4.0, < 3.0)
49-
rubocop-ast (1.30.0)
50-
parser (>= 3.2.1.0)
51-
rubocop-minitest (0.34.2)
52-
rubocop (>= 1.39, < 2.0)
53-
rubocop-ast (>= 1.30.0, < 2.0)
54-
rubocop-performance (1.20.1)
55-
rubocop (>= 1.48.1, < 2.0)
56-
rubocop-ast (>= 1.30.0, < 2.0)
43+
unicode-display_width (>= 1.4.0, < 3.0)
44+
rubocop-ast (1.17.0)
45+
parser (>= 3.1.1.0)
46+
rubocop-minitest (0.19.1)
47+
rubocop (>= 0.90, < 2.0)
48+
rubocop-performance (1.13.3)
49+
rubocop (>= 1.7.0, < 2.0)
50+
rubocop-ast (>= 0.4.0)
5751
rubocop-rake (0.6.0)
5852
rubocop (~> 1.0)
5953
ruby-progressbar (1.13.0)
@@ -74,7 +68,6 @@ PLATFORMS
7468
universal-java-1.8
7569

7670
DEPENDENCIES
77-
bundler (~> 2.4.0)
7871
minitest
7972
rake (>= 11)
8073
rubocop
@@ -88,4 +81,4 @@ DEPENDENCIES
8881
yui-compressor
8982

9083
BUNDLED WITH
91-
2.4.22
84+
2.3.15

simplecov-html.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ Gem::Specification.new do |gem|
1010
gem.authors = ["Christoph Olszowka"]
1111
gem.email = ["christoph at olszowka de"]
1212
gem.homepage = "https://github.com/simplecov-ruby/simplecov-html"
13-
gem.description = %(Default HTML formatter for SimpleCov code coverage tool for ruby 2.5+)
13+
gem.description = %(Default HTML formatter for SimpleCov code coverage tool for ruby 2.4+)
1414
gem.summary = gem.description
1515
gem.license = "MIT"
1616

17-
gem.required_ruby_version = ">= 2.7"
17+
gem.required_ruby_version = ">= 2.4"
1818

1919
gem.files = Dir.chdir(__dir__) do
2020
`git ls-files -z`.split("\x0").reject do |f|

0 commit comments

Comments
 (0)