grape-starter 0.5.3 → 0.5.4

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
  SHA1:
3
- metadata.gz: c9a107b2658802ec45e956daba099eaf30ddb37c
4
- data.tar.gz: c40cf86001873ac609536d7abbe6c65af5a119d4
3
+ metadata.gz: f0112738c160ed430e73370b56e6fe19b9eeb1ca
4
+ data.tar.gz: 7d9d15f09ff55f5e710887a8712f4b4f2cf0a545
5
5
  SHA512:
6
- metadata.gz: 38fe1d590985b01caea0ed5dc3a33a786b257ed1fe6707f3ab2d6b288decee3f79d6c80a49647fd0a2e657d87bb508e0ef3f4a93ba76c01b92a050d91929786a
7
- data.tar.gz: c0190b8d0f884a3e841079ba642763dc4ff2e411a3ce0b9a9789e677d4a02801450773a8d9c407ef811796a8b3930fcc8581bab36c2c4ec85ccc0ba7ea9bf330
6
+ metadata.gz: 76e8988df8aff88918cc726c0acfd5dfa1d8b38fd6dabbe1a2abfc12072dd3ab6693b03df7e43488ac57c0311c9786a1d328cf6a47ab44b60e0c36157e029ec8
7
+ data.tar.gz: e0fada9f049ce019b42eed372f4c5f1a063f23bef0c326225e918bd9513ab4f87175892f75b4bb4eb6330c0d058284426c5177da6a807a806d418534aa468306
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Starter
4
- VERSION = '0.5.3'
4
+ VERSION = '0.5.4'
5
5
  end
@@ -4,8 +4,10 @@ AllCops:
4
4
  Exclude:
5
5
  - '**/tmp/**/*'
6
6
  - '**/script/**/*'
7
+ - Rakefile
8
+ - Gemfile
7
9
  UseCache: true
8
- TargetRubyVersion: 2.3
10
+ TargetRubyVersion: 2.4
9
11
 
10
12
  Metrics/BlockLength:
11
13
  Exclude:
data/template/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  source 'http://rubygems.org'
3
4
 
4
5
  gem 'thin'
data/template/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'rake'
3
4
 
4
5
  require 'rspec/core'
data/template/api/base.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Api
3
4
  class Base < Grape::API
4
5
  # !!! a prefix is always required
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'starter/rake/grape_tasks'
3
4
 
4
5
  module Api
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Api
3
4
  module Entities
4
5
  class ApiError < Grape::Entity
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Api
3
4
  module Entities
4
5
  class Route < Grape::Entity
data/template/config.ru CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: false
2
+
2
3
  require 'rack/cors'
3
4
 
4
5
  use Rack::CommonLogger
@@ -6,7 +7,7 @@ use Rack::CommonLogger
6
7
  use Rack::Cors do
7
8
  allow do
8
9
  origins '*'
9
- resource '*', headers: :any, methods: [:get, :post, :put, :patch, :delete, :options]
10
+ resource '*', headers: :any, methods: %i[get post put patch delete options]
10
11
  end
11
12
  end
12
13
 
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
4
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'api'))
4
5
  $LOAD_PATH.unshift(File.dirname(__FILE__))
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'rubygems'
3
4
  require 'bundler/setup'
4
5
 
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  ENV['RACK_ENV'] ||= 'test'
3
4
 
4
5
  require File.expand_path('../application', __FILE__)
data/template/lib/api.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'api/version'
3
4
 
4
5
  module Api
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Api
3
4
  VERSION = '0.1.0'
4
5
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'spec_helper'
3
4
 
4
5
  describe Api do
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'spec_helper'
3
4
 
4
5
  RSpec.describe '/{{{grape-starter}}}/v1/oapi' do
@@ -1,12 +1,13 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'spec_helper'
3
4
 
4
5
  RSpec.describe '/{{{grape-starter}}}/v1/root' do
5
6
  let(:exposed_keys) do
6
- [
7
- :verb,
8
- :path,
9
- :description
7
+ %i[
8
+ verb
9
+ path
10
+ description
10
11
  ]
11
12
  end
12
13
 
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  ENV['RACK_ENV'] ||= 'test'
3
4
 
4
5
  require 'rack/test'
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: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - LeFnord
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-06 00:00:00.000000000 Z
11
+ date: 2017-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli