Skip to content

Commit 890fe26

Browse files
authored
Merge pull request #41 from dblock/ruby-3.1.1
Upgraded to Ruby 3.1.1.
2 parents 71a9f92 + 32dbea5 commit 890fe26

File tree

8 files changed

+22
-24
lines changed

8 files changed

+22
-24
lines changed

.github/workflows/rubocop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ jobs:
88
- name: Set up Ruby
99
uses: ruby/setup-ruby@v1
1010
with:
11-
ruby-version: 2.6.5
11+
ruby-version: 3.1.1
1212
bundler-cache: true
1313
- run: bundle exec rubocop

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
- name: Set up Ruby
99
uses: ruby/setup-ruby@v1
1010
with:
11-
ruby-version: 2.6.5
11+
ruby-version: 3.1.1
1212
bundler-cache: true
1313
- uses: browser-actions/setup-geckodriver@latest
1414
with:

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
.irbrc
55
.bundle
66
log
7+
vendor

.rubocop_todo.yml

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2022-06-18 00:01:02 UTC using RuboCop version 1.30.1.
3+
# on 2022-06-18 16:28:15 UTC using RuboCop version 1.30.1.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9-
# Offense count: 1
10-
# This cop supports unsafe autocorrection (--autocorrect-all).
11-
Lint/NonDeterministicRequireOrder:
12-
Exclude:
13-
- 'config/application.rb'
14-
159
# Offense count: 1
1610
Lint/UriEscapeUnescape:
1711
Exclude:

Gemfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source 'http://rubygems.org'
22

3-
ruby '2.6.5'
3+
ruby '3.1.1'
44

55
gem 'grape'
66
gem 'grape-entity'
@@ -11,6 +11,7 @@ gem 'mime-types'
1111
gem 'newrelic_rpm'
1212
gem 'nokogiri'
1313
gem 'rack-cors'
14+
gem 'webrick'
1415

1516
group :development do
1617
gem 'guard'

Gemfile.lock

+14-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
GEM
22
remote: http://rubygems.org/
33
specs:
4-
activesupport (6.1.6)
4+
activesupport (7.0.3)
55
concurrent-ruby (~> 1.0, >= 1.0.2)
66
i18n (>= 1.6, < 2)
77
minitest (>= 5.1)
88
tzinfo (~> 2.0)
9-
zeitwerk (~> 2.3)
109
addressable (2.8.0)
1110
public_suffix (>= 2.0.2, < 5.0)
1211
ast (2.4.2)
1312
builder (3.2.4)
14-
capybara (3.36.0)
13+
capybara (3.37.1)
1514
addressable
1615
matrix
1716
mini_mime (>= 0.1.3)
@@ -24,7 +23,7 @@ GEM
2423
coderay (1.1.3)
2524
concurrent-ruby (1.1.10)
2625
diff-lcs (1.5.0)
27-
dry-configurable (0.13.0)
26+
dry-configurable (0.15.0)
2827
concurrent-ruby (~> 1.0)
2928
dry-core (~> 0.6)
3029
dry-container (0.9.0)
@@ -68,8 +67,8 @@ GEM
6867
pry (>= 0.13.0)
6968
shellany (~> 0.0)
7069
thor (>= 0.18.1)
71-
guard-bundler (2.2.1)
72-
bundler (>= 1.3.0, < 3)
70+
guard-bundler (3.0.0)
71+
bundler (>= 2.1, < 3)
7372
guard (~> 2.2)
7473
guard-compat (~> 1.1)
7574
guard-compat (1.2.1)
@@ -153,25 +152,27 @@ GEM
153152
parser (>= 3.1.1.0)
154153
rubocop-rake (0.6.0)
155154
rubocop (~> 1.0)
156-
rubocop-rspec (2.9.0)
155+
rubocop-rspec (2.11.1)
157156
rubocop (~> 1.19)
158157
ruby-progressbar (1.11.0)
159158
ruby2_keywords (0.0.5)
160159
rubyzip (2.3.2)
161-
selenium-webdriver (4.1.0)
160+
selenium-webdriver (4.2.1)
162161
childprocess (>= 0.5, < 5.0)
163162
rexml (~> 3.2, >= 3.2.5)
164-
rubyzip (>= 1.2.2)
163+
rubyzip (>= 1.2.2, < 3.0)
164+
websocket (~> 1.0)
165165
shellany (0.0.1)
166166
spoon (0.0.6)
167167
ffi
168168
thor (1.2.1)
169169
tzinfo (2.0.4)
170170
concurrent-ruby (~> 1.0)
171171
unicode-display_width (2.1.0)
172+
webrick (1.7.0)
173+
websocket (1.2.9)
172174
xpath (3.2.0)
173175
nokogiri (~> 1.8)
174-
zeitwerk (2.6.0)
175176

176177
PLATFORMS
177178
ruby
@@ -197,9 +198,10 @@ DEPENDENCIES
197198
rubocop-rake
198199
rubocop-rspec
199200
selenium-webdriver
201+
webrick
200202

201203
RUBY VERSION
202-
ruby 2.6.5p114
204+
ruby 3.1.1p18
203205

204206
BUNDLED WITH
205-
1.17.3
207+
2.3.15

api/upload_file.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class UploadFile < Grape::API
1515
filename = params[:file][:filename]
1616
content_type MIME::Types.type_for(filename)[0].to_s
1717
env['api.format'] = :binary
18-
header 'Content-Disposition', "attachment; filename*=UTF-8''#{URI.escape(filename)}"
18+
header 'Content-Disposition', "attachment; filename*=UTF-8''#{CGI.escape(filename)}"
1919
params[:file][:tempfile].read
2020
end
2121
end

api/wrap_response_decorator.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def initialize(app)
77
def call(env)
88
status, headers, body_proxy = @app.call(env)
99
bodies = body_proxy.map do |body|
10-
{ body: JSON.parse(body), status: status }.to_json
10+
{ body: JSON.parse(body), status: }.to_json
1111
end
1212
[200, headers, bodies]
1313
end

0 commit comments

Comments
 (0)