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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1bf6bb14f7920a1c45c3bbd5737167d239f752b31d2977416647ac96f9ef7207
4
- data.tar.gz: 6d9a2bb32927b585a1f32bae838f79edadb634420492f5c5b149c50754dc4c33
3
+ metadata.gz: 34ae705b1f75703766962ff10fa9a36b38cfb7c9b1673d55a37c192c638006e6
4
+ data.tar.gz: 8e3217a9aef0ad3aefeb45dd1441fa8b4888ce5598af2666931afa12eaf7ef4b
5
5
  SHA512:
6
- metadata.gz: 439b3e8c90b6e79c3b61da51b27ff4158e5958271035da0aa8181a0c8664cda39f4140fd32708cc013893932b5e795c42d3e9a8101776594fde0258c0986c610
7
- data.tar.gz: ec9da624c7c41f6c0af7660650ea53da8b3da609e7354e878e07dbfd80e1dca0aa4a3092a6243ef5786547d1d3f4e10efb49fc9e5e256dc8dbe968a902102436
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@v2
15
+ - uses: actions/checkout@v3
16
16
  - uses: ruby/setup-ruby@v1
17
17
  with:
18
- ruby-version: '3.1'
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: ['2.7', '3.0', '3.1', head]
28
+ ruby-version: ['3.0', '3.1', '3.2', head]
29
29
 
30
30
  steps:
31
- - uses: actions/checkout@v2
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.0
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Starter
4
- VERSION = '1.5.1'
4
+ VERSION = '1.5.2'
5
5
  end
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(::Api::Base)
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(::Api::Base)
28
+ Starter::Rake::GrapeTasks.new(Api::Base)
@@ -4,7 +4,7 @@ require 'rubygems'
4
4
  require 'bundler/setup'
5
5
  require 'active_support'
6
6
 
7
- Bundler.require :default, ENV['RACK_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.1
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: 2021-12-28 00:00:00.000000000 Z
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.3.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