Skip to content

Commit e4ff8fe

Browse files
committed
Various config updates
1 parent dceb117 commit e4ff8fe

File tree

5 files changed

+18
-8
lines changed

5 files changed

+18
-8
lines changed

.github/dependabot.yml

+4
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "daily"
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "daily"

.github/workflows/main.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Main
2+
23
on:
34
- push
45
- pull_request
6+
57
jobs:
68
ci:
79
strategy:
@@ -11,13 +13,14 @@ jobs:
1113
- '2.7.0'
1214
- '3.0'
1315
- '3.1'
16+
- '3.2'
1417
- head
1518
- truffleruby-head
1619
name: CI
1720
runs-on: ubuntu-latest
1821
env:
1922
CI: true
20-
TESTOPTS: --verbose
23+
# TESTOPTS: --verbose
2124
steps:
2225
- uses: actions/checkout@master
2326
- uses: ruby/setup-ruby@v1
@@ -37,7 +40,7 @@ jobs:
3740
- uses: ruby/setup-ruby@v1
3841
with:
3942
bundler-cache: true
40-
ruby-version: '3.1'
43+
ruby-version: '3.2'
4144
- name: Check
4245
run: |
4346
bundle exec rake stree:check

.rubocop.yml

+3
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,6 @@ Style/SpecialGlobalVars:
147147

148148
Style/StructInheritance:
149149
Enabled: false
150+
151+
Style/YodaExpression:
152+
Enabled: false

Gemfile.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@ GEM
1212
json (2.6.3)
1313
minitest (5.17.0)
1414
parallel (1.22.1)
15-
parser (3.1.3.0)
15+
parser (3.2.0.0)
1616
ast (~> 2.4.1)
1717
prettier_print (1.2.0)
1818
rainbow (3.1.1)
1919
rake (13.0.6)
2020
regexp_parser (2.6.1)
2121
rexml (3.2.5)
22-
rubocop (1.41.1)
22+
rubocop (1.42.0)
2323
json (~> 2.3)
2424
parallel (~> 1.10)
2525
parser (>= 3.1.2.1)
2626
rainbow (>= 2.2.2, < 4.0)
2727
regexp_parser (>= 1.8, < 3.0)
2828
rexml (>= 3.2.5, < 4.0)
29-
rubocop-ast (>= 1.23.0, < 2.0)
29+
rubocop-ast (>= 1.24.1, < 2.0)
3030
ruby-progressbar (~> 1.7)
3131
unicode-display_width (>= 1.4.0, < 3.0)
32-
rubocop-ast (1.24.0)
32+
rubocop-ast (1.24.1)
3333
parser (>= 3.1.1.0)
3434
ruby-progressbar (1.11.0)
3535
simplecov (0.22.0)
@@ -38,7 +38,7 @@ GEM
3838
simplecov_json_formatter (~> 0.1)
3939
simplecov-html (0.12.3)
4040
simplecov_json_formatter (0.1.4)
41-
unicode-display_width (2.3.0)
41+
unicode-display_width (2.4.1)
4242

4343
PLATFORMS
4444
arm64-darwin-21

lib/syntax_tree/parser.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def initialize(start, line)
5353
# there's a BOM at the beginning of the file, which is the reason we need
5454
# to compare it to 0 here.
5555
def [](byteindex)
56-
indices[byteindex < 0 ? 0 : byteindex]
56+
indices[[byteindex, 0].max]
5757
end
5858
end
5959

0 commit comments

Comments
 (0)