grape-starter 1.2.6 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0319aad1d8c7ee2391228d9406510f7154c20bc1499ad236747f3296bdd60e1
4
- data.tar.gz: d7c5675719b83d4b00c1c6a79c18be5548cfa9c03e02d20d0951547d384a9add
3
+ metadata.gz: c752c455094a44db08942b91703d61b2aef293922364a7add73b7b7e071db20a
4
+ data.tar.gz: 3a76c3bbebd2b8ae039dbce2c1d05971c718b91daf68962cae9cf2e683b49c1d
5
5
  SHA512:
6
- metadata.gz: a9fd4c6a7b26fa0cbe7243d389446a2f7076e5fdc2ea2363d20283c10998bf8963544a86f7fa57cb1d77f169d2cda8a22e70d9726f3f685b30e07388f58a789c
7
- data.tar.gz: eac255d57b207a70a02782f3ddcb3d4adddee53c794b9886a2cea4d00688910e25700af1fc5c456f7b382c201ebbff5585fe429498f305b00a0bca728a9b4c8a
6
+ metadata.gz: a7ca38fa168f8c58339b7615f9034daf01cff3b339340bb79320789c730fd2b64eda4c692b819df9ae3d30043cb68ab444f6ce9aa0712430fbfc658f712df098
7
+ data.tar.gz: 418fd46efe00b934115c8d4ae840f60c2e116cea6c526296fe4bd223f088146eaf94b36146e0fd3cbf65f3b88fd6802f317bbf07779db398dc74f210cc013f6e
@@ -0,0 +1,38 @@
1
+ name: Pipeline
2
+ on:
3
+ pull_request:
4
+ types: [assigned, opened, edited, synchronize, reopened]
5
+ push:
6
+ branches:
7
+ - 'master'
8
+
9
+ jobs:
10
+ # pre-spec
11
+ #
12
+ rubocop:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - uses: ruby/setup-ruby@v1
17
+ with:
18
+ ruby-version: '3.0'
19
+ bundler-cache: true
20
+ - name: Run rubocop
21
+ run: bundle exec rubocop --parallel --format progress
22
+
23
+ rspec:
24
+ runs-on: ubuntu-latest
25
+ needs: ['rubocop']
26
+ strategy:
27
+ matrix:
28
+ ruby-version: ['2.7', '3.0', head]
29
+
30
+ steps:
31
+ - uses: actions/checkout@v2
32
+ - name: Set up Ruby
33
+ uses: ruby/setup-ruby@v1
34
+ with:
35
+ ruby-version: ${{ matrix.ruby-version }}
36
+ bundler-cache: true
37
+ - name: Run rspec
38
+ run: bundle exec rspec
data/.rubocop.yml CHANGED
@@ -1,5 +1,9 @@
1
1
  inherit_from: .rubocop_todo.yml
2
2
 
3
+ inherit_mode:
4
+ merge:
5
+ - Exclude
6
+
3
7
  AllCops:
4
8
  Exclude:
5
9
  - '**/bin/**/*'
@@ -9,7 +13,9 @@ AllCops:
9
13
  - grape-starter.gemspec
10
14
  - template/spec/spec-helper.rb
11
15
  UseCache: true
12
- TargetRubyVersion: 2.7
16
+ NewCops: enable
17
+ TargetRubyVersion: 3.0
18
+ SuggestExtensions: false
13
19
 
14
20
  Layout/IndentationWidth:
15
21
  Exclude:
@@ -39,81 +45,3 @@ Style/AsciiComments:
39
45
 
40
46
  Style/Documentation:
41
47
  Enabled: false
