Skip to content

Commit 4a0f6fe

Browse files
committed
Merge remote-tracking branch 'upstream/main' into add-method-coverage-support
2 parents fc9c7a1 + 5bc5798 commit 4a0f6fe

File tree

7 files changed

+55
-29
lines changed

7 files changed

+55
-29
lines changed

.github/workflows/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
tests:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
11+
matrix:
12+
ruby-version:
13+
- '2.5'
14+
- '2.6'
15+
- '2.7'
16+
- '3.0'
17+
- '3.1'
18+
- ruby-head
19+
- jruby
20+
- jruby-head
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
25+
- uses: ruby/setup-ruby@v1
26+
with:
27+
ruby-version: ${{ matrix.ruby-version }}
28+
bundler-cache: true
29+
continue-on-error: ${{ (matrix.ruby-version == 'ruby-head') || (matrix.ruby-version == 'jruby-head') }}
30+
31+
- run: |
32+
bundle exec rake
33+
continue-on-error: ${{ (matrix.ruby-version == 'ruby-head') || (matrix.ruby-version == 'jruby-head') }}

.rubocop.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ Style/ExpandPathArguments:
5454
Style/FrozenStringLiteralComment:
5555
Enabled: true
5656

57-
Style/HashSyntax:
58-
EnforcedStyle: hash_rockets
59-
6057
Style/MutableConstant:
6158
Exclude:
6259
- "lib/simplecov-html/version.rb"

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ gem "rake", ">= 11"
88

99
# Use local copy of simplecov in development if you want to
1010
# gem "simplecov", :path => File.dirname(__FILE__) + "/../simplecov"
11-
gem "simplecov", :github => "simplecov-ruby/simplecov"
11+
gem "simplecov", git: "https://github.com/simplecov-ruby/simplecov"
1212

1313
group :test do
1414
gem "minitest"

Gemfile.lock

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
GIT
2-
remote: https://github.com/simplecov-ruby/simplecov.git
3-
revision: 441d8ca6249c07275202880f3ff604272a4a3b76
2+
remote: https://github.com/simplecov-ruby/simplecov
3+
revision: 0260b1f309e76c8ed87731ebbc348b05d753b8a2
44
specs:
5-
simplecov (0.21.2)
5+
simplecov (0.20.0)
66
docile (~> 1.1)
77
simplecov-html (~> 0.11)
88
simplecov_json_formatter (~> 0.1)
@@ -16,37 +16,37 @@ GEM
1616
remote: https://rubygems.org/
1717
specs:
1818
ast (2.4.2)
19-
concurrent-ruby (1.1.8)
20-
docile (1.3.5)
19+
concurrent-ruby (1.1.5)
20+
docile (1.4.0)
2121
execjs (2.7.0)
22-
minitest (5.14.4)
23-
parallel (1.20.1)
24-
parser (3.0.1.0)
22+
minitest (5.15.0)
23+
parallel (1.22.1)
24+
parser (3.1.1.0)
2525
ast (~> 2.4.1)
2626
rack (2.2.3)
27-
rainbow (3.0.0)
28-
rake (13.0.3)
29-
regexp_parser (2.1.1)
27+
rainbow (3.1.1)
28+
rake (13.0.1)
29+
regexp_parser (2.2.1)
3030
rexml (3.2.5)
31-
rubocop (1.13.0)
31+
rubocop (1.26.1)
3232
parallel (~> 1.10)
33-
parser (>= 3.0.0.0)
33+
parser (>= 3.1.0.0)
3434
rainbow (>= 2.2.2, < 4.0)
3535
regexp_parser (>= 1.8, < 3.0)
3636
rexml
37-
rubocop-ast (>= 1.2.0, < 2.0)
37+
rubocop-ast (>= 1.16.0, < 2.0)
3838
ruby-progressbar (~> 1.7)
3939
unicode-display_width (>= 1.4.0, < 3.0)
40-
rubocop-ast (1.4.1)
41-
parser (>= 2.7.1.5)
40+
rubocop-ast (1.16.0)
41+
parser (>= 3.1.1.0)
4242
ruby-progressbar (1.11.0)
43-
simplecov_json_formatter (0.1.2)
43+
simplecov_json_formatter (0.1.4)
4444
sprockets (3.7.2)
4545
concurrent-ruby (~> 1.0)
4646
rack (> 1, < 3)
4747
uglifier (4.2.0)
4848
execjs (>= 0.3.0, < 3)
49-
unicode-display_width (2.0.0)
49+
unicode-display_width (2.1.0)
5050
yui-compressor (0.12.0)
5151

5252
PLATFORMS
@@ -63,4 +63,4 @@ DEPENDENCIES
6363
yui-compressor
6464

6565
BUNDLED WITH
66-
2.2.16
66+
2.4.3

Guardfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ guard "bundler" do
99
# watch(/^.+\.gemspec/)
1010
end
1111

12-
guard "rake", :task => "assets:compile" do
12+
guard "rake", task: "assets:compile" do
1313
watch(%r{^assets/})
1414
end

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ rescue LoadError
2727
end
2828
end
2929

30-
task :default => [:test, :rubocop]
30+
task default: [:test, :rubocop]
3131

3232
namespace :assets do
3333
desc "Compiles all assets"

lib/simplecov-html.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ def formatted_source_file(source_file)
9797
# Returns a table containing the given source files
9898
def formatted_file_list(title, source_files)
9999
title_id = title.gsub(/^[^a-zA-Z]+/, "").gsub(/[^a-zA-Z0-9\-_]/, "")
100-
# Silence a warning by using the following variable to assign to itself:
101-
# "warning: possibly useless use of a variable in void context"
102-
# The variable is used by ERB via binding.
103-
title_id = title_id # rubocop:disable Lint/SelfAssignment
104100
template("file_list").result(binding)
105101
end
106102

0 commit comments

Comments
 (0)