Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4
bundler-cache: true
- run: bundle exec rake
5 changes: 5 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
AllCops:
NewCops: enable
Exclude:
- vendor/**/*
- bin/**/*

plugins:
- rubocop-rake
- rubocop-rspec

inherit_from: .rubocop_todo.yml
87 changes: 76 additions & 11 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,84 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2015-08-06 12:31:48 -0400 using RuboCop version 0.33.0.
# on 2025-09-10 16:24:35 UTC using RuboCop version 1.80.2.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

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

# Offense count: 18
# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Max: 152
# Offense count: 1
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 18

# Offense count: 1
# Configuration parameters: CountComments.
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
# AllowedMethods: refine
Metrics/BlockLength:
Max: 45

# Offense count: 2
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 15

# Offense count: 3
RSpec/AnyInstance:
Exclude:
- 'spec/api/splines_endpoint_spec.rb'

# Offense count: 5
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
Exclude:
- 'spec/api/cors_spec.rb'
- 'spec/api/splines_endpoint_spec.rb'
- 'spec/api/splines_endpoint_with_hyperclient_spec.rb'

# Offense count: 5
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
Max: 10

# Offense count: 19
RSpec/MultipleExpectations:
Max: 5

# Offense count: 4
# Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata.
RSpec/SpecFilePathFormat:
Exclude:
- '**/spec/routing/**/*'
- 'spec/api/cors_spec.rb'
- 'spec/api/root_endpoint_spec.rb'
- 'spec/api/splines_endpoint_spec.rb'
- 'spec/api/splines_endpoint_with_hyperclient_spec.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Rake/Desc:
Exclude:
- 'Rakefile'

# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/CommentedKeyword:
Exclude:
- 'api/splines_endpoint.rb'

# Offense count: 9
# Configuration parameters: AllowedConstants.
Style/Documentation:
Exclude:
- 'spec/**/*'
- 'test/**/*'
- 'api/extensions/crud_extension.rb'
- 'api/presenters/paginated_presenter.rb'
- 'api/presenters/root_presenter.rb'
Expand All @@ -33,7 +89,16 @@ Style/Documentation:
- 'app/models/spline.rb'
- 'app/root_endpoint.rb'

# Offense count: 20
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, always_true, never
Style/FrozenStringLiteralComment:
Enabled: false

# Offense count: 1
Style/DoubleNegation:
Exclude:
- 'app/models/spline.rb'
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
# URISchemes: http, https
Layout/LineLength:
Max: 129
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

15 changes: 9 additions & 6 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
source 'http://rubygems.org'

gem 'activemodel'
gem 'faraday-rack'
gem 'grape'
gem 'grape-roar'
gem 'rack-cors'
gem 'grape-swagger'
gem 'activemodel'
gem 'kaminari', require: 'kaminari/grape'
gem 'rack-rewrite'
gem 'kaminari-grape'
gem 'puma'
gem 'rack-cors'
gem 'rack-rewrite'

group :development do
gem 'rake'
gem 'rubocop'
gem 'rubocop-rake'
gem 'rubocop-rspec'
end

group :test do
gem 'rspec'
gem 'rack-test'
gem 'hyperclient'
gem 'rack-test'
gem 'rspec'
end
Loading