grape-starter 1.4.0 → 1.4.2

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: 65275de01798dbfd5b58469ffa92d549d78ad71423fd68e59be09e00d4d90348
4
- data.tar.gz: 4ceeba3b548341b2f570951e58aa84e86345a64a916ae75f9b5c6a6681bff3d1
3
+ metadata.gz: 491977e15c7e7804abb752a2e11669d3c252ff96b75faf29cd1b1bde4c9b6b84
4
+ data.tar.gz: 501f7c1daf72bec375e4f73d157a4a17aaf915b98645d6780797bf15389b8b6b
5
5
  SHA512:
6
- metadata.gz: 2ce822016665ae28ff18fe3faa533195ad4018f66ff0728d85ebbcebecb870f09bcb4fdf0989447bf90134ef74f8f38a3c6b866e64d45883b1abd2f767b4a2a6
7
- data.tar.gz: fa49ce2bc02ceb2a915ea8af26d73869b8ff4a918a50f29252bee3bf1914098c80d29d7379380b4d21844210123c8b681b1ff0587596dc1ab4bdacde6d6f1966
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
@@ -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/**/*'
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
@@ -12,5 +12,5 @@ group :development, :test do
12
12
  gem 'rack-test', require: false
13
13
  gem 'rake', '~> 13.0'
14
14
  gem 'rspec', '~> 3.10'
15
- gem 'rspec-command'
15
+ gem 'rspec-command', git: 'https://github.com/waltjones/rspec-command'
16
16
  end
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ![Ruby](https://github.com/LeFnord/grape-starter/workflows/Ruby/badge.svg)
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
 
@@ -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', '~> 6.0'
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 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).to to_have_status 200 }
79
79
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Starter
4
- VERSION = '1.4.0'
4
+ VERSION = '1.4.2'
5
5
  end
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
 
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.0
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-04-08 00:00:00.000000000 Z
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: '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
@@ -75,8 +81,7 @@ extensions: []
75
81
  extra_rdoc_files: []
76
82
  files:
77
83
  - ".github/dependabot.yml"
78
- - ".github/workflows/rubocop.yml"
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.15
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() }}
@@ -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