grape-starter 0.8.1 → 0.8.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
  SHA1:
3
- metadata.gz: 41354a0a87f47c0f974e5c7b84d125a9200003d5
4
- data.tar.gz: 16f9c3dd2cab7d87c13e0b0af299bb5a13667e81
3
+ metadata.gz: 56388542b123cc951ccc57b0423e47cbcf3be303
4
+ data.tar.gz: f6954dba786ccbed72ede792b240a7b61af37bbc
5
5
  SHA512:
6
- metadata.gz: ba03f0e812e45ef087221cb970bb252d617e5ccb13e98b8463d480707f2c6279d1b9ba4f2a107fb8fe9683d4cf12086e7e4ab103653ba4cbf35b505fb8d0394f
7
- data.tar.gz: 62dfe961d9b4494c09cc61b84ea230065ad33675037e8364e35f868092e7ae11dc88c6b6ef788c3c7d308f1d0cadb81a0d112839dcd4ef09306d0ed0f355bf1f
6
+ metadata.gz: 8e8a737e71bacc3021f029108efe14e92dbd938b6b951e79a03a8ab8aca5cce3f7d724ce570acca8a8a1a6281c2a4c678956736c317238726f9f93813bf6b8dd
7
+ data.tar.gz: 5c64d8571b23858af2d52d0c00e039f8dbc76606606f4d71e6a8019c6f06c5842caedd3dc428fdfeec54e989a4b478d295cd87af16539c07402382ddb6eb8c7e
@@ -2,6 +2,10 @@
2
2
 
3
3
  - contributions
4
4
 
5
+ ### 0.8.2
6
+
7
+ - [48458…](https://github.com/LeFnord/grape-starter/commit/48458938a341660453052660448a058aee0f8e81) - handles Sequel deprecation warning
8
+
5
9
  ### 0.8.1
6
10
 
7
11
  - [6b16c…](https://github.com/LeFnord/grape-starter/commit/6b16c0bf38e4cad8d486e805269157dcbaefbb64) - removes default ORM value, minor corrections
data/README.md CHANGED
@@ -30,8 +30,8 @@ $ grape-starter new awesome_api
30
30
  with following options:
31
31
  ```
32
32
  -f, --force # overwrites existend project
33
- -p foobar, --prefix=foobar # provide a prefix under which the API can be accessed, default: api
34
- -o sequel, --orm=sequel # create files for the specified ORM, default: sequel, available: activerecord
33
+ -p foobar, --prefix=foobar # sets the prefix of the API (default: none)
34
+ -o sequel, --orm=sequel # create files for the specified ORM, available: sequel, activerecord (ar) (default: none)
35
35
  ```
36
36
 
37
37
  This command creates a folder named `awesome_api` containing the skeleton. With following structure:
@@ -52,7 +52,7 @@ This command creates a folder named `awesome_api` containing the skeleton. With
52
52
  │   │   └── version.rb
53
53
  │   └── models.rb
54
54
  ├── public # for serving static files
55
- │   └── redoc.html # provides the ReDoc generated oapi documentation
55
+ │   └──
56
56
  ├── script # setup / server / test etc.
57
57
  │   └── …
58
58
  └── spec # RSpec
@@ -25,7 +25,7 @@ command :new do |c|
25
25
  c.flag [:p, :prefix],
26
26
  desc: 'sets the prefix of the API'
27
27
  c.flag [:o, :orm],
28
- desc: 'prepares for the given ORM (Sequel -> sequel, ActiveRecord -> ar)'
28
+ desc: 'create files for the specified ORM, available: sequel, activerecord (ar)'
29
29
 
30
30
  c.action do |global_options, options, args|
31
31
  dest = args.empty? ? nil : File.join(Dir.getwd, args.first)
@@ -16,6 +16,10 @@ module Starter
16
16
  # load Sequel Configuration
17
17
  settings = YAML.load_file('config/database.yml')
18
18
  DB = Sequel.connect(settings[ENV['RACK_ENV']])
19
+
20
+ # FIXME: maybe remove it later …
21
+ # see: https://groups.google.com/forum/#!topic/sequel-talk/QIIv5qoltjs
22
+ Sequel::Model.require_valid_table = false
19
23
  FILE
20
24
  end
21
25
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Starter
4
- VERSION = '0.8.1'
4
+ VERSION = '0.8.2'
5
5
  end
File without changes
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.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - LeFnord
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-02 00:00:00.000000000 Z
11
+ date: 2017-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli
@@ -118,7 +118,7 @@ files:
118
118
  - template/config/initializers/.keep
119
119
  - template/lib/models.rb
120
120
  - template/lib/models/version.rb
121
- - template/public/README
121
+ - template/public/.keep
122
122
  - template/script/console
123
123
  - template/script/server
124
124
  - template/script/setup
@@ -1 +0,0 @@
1
- … includes public available stuff