grape-starter 1.3.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/pipeline.yml +38 -0
- data/.rubocop.yml +6 -79
- data/.travis.yml +10 -5
- data/CHANGELOG.md +26 -2
- data/Gemfile +5 -5
- data/README.md +2 -3
- data/grape-starter.gemspec +5 -5
- data/lib/starter/builder/file_foo.rb +1 -1
- data/lib/starter/builder/templates/activerecord.rb +18 -8
- data/lib/starter/builder/templates/files.rb +0 -2
- data/lib/starter/builder.rb +0 -2
- data/lib/starter/config.rb +1 -1
- data/lib/starter/rake/grape_tasks.rb +1 -2
- data/lib/starter/rspec/request_specs.rb +2 -2
- data/lib/starter/version.rb +1 -1
- data/lib/starter.rb +3 -0
- data/template/.rubocop.yml +0 -79
- data/template/Dockerfile +4 -8
- data/template/Gemfile +1 -1
- metadata +21 -15
- data/.github/workflows/ruby.yml +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65942404f99d8bea76240859799e24a8c45cf6496745f798dc16fead61eed13d
|
4
|
+
data.tar.gz: 329605b12e4367a471de428cbaaaff6ad02cb9413c55067e39d9215a35442447
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf7f58b1429be6f644ba211551d278f1f8359119ea75612cd6961edd374db022697b7fc7335d2d8348681dc483a6e603fb8050154d674303cf89d9e1e5c445d7
|
7
|
+
data.tar.gz: 4a0fba7c41ec9c22d043af268aa981d95c2387e976bf16b6b939e641427b1ac358c666422638f4028047d0e6c515aac5475e1d278490ff065561d74fefefc588
|
@@ -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.1'
|
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', '3.1', 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/**/*'
|
@@ -10,7 +14,8 @@ AllCops:
|
|
10
14
|
- template/spec/spec-helper.rb
|
11
15
|
UseCache: true
|
12
16
|
NewCops: enable
|
13
|
-
TargetRubyVersion:
|
17
|
+
TargetRubyVersion: 3.0
|
18
|
+
SuggestExtensions: false
|
14
19
|
|
15
20
|
Layout/IndentationWidth:
|
16
21
|
Exclude:
|
@@ -40,81 +45,3 @@ Style/AsciiComments:
|
|
40
45
|
|
41
46
|
Style/Documentation:
|
42
47
|
Enabled: false
|
43
|
-
|
44
|
-
# introduced in 0.88
|
45
|
-
Layout/EmptyLinesAroundAttributeAccessor:
|
46
|
-
Enabled: true
|
47
|
-
Layout/SpaceAroundMethodCallOperator:
|
48
|
-
Enabled: true
|
49
|
-
Lint/DeprecatedOpenSSLConstant:
|
50
|
-
Enabled: true
|
51
|
-
Lint/MixedRegexpCaptureTypes:
|
52
|
-
Enabled: true
|
53
|
-
Lint/RaiseException:
|
54
|
-
Enabled: true
|
55
|
-
Lint/StructNewOverride:
|
56
|
-
Enabled: true
|
57
|
-
Style/ExponentialNotation:
|
58
|
-
Enabled: true
|
59
|
-
Style/HashEachMethods:
|
60
|
-
Enabled: true
|
61
|
-
Style/HashTransformKeys:
|
62
|
-
Enabled: true
|
63
|
-
Style/HashTransformValues:
|
64
|
-
Enabled: true
|
65
|
-
Style/RedundantFetchBlock:
|
66
|
-
Enabled: true
|
67
|
-
Style/RedundantRegexpCharacterClass:
|
68
|
-
Enabled: true
|
69
|
-
Style/RedundantRegexpEscape:
|
70
|
-
Enabled: true
|
71
|
-
Style/SlicingWithRange:
|
72
|
-
Enabled: true
|
73
|
-
|
74
|
-
# introduced in 0.89
|
75
|
-
Lint/BinaryOperatorWithIdenticalOperands:
|
76
|
-
Enabled: true
|
77
|
-
Lint/DuplicateElsifCondition:
|
78
|
-
Enabled: true
|
79
|
-
Lint/DuplicateRescueException:
|
80
|
-
Enabled: true
|
81
|
-
Lint/EmptyConditionalBody:
|
82
|
-
Enabled: true
|
83
|
-
Lint/FloatComparison:
|
84
|
-
Enabled: true
|
85
|
-
Lint/MissingSuper:
|
86
|
-
Enabled: true
|
87
|
-
Lint/OutOfRangeRegexpRef:
|
88
|
-
Enabled: true
|
89
|
-
Lint/SelfAssignment:
|
90
|
-
Enabled: true
|
91
|
-
Lint/TopLevelReturnWithArgument:
|
92
|
-
Enabled: true
|
93
|
-
Lint/UnreachableLoop:
|
94
|
-
Enabled: true
|
95
|
-
Style/AccessorGrouping:
|
96
|
-
Enabled: false
|
97
|
-
Style/ArrayCoercion:
|
98
|
-
Enabled: true
|
99
|
-
Style/BisectedAttrAccessor:
|
100
|
-
Enabled: true
|
101
|
-
Style/CaseLikeIf:
|
102
|
-
Enabled: true
|
103
|
-
Style/ExplicitBlockArgument:
|
104
|
-
Enabled: true
|
105
|
-
Style/GlobalStdStream:
|
106
|
-
Enabled: true
|
107
|
-
Style/HashAsLastArrayItem:
|
108
|
-
Enabled: true
|
109
|
-
Style/HashLikeCase:
|
110
|
-
Enabled: true
|
111
|
-
Style/OptionalBooleanParameter:
|
112
|
-
Enabled: true
|
113
|
-
Style/RedundantAssignment:
|
114
|
-
Enabled: true
|
115
|
-
Style/RedundantFileExtensionInRequire:
|
116
|
-
Enabled: true
|
117
|
-
Style/SingleArgumentDig:
|
118
|
-
Enabled: true
|
119
|
-
Style/StringConcatenation:
|
120
|
-
Enabled: true
|
data/.travis.yml
CHANGED
@@ -7,13 +7,18 @@ before_install:
|
|
7
7
|
|
8
8
|
rvm:
|
9
9
|
- ruby-head
|
10
|
-
- 2.7.
|
11
|
-
- 2.6.
|
12
|
-
- 2.5.
|
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
|
-
|
22
|
+
- rvm: 3.0.0-preview1
|
23
|
+
- rvm: ruby-head
|
24
|
+
- rvm: truffleruby-head
|
data/CHANGELOG.md
CHANGED
@@ -2,12 +2,36 @@
|
|
2
2
|
|
3
3
|
- your contributions
|
4
4
|
|
5
|
-
### v1.
|
5
|
+
### v1.5.0 / 2021-12-28
|
6
|
+
|
7
|
+
- Sets minimum ruby version to 2.7 [LeFnord](https://github.com/LeFnord)
|
8
|
+
- Fixes: uninitialized constant ActiveSupport::XmlMini::IsolatedExecutionState. [LeFnord](https://github.com/LeFnord)
|
9
|
+
- Sets path via config in Dockerfile. [LeFnord](https://github.com/LeFnord)
|
10
|
+
|
11
|
+
### v1.4.3 / 2021-12-20
|
12
|
+
|
13
|
+
- Fixes shared mexamples for delete. [LeFnord](https://github.com/LeFnord)
|
14
|
+
|
15
|
+
### v1.4.2 / 2021-12-20
|
16
|
+
|
17
|
+
- Fixes active-support version to > 6 and < 7. [LeFnord](https://github.com/LeFnord)
|
18
|
+
|
19
|
+
### v1.4.1 / 2021-12-17 -> yanked
|
20
|
+
|
21
|
+
- Upgrades active-support version. [LeFnord](https://github.com/LeFnord)
|
22
|
+
|
23
|
+
### v1.4.0 / 2021-04-08
|
24
|
+
|
25
|
+
- Removes `standalone_migration` in favour of AR tasks. [LeFnord](https://github.com/LeFnord)
|
26
|
+
- Minor README improvements. [LeFnord](https://github.com/LeFnord)
|
27
|
+
- Adds GH actions for rspec and rubocop. [LeFnord](https://github.com/LeFnord)
|
28
|
+
|
29
|
+
### v1.3.0 / 2020-09-15
|
6
30
|
|
7
31
|
- Fixes migration name. [LeFnord](https://github.com/LeFnord)
|
8
32
|
- Fixes rubocop new cops handling. [LeFnord](https://github.com/LeFnord)
|
9
33
|
|
10
|
-
### v1.2.4
|
34
|
+
### v1.2.4–v1.2.6 / 2020-01-18–2020-08-13
|
11
35
|
|
12
36
|
- Prepapre releaase 1.2.6 [LeFnord](https://github.com/LeFnord)
|
13
37
|
- Updates used default rails deps versions. [LeFnord](https://github.com/LeFnord)
|
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.
|
9
|
-
gem 'pry',
|
10
|
-
gem 'pry-byebug',
|
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.
|
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
|
-
[](https://github.com/LeFnord/grape-starter/actions/workflows/pipeline.yml)
|
2
2
|
[](https://badge.fury.io/rb/grape-starter)
|
3
|
-
[](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).
|
data/grape-starter.gemspec
CHANGED
@@ -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.
|
25
|
+
spec.required_ruby_version = '>= 2.7'
|
26
26
|
|
27
|
-
spec.add_dependency 'gli', '~> 2.
|
28
|
-
spec.add_dependency 'activesupport', '
|
29
|
-
spec.add_dependency 'rubocop', '~>
|
30
|
-
spec.add_dependency 'awesome_print', '~> 1.
|
27
|
+
spec.add_dependency 'gli', '~> 2.20'
|
28
|
+
spec.add_dependency 'activesupport', '>= 6', '< 8'
|
29
|
+
spec.add_dependency 'rubocop', '~> 1.24'
|
30
|
+
spec.add_dependency 'awesome_print', '~> 1.9'
|
31
31
|
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(
|
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 '
|
66
|
-
|
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[
|
93
|
+
class Create#{klass_name} < ActiveRecord::Migration[#{version}]
|
84
94
|
def change
|
85
95
|
create_table :#{resource} do |t|
|
86
96
|
|
data/lib/starter/builder.rb
CHANGED
data/lib/starter/config.rb
CHANGED
@@ -18,7 +18,7 @@ module Starter
|
|
18
18
|
|
19
19
|
existent = File.exist?(config_file) ? YAML.load_file(config_file) : {}
|
20
20
|
content = existent.merge(content)
|
21
|
-
File.
|
21
|
+
File.write(config_file, YAML.dump(content))
|
22
22
|
end
|
23
23
|
|
24
24
|
def config_file
|
@@ -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
|
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
|
78
|
+
specify { expect(subject.status).to eql 200 }
|
79
79
|
end
|
data/lib/starter/version.rb
CHANGED
data/lib/starter.rb
CHANGED
data/template/.rubocop.yml
CHANGED
@@ -6,7 +6,6 @@ AllCops:
|
|
6
6
|
- Gemfile
|
7
7
|
UseCache: true
|
8
8
|
NewCops: enable
|
9
|
-
TargetRubyVersion: 2.7
|
10
9
|
|
11
10
|
Layout/LineLength:
|
12
11
|
Max: 120
|
@@ -25,81 +24,3 @@ Style/AsciiComments:
|
|
25
24
|
|
26
25
|
Style/Documentation:
|
27
26
|
Enabled: false
|
28
|
-
|
29
|
-
# introduced in 0.88
|
30
|
-
Layout/EmptyLinesAroundAttributeAccessor:
|
31
|
-
Enabled: true
|
32
|
-
Layout/SpaceAroundMethodCallOperator:
|
33
|
-
Enabled: true
|
34
|
-
Lint/DeprecatedOpenSSLConstant:
|
35
|
-
Enabled: true
|
36
|
-
Lint/MixedRegexpCaptureTypes:
|
37
|
-
Enabled: true
|
38
|
-
Lint/RaiseException:
|
39
|
-
Enabled: true
|
40
|
-
Lint/StructNewOverride:
|
41
|
-
Enabled: true
|
42
|
-
Style/ExponentialNotation:
|
43
|
-
Enabled: true
|
44
|
-
Style/HashEachMethods:
|
45
|
-
Enabled: true
|
46
|
-
Style/HashTransformKeys:
|
47
|
-
Enabled: true
|
48
|
-
Style/HashTransformValues:
|
49
|
-
Enabled: true
|
50
|
-
Style/RedundantFetchBlock:
|
51
|
-
Enabled: true
|
52
|
-
Style/RedundantRegexpCharacterClass:
|
53
|
-
Enabled: true
|
54
|
-
Style/RedundantRegexpEscape:
|
55
|
-
Enabled: true
|
56
|
-
Style/SlicingWithRange:
|
57
|
-
Enabled: true
|
58
|
-
|
59
|
-
# introduced in 0.89
|
60
|
-
Lint/BinaryOperatorWithIdenticalOperands:
|
61
|
-
Enabled: true
|
62
|
-
Lint/DuplicateElsifCondition:
|
63
|
-
Enabled: true
|
64
|
-
Lint/DuplicateRescueException:
|
65
|
-
Enabled: true
|
66
|
-
Lint/EmptyConditionalBody:
|
67
|
-
Enabled: true
|
68
|
-
Lint/FloatComparison:
|
69
|
-
Enabled: true
|
70
|
-
Lint/MissingSuper:
|
71
|
-
Enabled: true
|
72
|
-
Lint/OutOfRangeRegexpRef:
|
73
|
-
Enabled: true
|
74
|
-
Lint/SelfAssignment:
|
75
|
-
Enabled: true
|
76
|
-
Lint/TopLevelReturnWithArgument:
|
77
|
-
Enabled: true
|
78
|
-
Lint/UnreachableLoop:
|
79
|
-
Enabled: true
|
80
|
-
Style/AccessorGrouping:
|
81
|
-
Enabled: false
|
82
|
-
Style/ArrayCoercion:
|
83
|
-
Enabled: true
|
84
|
-
Style/BisectedAttrAccessor:
|
85
|
-
Enabled: true
|
86
|
-
Style/CaseLikeIf:
|
87
|
-
Enabled: true
|
88
|
-
Style/ExplicitBlockArgument:
|
89
|
-
Enabled: true
|
90
|
-
Style/GlobalStdStream:
|
91
|
-
Enabled: true
|
92
|
-
Style/HashAsLastArrayItem:
|
93
|
-
Enabled: true
|
94
|
-
Style/HashLikeCase:
|
95
|
-
Enabled: true
|
96
|
-
Style/OptionalBooleanParameter:
|
97
|
-
Enabled: true
|
98
|
-
Style/RedundantAssignment:
|
99
|
-
Enabled: true
|
100
|
-
Style/RedundantFileExtensionInRequire:
|
101
|
-
Enabled: true
|
102
|
-
Style/SingleArgumentDig:
|
103
|
-
Enabled: true
|
104
|
-
Style/StringConcatenation:
|
105
|
-
Enabled: true
|
data/template/Dockerfile
CHANGED
@@ -1,18 +1,14 @@
|
|
1
|
-
FROM ruby:
|
1
|
+
FROM ruby:3
|
2
2
|
|
3
3
|
# stes some Environment variables
|
4
|
-
ENV NODE_ENV='
|
5
|
-
ENV RACK_ENV='
|
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
|
-
|
11
|
+
RUN bundle config set --local path 'vendor/bundle'
|
16
12
|
RUN bundle install
|
17
13
|
|
18
14
|
COPY . .
|
data/template/Gemfile
CHANGED
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.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LeFnord
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|
@@ -16,56 +16,62 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.20'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2.
|
26
|
+
version: '2.20'
|
27
27
|
- !ruby/object:Gem::Dependency
|
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: '
|
36
|
+
version: '8'
|
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: '
|
46
|
+
version: '8'
|
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: '
|
53
|
+
version: '1.24'
|
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: '
|
60
|
+
version: '1.24'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: awesome_print
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
65
|
- - "~>"
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version: '1.
|
67
|
+
version: '1.9'
|
62
68
|
type: :runtime
|
63
69
|
prerelease: false
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
72
|
- - "~>"
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version: '1.
|
74
|
+
version: '1.9'
|
69
75
|
description: CLI to create a API skeleton based on Grape and Rack
|
70
76
|
email:
|
71
77
|
- pscholz.le@gmail.com
|
@@ -75,7 +81,7 @@ extensions: []
|
|
75
81
|
extra_rdoc_files: []
|
76
82
|
files:
|
77
83
|
- ".github/dependabot.yml"
|
78
|
-
- ".github/workflows/
|
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.
|
154
|
+
version: '2.7'
|
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.
|
161
|
+
rubygems_version: 3.2.33
|
156
162
|
signing_key:
|
157
163
|
specification_version: 4
|
158
164
|
summary: Creates a Grape Rack skeleton
|
data/.github/workflows/ruby.yml
DELETED
@@ -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
|