grape-starter 1.5.1 → 1.5.2
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 +4 -4
- data/.rubocop.yml +4 -1
- data/lib/starter/version.rb +1 -1
- data/template/Rakefile +2 -2
- data/template/config/boot.rb +1 -1
- metadata +3 -4
- data/.travis.yml +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34ae705b1f75703766962ff10fa9a36b38cfb7c9b1673d55a37c192c638006e6
|
4
|
+
data.tar.gz: 8e3217a9aef0ad3aefeb45dd1441fa8b4888ce5598af2666931afa12eaf7ef4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5aa8965c7fda25e74a9900be97818e142ce3d4983607a7436ed3bca1141ec7a6042c746668125f15b1a421a37e7bfdc5bef8fcbe107fccd14a93e75cf59653e
|
7
|
+
data.tar.gz: a7474690efa21fd3236e1686a69f211e63d706cc88e8f07a09025b1c19d65942ba7d4e0c239b4c26e0a3f40541af0bc02ac683618c568c6e29969aea56de6710
|
@@ -12,10 +12,10 @@ jobs:
|
|
12
12
|
rubocop:
|
13
13
|
runs-on: ubuntu-latest
|
14
14
|
steps:
|
15
|
-
- uses: actions/checkout@
|
15
|
+
- uses: actions/checkout@v3
|
16
16
|
- uses: ruby/setup-ruby@v1
|
17
17
|
with:
|
18
|
-
ruby-version: '3.
|
18
|
+
ruby-version: '3.2'
|
19
19
|
bundler-cache: true
|
20
20
|
- name: Run rubocop
|
21
21
|
run: bundle exec rubocop --parallel --format progress
|
@@ -25,10 +25,10 @@ jobs:
|
|
25
25
|
needs: ['rubocop']
|
26
26
|
strategy:
|
27
27
|
matrix:
|
28
|
-
ruby-version: ['
|
28
|
+
ruby-version: ['3.0', '3.1', '3.2', head]
|
29
29
|
|
30
30
|
steps:
|
31
|
-
- uses: actions/checkout@
|
31
|
+
- uses: actions/checkout@v3
|
32
32
|
- name: Set up Ruby
|
33
33
|
uses: ruby/setup-ruby@v1
|
34
34
|
with:
|
data/.rubocop.yml
CHANGED
@@ -14,7 +14,7 @@ AllCops:
|
|
14
14
|
- template/spec/spec-helper.rb
|
15
15
|
UseCache: true
|
16
16
|
NewCops: enable
|
17
|
-
TargetRubyVersion: 3.
|
17
|
+
TargetRubyVersion: 3.2
|
18
18
|
SuggestExtensions: false
|
19
19
|
|
20
20
|
Layout/IndentationWidth:
|
@@ -45,3 +45,6 @@ Style/AsciiComments:
|
|
45
45
|
|
46
46
|
Style/Documentation:
|
47
47
|
Enabled: false
|
48
|
+
|
49
|
+
Style/HashSyntax:
|
50
|
+
Enabled: false # to support ruby 3.0
|
data/lib/starter/version.rb
CHANGED
data/template/Rakefile
CHANGED
@@ -21,8 +21,8 @@ task default: %i[spec rubocop]
|
|
21
21
|
|
22
22
|
# grape-swagger tasks
|
23
23
|
require 'grape-swagger/rake/oapi_tasks'
|
24
|
-
GrapeSwagger::Rake::OapiTasks.new(
|
24
|
+
GrapeSwagger::Rake::OapiTasks.new(Api::Base)
|
25
25
|
|
26
26
|
# starter tasks
|
27
27
|
require 'starter/rake/grape_tasks'
|
28
|
-
Starter::Rake::GrapeTasks.new(
|
28
|
+
Starter::Rake::GrapeTasks.new(Api::Base)
|
data/template/config/boot.rb
CHANGED
@@ -4,7 +4,7 @@ require 'rubygems'
|
|
4
4
|
require 'bundler/setup'
|
5
5
|
require 'active_support'
|
6
6
|
|
7
|
-
Bundler.require :default, ENV
|
7
|
+
Bundler.require :default, ENV.fetch('RACK_ENV', nil)
|
8
8
|
|
9
9
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
10
10
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'api'))
|
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.5.
|
4
|
+
version: 1.5.2
|
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: 2023-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|
@@ -87,7 +87,6 @@ files:
|
|
87
87
|
- ".rspec"
|
88
88
|
- ".rubocop.yml"
|
89
89
|
- ".rubocop_todo.yml"
|
90
|
-
- ".travis.yml"
|
91
90
|
- CHANGELOG.md
|
92
91
|
- Gemfile
|
93
92
|
- LICENSE
|
@@ -158,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
157
|
- !ruby/object:Gem::Version
|
159
158
|
version: '0'
|
160
159
|
requirements: []
|
161
|
-
rubygems_version: 3.
|
160
|
+
rubygems_version: 3.4.6
|
162
161
|
signing_key:
|
163
162
|
specification_version: 4
|
164
163
|
summary: Creates a Grape Rack skeleton
|
data/.travis.yml
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
os: linux
|
3
|
-
sudo: false
|
4
|
-
|
5
|
-
before_install:
|
6
|
-
- gem install bundler
|
7
|
-
|
8
|
-
rvm:
|
9
|
-
- ruby-head
|
10
|
-
- 2.7.2
|
11
|
-
- 2.6.6
|
12
|
-
- 2.5.8
|
13
|
-
|
14
|
-
jobs:
|
15
|
-
fast_finish: true
|
16
|
-
include:
|
17
|
-
- rvm: truffleruby-head
|
18
|
-
env:
|
19
|
-
script: bundle exec rake spec
|
20
|
-
|
21
|
-
allow_failures:
|
22
|
-
- rvm: 3.0.0-preview1
|
23
|
-
- rvm: ruby-head
|
24
|
-
- rvm: truffleruby-head
|