Skip to content

Commit 2e10d49

Browse files
committed
Upgrade to grape-roar 0.5.0.
1 parent 37ea6fd commit 2e10d49

20 files changed

+337
-199
lines changed

.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

67
inherit_from: .rubocop_todo.yml
8+
9+
plugins:
10+
- rubocop-rake
11+
- rubocop-rspec

.rubocop_todo.yml

Lines changed: 75 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,80 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2016-09-25 16:03:07 -0400 using RuboCop version 0.43.0.
3+
# on 2025-09-25 12:54:36 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+
# This cop supports unsafe autocorrection (--autocorrect-all).
11+
Lint/NonDeterministicRequireOrder:
12+
Exclude:
13+
- 'config/application.rb'
14+
15+
# Offense count: 1
16+
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
1017
Metrics/AbcSize:
11-
Max: 19
18+
Max: 18
1219

13-
# Offense count: 27
14-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
15-
# URISchemes: http, https
16-
Metrics/LineLength:
17-
Max: 149
20+
# Offense count: 1
21+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
22+
# AllowedMethods: refine
23+
Metrics/BlockLength:
24+
Max: 46
1825

1926
# Offense count: 2
20-
# Configuration parameters: CountComments.
27+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
2128
Metrics/MethodLength:
2229
Max: 15
2330

31+
# Offense count: 1
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+
2476
# Offense count: 10
77+
# Configuration parameters: AllowedConstants.
2578
Style/Documentation:
2679
Exclude:
2780
- 'spec/**/*'
@@ -36,3 +89,17 @@ Style/Documentation:
3689
- 'app/acme_app.rb'
3790
- 'app/models/spline.rb'
3891
- 'app/root_endpoint.rb'
92+
93+
# Offense count: 25
94+
# This cop supports unsafe autocorrection (--autocorrect-all).
95+
# Configuration parameters: EnforcedStyle.
96+
# SupportedStyles: always, always_true, never
97+
Style/FrozenStringLiteralComment:
98+
Enabled: false
99+
100+
# Offense count: 1
101+
# This cop supports safe autocorrection (--autocorrect).
102+
# Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
103+
# URISchemes: http, https
104+
Layout/LineLength:
105+
Max: 129

Gemfile

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

3+
gem 'activemodel'
34
gem 'grape'
45
gem 'grape-roar'
5-
gem 'rack-cors'
66
gem 'grape-swagger'
7-
gem 'activemodel'
8-
gem 'rack-rewrite'
9-
gem 'puma'
10-
gem 'mongoid', '~> 5.0'
7+
gem 'mongoid'
118
gem 'mongoid-scroll'
9+
gem 'puma'
10+
gem 'rack-cors'
11+
gem 'rack-rewrite'
1212

1313
group :development do
1414
gem 'rake'
1515
gem 'rubocop'
16+
gem 'rubocop-rake'
17+
gem 'rubocop-rspec'
1618
end
1719

1820
group :test do
19-
gem 'rspec'
20-
gem 'rack-test'
21-
gem 'hyperclient'
22-
gem 'database_cleaner'
21+
gem 'database_cleaner-mongoid'
2322
gem 'fabrication'
2423
gem 'faker'
24+
gem 'faraday-rack'
25+
gem 'hyperclient'
26+
gem 'rack-test'
27+
gem 'rspec'
2528
end

0 commit comments

Comments
 (0)