grape-starter 1.4.0 → 1.4.2
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 +4 -0
- data/CHANGELOG.md +8 -0
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/grape-starter.gemspec +1 -1
- data/lib/starter/rspec/request_specs.rb +2 -2
- data/lib/starter/version.rb +1 -1
- data/template/Dockerfile +4 -9
- metadata +14 -9
- 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: 491977e15c7e7804abb752a2e11669d3c252ff96b75faf29cd1b1bde4c9b6b84
|
4
|
+
data.tar.gz: 501f7c1daf72bec375e4f73d157a4a17aaf915b98645d6780797bf15389b8b6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '028fd1e821d918f0caf633c1708b71692e20fa28fe6eb44cb232e185580d789fc8227832a59305ae2e9f4bbc68e89e4989872630032306817bc8289b048b5d79'
|
7
|
+
data.tar.gz: a3803b400bd1ad36461d6b374bd179927553e3554677c466f2beaca28172e1db7bd3f82f360b567742c0757cd0db1eaf16063156ae4d0d3ed1a65105950fdcbc
|
@@ -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
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
- your contributions
|
4
4
|
|
5
|
+
### v1.4.2 / 2021-12-20
|
6
|
+
|
7
|
+
- Fixes active-support version to > 6 and < 7. [LeFnord](https://github.com/LeFnord)
|
8
|
+
|
9
|
+
### v1.4.1 / 2021-12-17 -> yanked
|
10
|
+
|
11
|
+
- Upgrades active-support version. [LeFnord](https://github.com/LeFnord)
|
12
|
+
|
5
13
|
### v1.4.0 / 2021-04-08
|
6
14
|
|
7
15
|
- 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
|
-
](https://github.com/LeFnord/grape-starter/actions/workflows/pipeline.yml)
|
2
2
|
[](https://badge.fury.io/rb/grape-starter)
|
3
3
|
|
4
4
|
|
data/grape-starter.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.required_ruby_version = '>= 2.6'
|
26
26
|
|
27
27
|
spec.add_dependency 'gli', '~> 2.19'
|
28
|
-
spec.add_dependency 'activesupport', '
|
28
|
+
spec.add_dependency 'activesupport', '>= 6', '< 7'
|
29
29
|
spec.add_dependency 'rubocop', '~> 1.12'
|
30
30
|
spec.add_dependency 'awesome_print', '~> 1.8'
|
31
31
|
end
|
@@ -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
|
78
|
+
specify { expect(subject).to to_have_status 200 }
|
79
79
|
end
|
data/lib/starter/version.rb
CHANGED
data/template/Dockerfile
CHANGED
@@ -1,19 +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
|
-
|
16
|
-
RUN bundle install
|
11
|
+
RUN bundle install --path vendor/bundle
|
17
12
|
|
18
13
|
COPY . .
|
19
14
|
|
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.
|
4
|
+
version: 1.4.2
|
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-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|
@@ -28,16 +28,22 @@ 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: '
|
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: '
|
46
|
+
version: '7'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: rubocop
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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"
|
@@ -153,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
158
|
- !ruby/object:Gem::Version
|
154
159
|
version: '0'
|
155
160
|
requirements: []
|
156
|
-
rubygems_version: 3.2.
|
161
|
+
rubygems_version: 3.2.33
|
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
|