Skip to content

Commit a9545c9

Browse files
committed
Fix: CI.
1 parent a069ea7 commit a9545c9

File tree

10 files changed

+142
-154
lines changed

10 files changed

+142
-154
lines changed

.github/workflows/rubocop.yml

Lines changed: 1 addition & 1 deletion
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.7"
11+
ruby-version: "3.4"
1212
bundler-cache: true
1313
- run: bundle exec rubocop

.github/workflows/test.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ jobs:
77
fail-fast: false
88
matrix:
99
ruby:
10-
- "2.7"
11-
- "3.0"
12-
- "3.1"
1310
- "3.2"
11+
- "3.4"
1412
steps:
1513
- uses: actions/checkout@v3
1614
- name: Set up Ruby
@@ -23,7 +21,7 @@ jobs:
2321
geckodriver-version: "0.32.2"
2422
- uses: browser-actions/setup-firefox@v1
2523
with:
26-
firefox-version: "111.0.1"
24+
firefox-version: "134.0.1"
2725
- uses: coactions/setup-xvfb@v1
2826
with:
2927
run: |

.rubocop.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ Style/FrozenStringLiteralComment:
1818

1919
inherit_from: .rubocop_todo.yml
2020

21-
require:
22-
- rubocop-capybara
21+
plugins:
2322
- rubocop-rake
2423
- rubocop-rspec
2524

25+
require:
26+
- rubocop-capybara
27+

.rubocop_todo.yml

Lines changed: 3 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2023-11-08 18:43:53 UTC using RuboCop version 1.57.2.
3+
# on 2025-02-20 14:43:43 UTC using RuboCop version 1.72.2.
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
@@ -12,7 +12,7 @@ RSpec/BeEql:
1212
Exclude:
1313
- 'spec/api/documentation_spec.rb'
1414

15-
# Offense count: 14
15+
# Offense count: 15
1616
# Configuration parameters: Prefixes, AllowedPatterns.
1717
# Prefixes: when, with, without
1818
RSpec/ContextWording:
@@ -26,6 +26,7 @@ RSpec/ContextWording:
2626

2727
# Offense count: 1
2828
# This cop supports unsafe autocorrection (--autocorrect-all).
29+
# Configuration parameters: AutoCorrect.
2930
RSpec/EmptyExampleGroup:
3031
Exclude:
3132
- 'spec/api/documentation_spec.rb'
@@ -40,27 +41,6 @@ RSpec/ExpectInHook:
4041
Exclude:
4142
- 'spec/api/documentation_spec.rb'
4243

43-
# Offense count: 15
44-
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
45-
# Include: **/*_spec*rb*, **/spec/**/*
46-
RSpec/FilePath:
47-
Exclude:
48-
- 'spec/api/content_type_spec.rb'
49-
- 'spec/api/cors_spec.rb'
50-
- 'spec/api/documentation_spec.rb'
51-
- 'spec/api/entities_spec.rb'
52-
- 'spec/api/get_json_spec.rb'
53-
- 'spec/api/header_versioning_spec.rb'
54-
- 'spec/api/headers_spec.rb'
55-
- 'spec/api/path_versioning_spec.rb'
56-
- 'spec/api/ping_spec.rb'
57-
- 'spec/api/post_json_spec.rb'
58-
- 'spec/api/post_put_spec.rb'
59-
- 'spec/api/rescue_from_spec.rb'
60-
- 'spec/api/stream_data_spec.rb'
61-
- 'spec/api/upload_file_spec.rb'
62-
- 'spec/api/wrap_response_spec.rb'
63-
6444
# Offense count: 9
6545
# Configuration parameters: AssignmentOnly.
6646
RSpec/InstanceVariable:
@@ -106,14 +86,6 @@ Rake/Desc:
10686
Exclude:
10787
- 'Rakefile'
10888

109-
# Offense count: 1
110-
# This cop supports safe autocorrection (--autocorrect).
111-
# Configuration parameters: EnforcedStyle.
112-
# SupportedStyles: line_count_dependent, lambda, literal
113-
Style/Lambda:
114-
Exclude:
115-
- 'app/acme_app.rb'
116-
11789
# Offense count: 1
11890
# This cop supports unsafe autocorrection (--autocorrect-all).
11991
Style/MapToHash:
@@ -125,12 +97,6 @@ Style/OpenStructUse:
12597
Exclude:
12698
- 'api/entities.rb'
12799

128-
# Offense count: 1
129-
# This cop supports safe autocorrection (--autocorrect).
130-
Style/RescueModifier:
131-
Exclude:
132-
- 'api/get_json.rb'
133-
134100
# Offense count: 1
135101
# This cop supports unsafe autocorrection (--autocorrect-all).
136102
# Configuration parameters: Mode.

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
source 'http://rubygems.org'
22

3+
gem 'builder'
34
gem 'grape'
45
gem 'grape-entity'
56
gem 'grape-swagger'
@@ -8,6 +9,7 @@ gem 'json'
89
gem 'mime-types'
910
gem 'newrelic_rpm'
1011
gem 'nokogiri'
12+
gem 'ostruct'
1113
gem 'puma'
1214
gem 'rack'
1315
gem 'rack-cors'

0 commit comments

Comments
 (0)