Skip to content

Commit c00ee4b

Browse files
Update dependencies (#12)
1 parent 51de295 commit c00ee4b

File tree

5 files changed

+44
-60
lines changed

5 files changed

+44
-60
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ jobs:
66
steps:
77
- name: Check out code
88
uses: actions/checkout@v2
9+
- uses: ruby/setup-ruby@v1
10+
with:
11+
ruby-version: 3.0
12+
bundler-cache: true
913
- name: rubocop
1014
uses: reviewdog/action-rubocop@v1
1115
with:
16+
rubocop_version: gemfile
1217
github_token: ${{ secrets.github_token }}
1318
reporter: github-check
1419
rspec:
@@ -20,49 +25,26 @@ jobs:
2025
- 2.5
2126
- 2.6
2227
- 2.7
28+
- 3.0
2329
name: RSpec tests ruby ${{ matrix.ruby }}
2430
steps:
2531
- name: Check out code
2632
uses: actions/checkout@v2
27-
- name: Setup caching for ruby gems
28-
uses: actions/cache@v2
29-
with:
30-
path: vendor/bundle
31-
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
32-
restore-keys: |
33-
${{ runner.os }}-gems-
34-
- name: Setup Ruby
35-
uses: actions/setup-ruby@v1
33+
- uses: ruby/setup-ruby@v1
3634
with:
3735
ruby-version: ${{ matrix.ruby }}
38-
- name: Install gems
39-
run: |
40-
gem install bundler:2.1.4 --no-doc
41-
bundle config path vendor/bundle
42-
bundle install --jobs 4 --retry 3
36+
bundler-cache: true
4337
- name: Run RSpec
4438
run: bundle exec rspec spec/rspec
4539
e2e:
4640
runs-on: ubuntu-latest
4741
steps:
4842
- name: Check out code
4943
uses: actions/checkout@v2
50-
- name: Setup caching for ruby gems
51-
uses: actions/cache@v2
44+
- uses: ruby/setup-ruby@v1
5245
with:
53-
path: vendor/bundle
54-
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
55-
restore-keys: |
56-
${{ runner.os }}-gems-
57-
- name: Setup Ruby
58-
uses: actions/setup-ruby@v1
59-
with:
60-
ruby-version: 2.7
61-
- name: Install gems
62-
run: |
63-
gem install bundler:2.1.4 --no-doc
64-
bundle config path vendor/bundle
65-
bundle install --jobs 4 --retry 3
46+
ruby-version: 3.0
47+
bundler-cache: true
6648
- name: Run RSpec in GITHUB_WORKSPACE
6749
run: '! bundle exec rspec spec/integration/failing_spec.rb'
6850
- name: Run RSpec in sub-directory of GITHUB_WORKSPACE

.github/workflows/publish.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout repo
11-
uses: actions/checkout@v1
12-
- name: Setup Ruby
13-
uses: actions/setup-ruby@v1
11+
uses: actions/checkout@v2
12+
- uses: ruby/setup-ruby@v1
1413
with:
15-
ruby-version: 2.7
14+
ruby-version: 3.0
1615
- name: Replace version by tag value
1716
run: sed -i "s/'[0-9]\.[0-9]\..*'/'${GITHUB_REF##*/}'/" lib/rspec/github/version.rb
1817
- name: Publish to RubyGems

.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
AllCops:
22
TargetRubyVersion: 2.4
3+
NewCops: enable
34

45
# A top class comment is not needed for this simple gem
56
Style/Documentation:

Gemfile.lock

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,48 +7,49 @@ PATH
77
GEM
88
remote: https://rubygems.org/
99
specs:
10-
ast (2.4.1)
10+
ast (2.4.2)
1111
diff-lcs (1.4.4)
12-
parallel (1.19.2)
13-
parser (2.7.2.0)
12+
parallel (1.20.1)
13+
parser (3.0.1.1)
1414
ast (~> 2.4.1)
1515
rainbow (3.0.0)
16-
regexp_parser (1.8.2)
17-
rexml (3.2.4)
18-
rspec (3.9.0)
19-
rspec-core (~> 3.9.0)
20-
rspec-expectations (~> 3.9.0)
21-
rspec-mocks (~> 3.9.0)
22-
rspec-core (3.9.3)
23-
rspec-support (~> 3.9.3)
24-
rspec-expectations (3.9.2)
16+
regexp_parser (2.1.1)
17+
rexml (3.2.5)
18+
rspec (3.10.0)
19+
rspec-core (~> 3.10.0)
20+
rspec-expectations (~> 3.10.0)
21+
rspec-mocks (~> 3.10.0)
22+
rspec-core (3.10.1)
23+
rspec-support (~> 3.10.0)
24+
rspec-expectations (3.10.1)
2525
diff-lcs (>= 1.2.0, < 2.0)
26-
rspec-support (~> 3.9.0)
27-
rspec-mocks (3.9.1)
26+
rspec-support (~> 3.10.0)
27+
rspec-mocks (3.10.2)
2828
diff-lcs (>= 1.2.0, < 2.0)
29-
rspec-support (~> 3.9.0)
30-
rspec-support (3.9.3)
31-
rubocop (1.0.0)
29+
rspec-support (~> 3.10.0)
30+
rspec-support (3.10.2)
31+
rubocop (1.12.1)
3232
parallel (~> 1.10)
33-
parser (>= 2.7.1.5)
33+
parser (>= 3.0.0.0)
3434
rainbow (>= 2.2.2, < 4.0)
35-
regexp_parser (>= 1.8)
35+
regexp_parser (>= 1.8, < 3.0)
3636
rexml
37-
rubocop-ast (>= 0.6.0)
37+
rubocop-ast (>= 1.2.0, < 2.0)
3838
ruby-progressbar (~> 1.7)
39-
unicode-display_width (>= 1.4.0, < 2.0)
40-
rubocop-ast (1.0.0)
39+
unicode-display_width (>= 1.4.0, < 3.0)
40+
rubocop-ast (1.4.1)
4141
parser (>= 2.7.1.5)
42-
ruby-progressbar (1.10.1)
43-
unicode-display_width (1.7.0)
42+
ruby-progressbar (1.11.0)
43+
unicode-display_width (2.0.0)
4444

4545
PLATFORMS
4646
ruby
4747

4848
DEPENDENCIES
4949
rspec (~> 3.0)
5050
rspec-github!
51-
rubocop (~> 1.0)
51+
rubocop (~> 1.12.0)
52+
rubocop-ast (~> 1.4.0)
5253

5354
BUNDLED WITH
54-
2.1.4
55+
2.2.19

rspec-github.gemspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ Gem::Specification.new do |spec|
2323

2424
spec.add_runtime_dependency 'rspec-core', '~> 3.0'
2525
spec.add_development_dependency 'rspec', '~> 3.0'
26-
spec.add_development_dependency 'rubocop', '~> 1.0'
26+
spec.add_development_dependency 'rubocop', '~> 1.12.0'
27+
spec.add_development_dependency 'rubocop-ast', '~> 1.4.0'
2728
end

0 commit comments

Comments
 (0)