File tree Expand file tree Collapse file tree 6 files changed +50
-10
lines changed Expand file tree Collapse file tree 6 files changed +50
-10
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,19 @@ jobs:
1111 runs-on : ubuntu-latest
1212
1313 steps :
14- - uses : actions/checkout@v2
14+ - uses : actions/checkout@v4
1515
16- - name : Set up Ruby 3.0
16+ - name : Set up Ruby
1717 uses : ruby/setup-ruby@v1
1818 with :
19- ruby-version : 3.0.0
19+ ruby-version : 3.3.4
2020
2121 - name : Install dependencies
2222 run : make install
2323
2424 - name : Run Rubocop
2525 run : make lint
26+ - name : SonarQube Scan
27+ uses : SonarSource/sonarqube-scan-action@v5
28+ env :
29+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
Original file line number Diff line number Diff line change @@ -5,9 +5,10 @@ source 'https://rubygems.org'
55# Specify your gem's dependencies in sample_gem.gemspec
66gemspec
77
8- gem 'rake' , '~> 12.0 '
8+ gem 'rake' , '~> 13.1 '
99
1010group :development do
11+ gem 'bundle_update_interactive'
1112 gem 'minitest-power_assert'
1213 gem 'rubocop'
1314 gem 'rubocop-performance'
Original file line number Diff line number Diff line change 22 remote: .
33 specs:
44 sample_gem (0.1.0 )
5- minitest-power_assert
65
76GEM
87 remote: https://rubygems.org/
2019 securerandom (>= 0.3 )
2120 tzinfo (~> 2.0 , >= 2.0.5 )
2221 uri (>= 0.13.1 )
22+ addressable (2.8.7 )
23+ public_suffix (>= 2.0.2 , < 7.0 )
2324 ast (2.4.3 )
2425 backport (1.2.0 )
2526 base64 (0.2.0 )
2627 benchmark (0.4.0 )
2728 bigdecimal (3.1.9 )
29+ bundle_update_interactive (0.11.0 )
30+ bundler (~> 2.0 )
31+ bundler-audit (>= 0.9.1 )
32+ concurrent-ruby (>= 1.3.4 )
33+ launchy (>= 2.5.0 )
34+ pastel (>= 0.8.0 )
35+ tty-prompt (>= 0.23.1 )
36+ tty-screen (>= 0.8.2 )
37+ zeitwerk (~> 2.6 )
38+ bundler-audit (0.9.2 )
39+ bundler (>= 1.2.0 , < 3 )
40+ thor (~> 1.0 )
41+ childprocess (5.1.0 )
42+ logger (~> 1.5 )
2843 concurrent-ruby (1.3.5 )
2944 connection_pool (2.5.0 )
3045 diff-lcs (1.6.1 )
3853 kramdown-parser-gfm (1.1.0 )
3954 kramdown (~> 2.0 )
4055 language_server-protocol (3.17.0.4 )
56+ launchy (3.1.1 )
57+ addressable (~> 2.8 )
58+ childprocess (~> 5.0 )
59+ logger (~> 1.6 )
4160 lint_roller (1.1.0 )
4261 logger (1.7.0 )
4362 minitest (5.25.5 )
6685 parser (3.3.7.4 )
6786 ast (~> 2.4.1 )
6887 racc
88+ pastel (0.8.0 )
89+ tty-color (~> 0.5 )
6990 power_assert (2.0.5 )
7091 prism (1.4.0 )
92+ public_suffix (6.0.1 )
7193 racc (1.8.1 )
7294 rack (3.1.12 )
7395 rainbow (3.1.1 )
74- rake (12.3.3 )
96+ rake (13.2.1 )
7597 rbs (3.9.2 )
7698 logger
7799 regexp_parser (2.10.0 )
@@ -131,15 +153,27 @@ GEM
131153 yard-solargraph (~> 0.1 )
132154 thor (1.3.2 )
133155 tilt (2.6.0 )
156+ tty-color (0.6.0 )
157+ tty-cursor (0.7.1 )
158+ tty-prompt (0.23.1 )
159+ pastel (~> 0.8 )
160+ tty-reader (~> 0.8 )
161+ tty-reader (0.9.0 )
162+ tty-cursor (~> 0.7 )
163+ tty-screen (~> 0.8 )
164+ wisper (~> 2.0 )
165+ tty-screen (0.8.2 )
134166 tzinfo (2.0.6 )
135167 concurrent-ruby (~> 1.0 )
136168 unicode-display_width (3.1.4 )
137169 unicode-emoji (~> 4.0 , >= 4.0.4 )
138170 unicode-emoji (4.0.4 )
139171 uri (1.0.3 )
172+ wisper (2.0.1 )
140173 yard (0.9.37 )
141174 yard-solargraph (0.1.0 )
142175 yard (~> 0.9 )
176+ zeitwerk (2.7.2 )
143177
144178PLATFORMS
145179 aarch64-linux-gnu
@@ -152,8 +186,9 @@ PLATFORMS
152186 x86_64-linux-musl
153187
154188DEPENDENCIES
189+ bundle_update_interactive
155190 minitest-power_assert
156- rake (~> 12.0 )
191+ rake (~> 13.1 )
157192 rubocop
158193 rubocop-performance
159194 rubocop-rails
Original file line number Diff line number Diff line change @@ -10,4 +10,6 @@ lint-fix:
1010test :
1111 bundle exec rake test
1212
13+ update-deps :
14+ bundle update-interactive
1315.PHONY : test
Original file line number Diff line number Diff line change @@ -25,6 +25,4 @@ Gem::Specification.new do |spec|
2525 spec . executables = spec . files . grep ( %r{^exe/} ) { |f | File . basename ( f ) }
2626 spec . require_paths = [ 'lib' ]
2727 spec . metadata [ 'rubygems_mfa_required' ] = 'true'
28-
29- spec . add_dependency 'minitest-power_assert'
3028end
Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ class SampleGemTest < Minitest::Test
88 def test_half
99 assert { SampleGem . half ( 10 ) == 5 }
1010 assert { SampleGem . half ( 0 ) . zero? }
11- assert { SampleGem . half ( -10 ) == 5 }
11+ assert { SampleGem . half ( -10 ) == - 5 }
1212 end
1313end
You can’t perform that action at this time.
0 commit comments