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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +3 -3
- data/bin/grape-starter +1 -1
- data/lib/starter/builder/templates/sequel.rb +4 -0
- data/lib/starter/version.rb +1 -1
- data/template/public/.keep +0 -0
- metadata +3 -3
- data/template/public/README +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56388542b123cc951ccc57b0423e47cbcf3be303
|
4
|
+
data.tar.gz: f6954dba786ccbed72ede792b240a7b61af37bbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e8a737e71bacc3021f029108efe14e92dbd938b6b951e79a03a8ab8aca5cce3f7d724ce570acca8a8a1a6281c2a4c678956736c317238726f9f93813bf6b8dd
|
7
|
+
data.tar.gz: 5c64d8571b23858af2d52d0c00e039f8dbc76606606f4d71e6a8019c6f06c5842caedd3dc428fdfeec54e989a4b478d295cd87af16539c07402382ddb6eb8c7e
|
data/CHANGELOG.md
CHANGED
@@ -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 #
|
34
|
-
-o sequel, --orm=sequel # create files for the specified ORM,
|
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
|
-
│ └──
|
55
|
+
│ └── …
|
56
56
|
├── script # setup / server / test etc.
|
57
57
|
│ └── …
|
58
58
|
└── spec # RSpec
|
data/bin/grape-starter
CHANGED
@@ -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: '
|
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
|
|
data/lib/starter/version.rb
CHANGED
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.
|
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-
|
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
|
121
|
+
- template/public/.keep
|
122
122
|
- template/script/console
|
123
123
|
- template/script/server
|
124
124
|
- template/script/setup
|
data/template/public/README
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
… includes public available stuff
|