Skip to content

Commit 585ac32

Browse files
authored
Merge pull request #11 from dblock/maintenance
Upgrade dependencies.
2 parents 00e84dd + 5e78133 commit 585ac32

18 files changed

+311
-214
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: test
3+
on: [push, pull_request]
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- uses: ruby/setup-ruby@v1
10+
with:
11+
ruby-version: 3.4
12+
bundler-cache: true
13+
- run: bundle exec rake

.rubocop.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
AllCops:
2+
NewCops: enable
23
Exclude:
34
- vendor/**/*
45
- bin/**/*
56

7+
plugins:
8+
- rubocop-rake
9+
- rubocop-rspec
10+
611
inherit_from: .rubocop_todo.yml

.rubocop_todo.yml

Lines changed: 76 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,84 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2015-08-06 12:31:48 -0400 using RuboCop version 0.33.0.
3+
# on 2025-09-10 16:24:35 UTC using RuboCop version 1.80.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
77
# versions of RuboCop, may require this file to be generated again.
88

99
# Offense count: 1
10-
Metrics/AbcSize:
11-
Max: 19
10+
# This cop supports unsafe autocorrection (--autocorrect-all).
11+
Lint/NonDeterministicRequireOrder:
12+
Exclude:
13+
- 'config/application.rb'
1214

13-
# Offense count: 18
14-
# Configuration parameters: AllowURI, URISchemes.
15-
Metrics/LineLength:
16-
Max: 152
15+
# Offense count: 1
16+
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
17+
Metrics/AbcSize:
18+
Max: 18
1719

1820
# Offense count: 1
19-
# Configuration parameters: CountComments.
21+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
22+
# AllowedMethods: refine
23+
Metrics/BlockLength:
24+
Max: 45
25+
26+
# Offense count: 2
27+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
2028
Metrics/MethodLength:
2129
Max: 15
2230

31+
# Offense count: 3
32+
RSpec/AnyInstance:
33+
Exclude:
34+
- 'spec/api/splines_endpoint_spec.rb'
35+
36+
# Offense count: 5
37+
# Configuration parameters: Prefixes, AllowedPatterns.
38+
# Prefixes: when, with, without
39+
RSpec/ContextWording:
40+
Exclude:
41+
- 'spec/api/cors_spec.rb'
42+
- 'spec/api/splines_endpoint_spec.rb'
43+
- 'spec/api/splines_endpoint_with_hyperclient_spec.rb'
44+
45+
# Offense count: 5
46+
# Configuration parameters: CountAsOne.
47+
RSpec/ExampleLength:
48+
Max: 10
49+
50+
# Offense count: 19
51+
RSpec/MultipleExpectations:
52+
Max: 5
53+
54+
# Offense count: 4
55+
# Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata.
56+
RSpec/SpecFilePathFormat:
57+
Exclude:
58+
- '**/spec/routing/**/*'
59+
- 'spec/api/cors_spec.rb'
60+
- 'spec/api/root_endpoint_spec.rb'
61+
- 'spec/api/splines_endpoint_spec.rb'
62+
- 'spec/api/splines_endpoint_with_hyperclient_spec.rb'
63+
64+
# Offense count: 1
65+
# This cop supports safe autocorrection (--autocorrect).
66+
Rake/Desc:
67+
Exclude:
68+
- 'Rakefile'
69+
70+
# Offense count: 2
71+
# This cop supports unsafe autocorrection (--autocorrect-all).
72+
Style/CommentedKeyword:
73+
Exclude:
74+
- 'api/splines_endpoint.rb'
75+
2376
# Offense count: 9
77+
# Configuration parameters: AllowedConstants.
2478
Style/Documentation:
2579
Exclude:
80+
- 'spec/**/*'
81+
- 'test/**/*'
2682
- 'api/extensions/crud_extension.rb'
2783
- 'api/presenters/paginated_presenter.rb'
2884
- 'api/presenters/root_presenter.rb'
@@ -33,7 +89,16 @@ Style/Documentation:
3389
- 'app/models/spline.rb'
3490
- 'app/root_endpoint.rb'
3591

92+
# Offense count: 20
93+
# This cop supports unsafe autocorrection (--autocorrect-all).
94+
# Configuration parameters: EnforcedStyle.
95+
# SupportedStyles: always, always_true, never
96+
Style/FrozenStringLiteralComment:
97+
Enabled: false
98+
3699
# Offense count: 1
37-
Style/DoubleNegation:
38-
Exclude:
39-
- 'app/models/spline.rb'
100+
# This cop supports safe autocorrection (--autocorrect).
101+
# Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
102+
# URISchemes: http, https
103+
Layout/LineLength:
104+
Max: 129

.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

Gemfile

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

3+
gem 'activemodel'
4+
gem 'faraday-rack'
35
gem 'grape'
46
gem 'grape-roar'
5-
gem 'rack-cors'
67
gem 'grape-swagger'
7-
gem 'activemodel'
8-
gem 'kaminari', require: 'kaminari/grape'
9-
gem 'rack-rewrite'
8+
gem 'kaminari-grape'
109
gem 'puma'
10+
gem 'rack-cors'
11+
gem 'rack-rewrite'
1112

1213
group :development do
1314
gem 'rake'
1415
gem 'rubocop'
16+
gem 'rubocop-rake'
17+
gem 'rubocop-rspec'
1518
end
1619

1720
group :test do
18-
gem 'rspec'
19-
gem 'rack-test'
2021
gem 'hyperclient'
22+
gem 'rack-test'
23+
gem 'rspec'
2124
end

0 commit comments

Comments
 (0)