File tree 8 files changed +22
-24
lines changed
8 files changed +22
-24
lines changed Original file line number Diff line number Diff line change 8
8
- name : Set up Ruby
9
9
uses : ruby/setup-ruby@v1
10
10
with :
11
- ruby-version : 2.6.5
11
+ ruby-version : 3.1.1
12
12
bundler-cache : true
13
13
- run : bundle exec rubocop
Original file line number Diff line number Diff line change 8
8
- name : Set up Ruby
9
9
uses : ruby/setup-ruby@v1
10
10
with :
11
- ruby-version : 2.6.5
11
+ ruby-version : 3.1.1
12
12
bundler-cache : true
13
13
- uses : browser-actions/setup-geckodriver@latest
14
14
with :
Original file line number Diff line number Diff line change 4
4
.irbrc
5
5
.bundle
6
6
log
7
+ vendor
Original file line number Diff line number Diff line change 1
1
# This configuration was generated by
2
2
# `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.
4
4
# The point is for the user to remove these configuration records
5
5
# one by one as the offenses are removed from the code base.
6
6
# Note that changes in the inspected code, or installation of new
7
7
# versions of RuboCop, may require this file to be generated again.
8
8
9
- # Offense count: 1
10
- # This cop supports unsafe autocorrection (--autocorrect-all).
11
- Lint/NonDeterministicRequireOrder :
12
- Exclude :
13
- - ' config/application.rb'
14
-
15
9
# Offense count: 1
16
10
Lint/UriEscapeUnescape :
17
11
Exclude :
Original file line number Diff line number Diff line change 1
1
source 'http://rubygems.org'
2
2
3
- ruby '2.6.5 '
3
+ ruby '3.1.1 '
4
4
5
5
gem 'grape'
6
6
gem 'grape-entity'
@@ -11,6 +11,7 @@ gem 'mime-types'
11
11
gem 'newrelic_rpm'
12
12
gem 'nokogiri'
13
13
gem 'rack-cors'
14
+ gem 'webrick'
14
15
15
16
group :development do
16
17
gem 'guard'
Original file line number Diff line number Diff line change 1
1
GEM
2
2
remote: http://rubygems.org/
3
3
specs:
4
- activesupport (6.1.6 )
4
+ activesupport (7.0.3 )
5
5
concurrent-ruby (~> 1.0 , >= 1.0.2 )
6
6
i18n (>= 1.6 , < 2 )
7
7
minitest (>= 5.1 )
8
8
tzinfo (~> 2.0 )
9
- zeitwerk (~> 2.3 )
10
9
addressable (2.8.0 )
11
10
public_suffix (>= 2.0.2 , < 5.0 )
12
11
ast (2.4.2 )
13
12
builder (3.2.4 )
14
- capybara (3.36.0 )
13
+ capybara (3.37.1 )
15
14
addressable
16
15
matrix
17
16
mini_mime (>= 0.1.3 )
24
23
coderay (1.1.3 )
25
24
concurrent-ruby (1.1.10 )
26
25
diff-lcs (1.5.0 )
27
- dry-configurable (0.13 .0 )
26
+ dry-configurable (0.15 .0 )
28
27
concurrent-ruby (~> 1.0 )
29
28
dry-core (~> 0.6 )
30
29
dry-container (0.9.0 )
68
67
pry (>= 0.13.0 )
69
68
shellany (~> 0.0 )
70
69
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 )
73
72
guard (~> 2.2 )
74
73
guard-compat (~> 1.1 )
75
74
guard-compat (1.2.1 )
@@ -153,25 +152,27 @@ GEM
153
152
parser (>= 3.1.1.0 )
154
153
rubocop-rake (0.6.0 )
155
154
rubocop (~> 1.0 )
156
- rubocop-rspec (2.9.0 )
155
+ rubocop-rspec (2.11.1 )
157
156
rubocop (~> 1.19 )
158
157
ruby-progressbar (1.11.0 )
159
158
ruby2_keywords (0.0.5 )
160
159
rubyzip (2.3.2 )
161
- selenium-webdriver (4.1.0 )
160
+ selenium-webdriver (4.2.1 )
162
161
childprocess (>= 0.5 , < 5.0 )
163
162
rexml (~> 3.2 , >= 3.2.5 )
164
- rubyzip (>= 1.2.2 )
163
+ rubyzip (>= 1.2.2 , < 3.0 )
164
+ websocket (~> 1.0 )
165
165
shellany (0.0.1 )
166
166
spoon (0.0.6 )
167
167
ffi
168
168
thor (1.2.1 )
169
169
tzinfo (2.0.4 )
170
170
concurrent-ruby (~> 1.0 )
171
171
unicode-display_width (2.1.0 )
172
+ webrick (1.7.0 )
173
+ websocket (1.2.9 )
172
174
xpath (3.2.0 )
173
175
nokogiri (~> 1.8 )
174
- zeitwerk (2.6.0 )
175
176
176
177
PLATFORMS
177
178
ruby
@@ -197,9 +198,10 @@ DEPENDENCIES
197
198
rubocop-rake
198
199
rubocop-rspec
199
200
selenium-webdriver
201
+ webrick
200
202
201
203
RUBY VERSION
202
- ruby 2.6.5p114
204
+ ruby 3.1.1p18
203
205
204
206
BUNDLED WITH
205
- 1.17.3
207
+ 2.3.15
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class UploadFile < Grape::API
15
15
filename = params [ :file ] [ :filename ]
16
16
content_type MIME ::Types . type_for ( filename ) [ 0 ] . to_s
17
17
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 ) } "
19
19
params [ :file ] [ :tempfile ] . read
20
20
end
21
21
end
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ def initialize(app)
7
7
def call ( env )
8
8
status , headers , body_proxy = @app . call ( env )
9
9
bodies = body_proxy . map do |body |
10
- { body : JSON . parse ( body ) , status : status } . to_json
10
+ { body : JSON . parse ( body ) , status : } . to_json
11
11
end
12
12
[ 200 , headers , bodies ]
13
13
end
You can’t perform that action at this time.
0 commit comments