File tree 3 files changed +9
-8
lines changed
3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 8
8
matrix :
9
9
ruby : [ '3.1', '3.2', '3.3', 'head' ]
10
10
rails : [ '7.1', 'edge' ]
11
+ rubyopt : [""]
11
12
include :
12
- - ruby : ' 2.7'
13
- rails : ' 6.1'
14
13
- ruby : ' 3.0'
15
14
rails : ' 6.1'
16
15
- ruby : ' 3.1'
17
16
rails : ' 7.0'
17
+ - ruby : ' 3.3'
18
+ rails : ' edge'
19
+ rubyopt : " --enable-frozen-string-literal"
18
20
19
21
env :
20
22
RAILS_VERSION : ${{ matrix.rails }}
21
23
22
24
steps :
23
- - uses : actions/checkout@v2
25
+ - uses : actions/checkout@v4
24
26
25
27
- name : Set up Ruby
26
28
uses : ruby/setup-ruby@v1
@@ -29,10 +31,10 @@ jobs:
29
31
bundler-cache : true
30
32
31
33
- name : Run unit tests
32
- run : bundle exec rake test:unit
34
+ run : bundle exec rake test:unit RUBYOPT="${{ matrix.rubyopt }}"
33
35
timeout-minutes : 3
34
36
35
37
- name : Run acceptance tests
36
- run : bundle exec rake test:acceptance
38
+ run : bundle exec rake test:acceptance RUBYOPT="${{ matrix.rubyopt }}"
37
39
timeout-minutes : 10
38
40
if : ${{ matrix.rails != 'edge' && matrix.ruby != 'head' }} # Acceptance tests use `gem install rails && rails new`
Original file line number Diff line number Diff line change 13
13
module Spring
14
14
module JSON
15
15
def self . load ( string )
16
- string . force_encoding ( "utf-8" )
17
16
OkJson . decode ( string )
18
17
end
19
18
@@ -364,7 +363,7 @@ def unquote(q)
364
363
end
365
364
end
366
365
if rubydoesenc?
367
- a [ w ] = '' << uchar
366
+ a [ w ] = + '' << uchar
368
367
w += 1
369
368
else
370
369
w += ucharenc ( a , w , uchar )
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ def read_streams
168
168
end
169
169
170
170
def read_stream ( stream )
171
- output = ""
171
+ output = + ""
172
172
while IO . select ( [ stream ] , [ ] , [ ] , 0.5 ) && !stream . eof?
173
173
output << stream . readpartial ( 10240 )
174
174
end
You can’t perform that action at this time.
0 commit comments