File tree 5 files changed +18
-8
lines changed
5 files changed +18
-8
lines changed Original file line number Diff line number Diff line change 4
4
directory : " /"
5
5
schedule :
6
6
interval : " daily"
7
+ - package-ecosystem : " github-actions"
8
+ directory : " /"
9
+ schedule :
10
+ interval : " daily"
Original file line number Diff line number Diff line change 1
1
name : Main
2
+
2
3
on :
3
4
- push
4
5
- pull_request
6
+
5
7
jobs :
6
8
ci :
7
9
strategy :
@@ -11,13 +13,14 @@ jobs:
11
13
- ' 2.7.0'
12
14
- ' 3.0'
13
15
- ' 3.1'
16
+ - ' 3.2'
14
17
- head
15
18
- truffleruby-head
16
19
name : CI
17
20
runs-on : ubuntu-latest
18
21
env :
19
22
CI : true
20
- TESTOPTS : --verbose
23
+ # TESTOPTS: --verbose
21
24
steps :
22
25
- uses : actions/checkout@master
23
26
- uses : ruby/setup-ruby@v1
37
40
- uses : ruby/setup-ruby@v1
38
41
with :
39
42
bundler-cache : true
40
- ruby-version : ' 3.1 '
43
+ ruby-version : ' 3.2 '
41
44
- name : Check
42
45
run : |
43
46
bundle exec rake stree:check
Original file line number Diff line number Diff line change @@ -147,3 +147,6 @@ Style/SpecialGlobalVars:
147
147
148
148
Style/StructInheritance :
149
149
Enabled : false
150
+
151
+ Style/YodaExpression :
152
+ Enabled : false
Original file line number Diff line number Diff line change 12
12
json (2.6.3 )
13
13
minitest (5.17.0 )
14
14
parallel (1.22.1 )
15
- parser (3.1.3 .0 )
15
+ parser (3.2.0 .0 )
16
16
ast (~> 2.4.1 )
17
17
prettier_print (1.2.0 )
18
18
rainbow (3.1.1 )
19
19
rake (13.0.6 )
20
20
regexp_parser (2.6.1 )
21
21
rexml (3.2.5 )
22
- rubocop (1.41.1 )
22
+ rubocop (1.42.0 )
23
23
json (~> 2.3 )
24
24
parallel (~> 1.10 )
25
25
parser (>= 3.1.2.1 )
26
26
rainbow (>= 2.2.2 , < 4.0 )
27
27
regexp_parser (>= 1.8 , < 3.0 )
28
28
rexml (>= 3.2.5 , < 4.0 )
29
- rubocop-ast (>= 1.23.0 , < 2.0 )
29
+ rubocop-ast (>= 1.24.1 , < 2.0 )
30
30
ruby-progressbar (~> 1.7 )
31
31
unicode-display_width (>= 1.4.0 , < 3.0 )
32
- rubocop-ast (1.24.0 )
32
+ rubocop-ast (1.24.1 )
33
33
parser (>= 3.1.1.0 )
34
34
ruby-progressbar (1.11.0 )
35
35
simplecov (0.22.0 )
38
38
simplecov_json_formatter (~> 0.1 )
39
39
simplecov-html (0.12.3 )
40
40
simplecov_json_formatter (0.1.4 )
41
- unicode-display_width (2.3.0 )
41
+ unicode-display_width (2.4.1 )
42
42
43
43
PLATFORMS
44
44
arm64-darwin-21
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def initialize(start, line)
53
53
# there's a BOM at the beginning of the file, which is the reason we need
54
54
# to compare it to 0 here.
55
55
def []( byteindex )
56
- indices [ byteindex < 0 ? 0 : byteindex ]
56
+ indices [ [ byteindex , 0 ] . max ]
57
57
end
58
58
end
59
59
You can’t perform that action at this time.
0 commit comments