grape-starter 1.4.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/pipeline.yml +38 -0
- data/.rubocop.yml +4 -0
- data/CHANGELOG.md +22 -0
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/grape-starter.gemspec +5 -5
- data/lib/starter/builder/file_foo.rb +1 -1
- 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/rspec/request_specs.rb +2 -2
- data/lib/starter/version.rb +1 -1
- data/lib/starter.rb +3 -0
- data/template/.rubocop.yml +1 -0
- data/template/Dockerfile +4 -8
- data/template/config/boot.rb +1 -0
- metadata +21 -16
- data/.github/workflows/rubocop.yml +0 -20
- data/.github/workflows/ruby.yml +0 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bf6bb14f7920a1c45c3bbd5737167d239f752b31d2977416647ac96f9ef7207
|
4
|
+
data.tar.gz: 6d9a2bb32927b585a1f32bae838f79edadb634420492f5c5b149c50754dc4c33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 439b3e8c90b6e79c3b61da51b27ff4158e5958271035da0aa8181a0c8664cda39f4140fd32708cc013893932b5e795c42d3e9a8101776594fde0258c0986c610
|
7
|
+
data.tar.gz: ec9da624c7c41f6c0af7660650ea53da8b3da609e7354e878e07dbfd80e1dca0aa4a3092a6243ef5786547d1d3f4e10efb49fc9e5e256dc8dbe968a902102436
|
@@ -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
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,28 @@
|
|
2
2
|
|
3
3
|
- your contributions
|
4
4
|
|
5
|
+
### v1.5.1 / 2021-12-28
|
6
|
+
|
7
|
+
- Fixes ActiveSupport in template. [LeFnord](https://github.com/LeFnord)
|
8
|
+
|
9
|
+
### v1.5.0 / 2021-12-28
|
10
|
+
|
11
|
+
- Sets minimum ruby version to 2.7 [LeFnord](https://github.com/LeFnord)
|
12
|
+
- Fixes: uninitialized constant ActiveSupport::XmlMini::IsolatedExecutionState. [LeFnord](https://github.com/LeFnord)
|
13
|
+
- Sets path via config in Dockerfile. [LeFnord](https://github.com/LeFnord)
|
14
|
+
|
15
|
+
### v1.4.3 / 2021-12-20
|
16
|
+
|
17
|
+
- Fixes shared mexamples for delete. [LeFnord](https://github.com/LeFnord)
|
18
|
+
|
19
|
+
### v1.4.2 / 2021-12-20
|
20
|
+
|
21
|
+
- Fixes active-support version to > 6 and < 7. [LeFnord](https://github.com/LeFnord)
|
22
|
+
|
23
|
+
### v1.4.1 / 2021-12-17 -> yanked
|
24
|
+
|
25
|
+
- Upgrades active-support version. [LeFnord](https://github.com/LeFnord)
|
26
|
+
|
5
27
|
### v1.4.0 / 2021-04-08
|
6
28
|
|
7
29
|
- Removes `standalone_migration` in favour of AR tasks. [LeFnord](https://github.com/LeFnord)
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
![
|
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
3
|
|
4
4
|
|
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', '~> 1.
|
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
|
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
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/config/boot.rb
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LeFnord
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
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: '1.
|
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: '1.
|
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,8 +81,7 @@ extensions: []
|
|
75
81
|
extra_rdoc_files: []
|
76
82
|
files:
|
77
83
|
- ".github/dependabot.yml"
|
78
|
-
- ".github/workflows/
|
79
|
-
- ".github/workflows/ruby.yml"
|
84
|
+
- ".github/workflows/pipeline.yml"
|
80
85
|
- ".gitignore"
|
81
86
|
- ".inch.yml"
|
82
87
|
- ".rspec"
|
@@ -146,14 +151,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
146
151
|
requirements:
|
147
152
|
- - ">="
|
148
153
|
- !ruby/object:Gem::Version
|
149
|
-
version: '2.
|
154
|
+
version: '2.7'
|
150
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
156
|
requirements:
|
152
157
|
- - ">="
|
153
158
|
- !ruby/object:Gem::Version
|
154
159
|
version: '0'
|
155
160
|
requirements: []
|
156
|
-
rubygems_version: 3.
|
161
|
+
rubygems_version: 3.3.3
|
157
162
|
signing_key:
|
158
163
|
specification_version: 4
|
159
164
|
summary: Creates a Grape Rack skeleton
|
@@ -1,20 +0,0 @@
|
|
1
|
-
name: Rubocop
|
2
|
-
|
3
|
-
on: push
|
4
|
-
|
5
|
-
jobs:
|
6
|
-
rubocop:
|
7
|
-
name: Rubocop
|
8
|
-
runs-on: ubuntu-latest
|
9
|
-
steps:
|
10
|
-
- uses: actions/checkout@v2
|
11
|
-
- uses: actions/setup-ruby@v1
|
12
|
-
with:
|
13
|
-
ruby-version: '3.0'
|
14
|
-
- run: gem install rubocop --no-doc
|
15
|
-
- run: rubocop --format progress --format json --out rubocop.json
|
16
|
-
id: rubocop
|
17
|
-
- uses: duderman/rubocop-annotate-action@v0.1.0
|
18
|
-
with:
|
19
|
-
path: rubocop.json
|
20
|
-
if: ${{ failure() }}
|
data/.github/workflows/ruby.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
name: Ruby
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches:
|
6
|
-
- '*'
|
7
|
-
pull_request:
|
8
|
-
branches:
|
9
|
-
- '*'
|
10
|
-
|
11
|
-
jobs:
|
12
|
-
spec:
|
13
|
-
runs-on: ubuntu-latest
|
14
|
-
strategy:
|
15
|
-
matrix:
|
16
|
-
ruby-version: ['2.6', '2.7', '3.0', head]
|
17
|
-
|
18
|
-
steps:
|
19
|
-
- uses: actions/checkout@v2
|
20
|
-
- name: Set up Ruby
|
21
|
-
uses: ruby/setup-ruby@v1
|
22
|
-
with:
|
23
|
-
ruby-version: ${{ matrix.ruby-version }}
|
24
|
-
bundler-cache: true
|
25
|
-
- name: Run rspec
|
26
|
-
run: bundle exec rspec
|