42
-
43
- # introduced in 0.88
44
- Layout/EmptyLinesAroundAttributeAccessor:
45
- Enabled: true
46
- Layout/SpaceAroundMethodCallOperator:
47
- Enabled: true
48
- Lint/DeprecatedOpenSSLConstant:
49
- Enabled: true
50
- Lint/MixedRegexpCaptureTypes:
51
- Enabled: true
52
- Lint/RaiseException:
53
- Enabled: true
54
- Lint/StructNewOverride:
55
- Enabled: true
56
- Style/ExponentialNotation:
57
- Enabled: true
58
- Style/HashEachMethods:
59
- Enabled: true
60
- Style/HashTransformKeys:
61
- Enabled: true
62
- Style/HashTransformValues:
63
- Enabled: true
64
- Style/RedundantFetchBlock:
65
- Enabled: true
66
- Style/RedundantRegexpCharacterClass:
67
- Enabled: true
68
- Style/RedundantRegexpEscape:
69
- Enabled: true
70
- Style/SlicingWithRange:
71
- Enabled: true
72
-
73
- # introduced in 0.89
74
- Lint/BinaryOperatorWithIdenticalOperands:
75
- Enabled: true
76
- Lint/DuplicateElsifCondition:
77
- Enabled: true
78
- Lint/DuplicateRescueException:
79
- Enabled: true
80
- Lint/EmptyConditionalBody:
81
- Enabled: true
82
- Lint/FloatComparison:
83
- Enabled: true
84
- Lint/MissingSuper:
85
- Enabled: true
86
- Lint/OutOfRangeRegexpRef:
87
- Enabled: true
88
- Lint/SelfAssignment:
89
- Enabled: true
90
- Lint/TopLevelReturnWithArgument:
91
- Enabled: true
92
- Lint/UnreachableLoop:
93
- Enabled: true
94
- Style/AccessorGrouping:
95
- Enabled: false
96
- Style/ArrayCoercion:
97
- Enabled: true
98
- Style/BisectedAttrAccessor:
99
- Enabled: true
100
- Style/CaseLikeIf:
101
- Enabled: true
102
- Style/ExplicitBlockArgument:
103
- Enabled: true
104
- Style/GlobalStdStream:
105
- Enabled: true
106
- Style/HashAsLastArrayItem:
107
- Enabled: true
108
- Style/HashLikeCase:
109
- Enabled: true
110
- Style/OptionalBooleanParameter:
111
- Enabled: true
112
- Style/RedundantAssignment:
113
- Enabled: true
114
- Style/RedundantFileExtensionInRequire:
115
- Enabled: true
116
- Style/SingleArgumentDig:
117
- Enabled: true
118
- Style/StringConcatenation:
119
- Enabled: true
data/.travis.yml CHANGED
@@ -7,13 +7,18 @@ before_install:
7
7
 
8
8
  rvm:
9
9
  - ruby-head
10
- - 2.7.0
11
- - 2.6.5
12
- - 2.5.7
10
+ - 2.7.2
11
+ - 2.6.6
12
+ - 2.5.8
13
13
 
14
14
  jobs:
15
15
  fast_finish: true
16
+ include:
17
+ - rvm: truffleruby-head
18
+ env:
19
+ script: bundle exec rake spec
16
20
 
17
21
  allow_failures:
18
- - rvm:
19
- - ruby-head
22
+ - rvm: 3.0.0-preview1
23
+ - rvm: ruby-head
24
+ - rvm: truffleruby-head
data/CHANGELOG.md CHANGED
@@ -1,5 +1,45 @@
1
1
  ### NEXT
2
2
 
3
+ - your contributions
4
+
5
+ ### v1.4.2 / 2021-12-20
6
+
7
+ - Fixes shared mexamples for delete.
8
+
9
+ ### v1.4.2 / 2021-12-20
10
+
11
+ - Fixes active-support version to > 6 and < 7. [LeFnord](https://github.com/LeFnord)
12
+
13
+ ### v1.4.1 / 2021-12-17 -> yanked
14
+
15
+ - Upgrades active-support version. [LeFnord](https://github.com/LeFnord)
16
+
17
+ ### v1.4.0 / 2021-04-08
18
+
19
+ - Removes `standalone_migration` in favour of AR tasks. [LeFnord](https://github.com/LeFnord)
20
+ - Minor README improvements. [LeFnord](https://github.com/LeFnord)
21
+ - Adds GH actions for rspec and rubocop. [LeFnord](https://github.com/LeFnord)
22
+
23
+ ### v1.3.0 / 2020-09-15
24
+
25
+ - Fixes migration name. [LeFnord](https://github.com/LeFnord)
26
+ - Fixes rubocop new cops handling. [LeFnord](https://github.com/LeFnord)
27
+
28
+ ### v1.2.4–v1.2.6 / 2020-01-18–2020-08-13
29
+
30
+ - Prepapre releaase 1.2.6 [LeFnord](https://github.com/LeFnord)
31
+ - Updates used default rails deps versions. [LeFnord](https://github.com/LeFnord)
32
+ - Create dependabot.yml [peter scholz](https://github.com/LeFnord)
33
+ - Prepare release 1.2.5 [LeFnord](https://github.com/LeFnord)
34
+ - Minor improvements. [LeFnord](https://github.com/LeFnord)
35
+ - Lets run GH actions again. [LeFnord](https://github.com/LeFnord)
36
+ - Minor template improvements. [LeFnord](https://github.com/LeFnord)
37
+ - Changes ruby.yml to use 2.7 [LeFnord](https://github.com/LeFnord)
38
+ - Prepare release 1.2.4 [LeFnord](https://github.com/LeFnord)
39
+ - Respects froozen string stuff. [LeFnord](https://github.com/LeFnord)
40
+ - Updates Ruby and deps. (#23) [LeFnord](https://github.com/LeFnord)
41
+ - Create ruby.yml [LeFnord](https://github.com/LeFnord)
42
+
3
43
  - Fixes gems for sequel. [LeFnord](https://github.com/LeFnord)
4
44
  - Minor template improvements. [LeFnord](https://github.com/LeFnord)
5
45
 
data/Gemfile CHANGED
@@ -5,12 +5,12 @@ source 'http://rubygems.org'
5
5
  gemspec
6
6
 
7
7
  group :development, :test do
8
- gem 'grape', '~> 1.4'
9
- gem 'pry', platforms: [:mri]
10
- gem 'pry-byebug', platforms: [:mri]
8
+ gem 'grape', '~> 1.5'
9
+ gem 'pry', require: false
10
+ gem 'pry-byebug', require: false
11
11
  gem 'rack-cors', require: false
12
12
  gem 'rack-test', require: false
13
13
  gem 'rake', '~> 13.0'
14
- gem 'rspec', '~> 3.8'
15
- gem 'rspec-command'
14
+ gem 'rspec', '~> 3.10'
15
+ gem 'rspec-command', git: 'https://github.com/waltjones/rspec-command'
16
16
  end
data/README.md CHANGED
@@ -1,6 +1,5 @@
1
- [![Build Status](https://travis-ci.org/LeFnord/grape-starter.svg?branch=master)](https://travis-ci.org/LeFnord/grape-starter)
1
+ [![Pipeline](https://github.com/LeFnord/grape-starter/actions/workflows/pipeline.yml/badge.svg?branch=master)](https://github.com/LeFnord/grape-starter/actions/workflows/pipeline.yml)
2
2
  [![Gem Version](https://badge.fury.io/rb/grape-starter.svg)](https://badge.fury.io/rb/grape-starter)
3
- [![Inline docs](http://inch-ci.org/github/LeFnord/grape-starter.svg?branch=master)](http://inch-ci.org/github/LeFnord/grape-starter)
4
3
 
5
4
 
6
5
  # Grape Starter
@@ -83,7 +82,7 @@ To run it, go into awesome_api folder, start the server
83
82
  $ cd awesome_api
84
83
  $ ./script/server *port
85
84
  ```
86
- the API is now accessible under: [http://localhost:9292/api/v1/root](http://localhost:9292/api/v1/root)
85
+ the API is now accessible under: [http://localhost:9292/api/v1/root](http://localhost:9292/api/v1/root)
87
86
  the documentation of it under: [http://localhost:9292/doc](http://localhost:9292/doc).
88
87
 
89
88
  More could be found in [README](template/README.md).
@@ -22,10 +22,10 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ['lib']
24
24
 
25
- spec.required_ruby_version = '>= 2.5'
25
+ spec.required_ruby_version = '>= 2.6'
26
26
 
27
27
  spec.add_dependency 'gli', '~> 2.19'
28
- spec.add_dependency 'activesupport', '~> 6.0'
29
- spec.add_dependency 'rubocop', '~> 0.89'
28
+ spec.add_dependency 'activesupport', '>= 6', '< 7'
29
+ spec.add_dependency 'rubocop', '~> 1.12'
30
30
  spec.add_dependency 'awesome_print', '~> 1.8'
31
31
  end
@@ -59,7 +59,7 @@ module Starter
59
59
  load_orm
60
60
  return if @orm.nil?
61
61
 
62
- file_name = "#{Time.now.strftime('%Y%m%d%H%m%S')}_Create#{klass_name}.rb"
62
+ file_name = "#{Time.now.strftime('%Y%m%d%H%m%S')}_create_#{klass_name.downcase}.rb"
63
63
  migration_dest = File.join(Dir.pwd, 'db', 'migrate', file_name)
64
64
  FileFoo.write_file(migration_dest, migration(klass_name, resource))
65
65
  end
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'active_record'
4
+
3
5
  module Starter
4
6
  module Templates
5
7
  module ActiveRecord
@@ -27,7 +29,7 @@ module Starter
27
29
  FileUtils.mkdir(log_dir) unless Dir.exist?(log_dir)
28
30
  Logger.new(File.open(log_file, 'a'))
29
31
  else
30
- Logger.new(STDOUT)
32
+ Logger.new($stdout)
31
33
  end
32
34
 
33
35
  ActiveRecord::Base.logger = logger
@@ -60,18 +62,25 @@ module Starter
60
62
 
61
63
  def rakefile
62
64
  <<-FILE.strip_heredoc
63
-
64
65
  # ActiveRecord migration tasks
65
- require 'standalone_migrations'
66
- StandaloneMigrations::Tasks.load_tasks
66
+ require 'active_record'
67
+ include ActiveRecord::Tasks
68
+ config_dir = File.expand_path('../config', __FILE__)
69
+ config_content = File.join(config_dir, 'database.yml')
70
+ DatabaseTasks.env = ENV['RACK_ENV'] || 'development'
71
+ DatabaseTasks.database_configuration = YAML.load_file(config_content)
72
+ DatabaseTasks.db_dir = 'db'
73
+ DatabaseTasks.migrations_paths = File.join('db', 'migrate')
74
+
75
+ ActiveRecord::Base.configurations = DatabaseTasks.database_configuration
76
+ ActiveRecord::Base.establish_connection DatabaseTasks.env.to_sym
77
+
78
+ load 'active_record/railties/databases.rake'
67
79
  FILE
68
80
  end
69
81
 
70
82
  def gemfile
71
83
  <<-FILE.strip_heredoc
72
- # BE stuff
73
- gem 'standalone_migrations'
74
-
75
84
  # DB stuff
76
85
  gem 'activerecord', '>= 6'
77
86
  gem 'pg'
@@ -79,8 +88,9 @@ module Starter
79
88
  end
80
89
 
81
90
  def migration(klass_name, resource)
91
+ version = "#{::ActiveRecord::VERSION::MAJOR}.#{::ActiveRecord::VERSION::MINOR}"
82
92
  <<-FILE.strip_heredoc
83
- class Create#{klass_name} < ActiveRecord::Migration[6.0]
93
+ class Create#{klass_name} < ActiveRecord::Migration[#{version}]
84
94
  def change
85
95
  create_table :#{resource} do |t|
86
96
 
@@ -52,6 +52,7 @@ module Starter
52
52
  end"
53
53
  end
54
54
 
55
+ # rubocop:disable Style/CombinableLoops
55
56
  %w[get put patch delete].each do |verb|
56
57
  define_method(:"#{verb}_one") do
57
58
  "
@@ -78,6 +79,7 @@ module Starter
78
79
  end"
79
80
  end
80
81
  end
82
+ # rubocop:enable Style/CombinableLoops
81
83
 
82
84
  # request specs shared examples
83
85
  #
@@ -11,8 +11,7 @@ module Starter
11
11
  class GrapeTasks < ::Rake::TaskLib
12
12
  include Rack::Test::Methods
13
13
 
14
- attr_reader :resource
15
- attr_reader :api_class
14
+ attr_reader :resource, :api_class
16
15
 
17
16
  def initialize(api_class = nil)
18
17
  super()
@@ -45,7 +45,7 @@ RSpec.shared_examples 'DELETE one' do
45
45
  let(:route) { route_from_description }
46
46
 
47
47
  subject { delete route }
48
- specify { expect(subject.status).to eql 204 }
48
+ specify { expect(subject.status).to eql 200 }
49
49
  end
50
50
 
51
51
  # plural forms
@@ -75,5 +75,5 @@ RSpec.shared_examples 'DELETE specific' do |key: nil|
75
75
  let(:specific_route) { "#{route_from_description}/#{key}" }
76
76
 
77
77
  subject { delete specific_route }
78
- specify { expect(subject.status).to eql 204 }
78
+ specify { expect(subject.status).to eql 200 }
79
79
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Starter
4
- VERSION = '1.2.6'
4
+ VERSION = '1.4.3'
5
5
  end
@@ -5,7 +5,7 @@ AllCops:
5
5
  - Rakefile
6
6
  - Gemfile
7
7
  UseCache: true
8
- TargetRubyVersion: 2.7
8
+ NewCops: enable
9
9
 
10
10
  Layout/LineLength:
11
11
  Max: 120
@@ -24,81 +24,3 @@ Style/AsciiComments:
24
24
 
25
25
  Style/Documentation:
26
26
  Enabled: false
27
-
28
- # introduced in 0.88
29
- Layout/EmptyLinesAroundAttributeAccessor:
30
- Enabled: true
31
- Layout/SpaceAroundMethodCallOperator:
32
- Enabled: true
33
- Lint/DeprecatedOpenSSLConstant:
34
- Enabled: true
35
- Lint/MixedRegexpCaptureTypes:
36
- Enabled: true
37
- Lint/RaiseException:
38
- Enabled: true
39
- Lint/StructNewOverride:
40
- Enabled: true
41
- Style/ExponentialNotation:
42
- Enabled: true
43
- Style/HashEachMethods:
44
- Enabled: true
45
- Style/HashTransformKeys:
46
- Enabled: true
47
- Style/HashTransformValues:
48
- Enabled: true
49
- Style/RedundantFetchBlock:
50
- Enabled: true
51
- Style/RedundantRegexpCharacterClass:
52
- Enabled: true
53
- Style/RedundantRegexpEscape:
54
- Enabled: true
55
- Style/SlicingWithRange:
56
- Enabled: true
57
-
58
- # introduced in 0.89
59
- Lint/BinaryOperatorWithIdenticalOperands:
60
- Enabled: true
61
- Lint/DuplicateElsifCondition:
62
- Enabled: true
63
- Lint/DuplicateRescueException:
64
- Enabled: true
65
- Lint/EmptyConditionalBody:
66
- Enabled: true
67
- Lint/FloatComparison:
68
- Enabled: true
69
- Lint/MissingSuper:
70
- Enabled: true
71
- Lint/OutOfRangeRegexpRef:
72
- Enabled: true
73
- Lint/SelfAssignment:
74
- Enabled: true
75
- Lint/TopLevelReturnWithArgument:
76
- Enabled: true
77
- Lint/UnreachableLoop:
78
- Enabled: true
79
- Style/AccessorGrouping:
80
- Enabled: false
81
- Style/ArrayCoercion:
82
- Enabled: true
83
- Style/BisectedAttrAccessor:
84
- Enabled: true
85
- Style/CaseLikeIf:
86
- Enabled: true
87
- Style/ExplicitBlockArgument:
88
- Enabled: true
89
- Style/GlobalStdStream:
90
- Enabled: true
91
- Style/HashAsLastArrayItem:
92
- Enabled: true
93
- Style/HashLikeCase:
94
- Enabled: true
95
- Style/OptionalBooleanParameter:
96
- Enabled: true
97
- Style/RedundantAssignment:
98
- Enabled: true
99
- Style/RedundantFileExtensionInRequire:
100
- Enabled: true
101
- Style/SingleArgumentDig:
102
- Enabled: true
103
- Style/StringConcatenation:
104
- Enabled: true
data/template/Dockerfile CHANGED
@@ -1,19 +1,14 @@
1
- FROM ruby:2.5
1
+ FROM ruby:3
2
2
 
3
3
  # stes some Environment variables
4
- ENV NODE_ENV='production'
5
- ENV RACK_ENV='production'
6
-
7
-
8
- # throw errors if Gemfile has been modified since Gemfile.lock
9
- RUN bundle config --global frozen 1
4
+ ENV NODE_ENV='development'
5
+ ENV RACK_ENV='development'
10
6
 
11
7
  ADD . /dummy
12
8
  WORKDIR /dummy
13
9
 
14
10
  COPY Gemfile Gemfile.lock ./
15
-
16
- RUN bundle install
11
+ RUN bundle install --path vendor/bundle
17
12
 
18
13
  COPY . .
19
14
 
data/template/Gemfile CHANGED
@@ -20,5 +20,5 @@ group :development, :test do
20
20
  gem 'rack-test'
21
21
  gem 'rake'
22
22
  gem 'rspec'
23
- gem 'rubocop', '~> 0.88'
23
+ gem 'rubocop'
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-starter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - LeFnord
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-12 00:00:00.000000000 Z
11
+ date: 2021-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli
@@ -28,30 +28,36 @@ dependencies:
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '6'
34
+ - - "<"
32
35
  - !ruby/object:Gem::Version
33
- version: '6.0'
36
+ version: '7'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '6'
44
+ - - "<"
39
45
  - !ruby/object:Gem::Version
40
- version: '6.0'
46
+ version: '7'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: rubocop
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
51
  - - "~>"
46
52
  - !ruby/object:Gem::Version
47
- version: '0.89'
53
+ version: '1.12'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
58
  - - "~>"
53
59
  - !ruby/object:Gem::Version
54
- version: '0.89'
60
+ version: '1.12'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: awesome_print
57
63
  requirement: !ruby/object:Gem::Requirement
@@ -75,7 +81,7 @@ extensions: []
75
81
  extra_rdoc_files: []
76
82
  files:
77
83
  - ".github/dependabot.yml"
78
- - ".github/workflows/ruby.yml"
84
+ - ".github/workflows/pipeline.yml"
79
85
  - ".gitignore"
80
86
  - ".inch.yml"
81
87
  - ".rspec"
@@ -145,14 +151,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
151
  requirements:
146
152
  - - ">="
147
153
  - !ruby/object:Gem::Version
148
- version: '2.5'
154
+ version: '2.6'
149
155
  required_rubygems_version: !ruby/object:Gem::Requirement
150
156
  requirements:
151
157
  - - ">="
152
158
  - !ruby/object:Gem::Version
153
159
  version: '0'
154
160
  requirements: []
155
- rubygems_version: 3.1.4
161
+ rubygems_version: 3.2.33
156
162
  signing_key:
157
163
  specification_version: 4
158
164
  summary: Creates a Grape Rack skeleton
@@ -1,21 +0,0 @@
1
- name: Ruby
2
-
3
- on: [push]
4
-
5
- jobs:
6
- build:
7
-
8
- runs-on: ubuntu-latest
9
-
10
- steps:
11
- - uses: actions/checkout@v1
12
- - name: Set up Ruby 2.7
13
- uses: actions/setup-ruby@v1
14
- with:
15
- ruby-version: 2.7.1
16
- - name: Build and test with Rake
17
- run: |
18
- gem install bundler
19
- bundle install --jobs 4 --retry 3
20
- bundle exec rspec
21
- bundle exec rubocop