grape-starter 0.5.4 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -34
- data/lib/starter/builder/template_files.rb +2 -2
- data/lib/starter/version.rb +1 -1
- data/template/lib/{api.rb → models.rb} +2 -2
- data/template/lib/{api → models}/version.rb +1 -1
- data/template/script/test +3 -3
- data/template/spec/lib/{api → models}/version_spec.rb +2 -2
- metadata +6 -7
- data/.hound.yml +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7416262977e06d74808ca021441b7f78fe6aac7
|
4
|
+
data.tar.gz: b4060b7e98fbe90d31f03cca6a2a1bd45aad7d40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7f6277142dd4c9bd4c3d7283db928cabfc09e3554f1cd9d3fc2222821e98d585342b036ca83f4fdcdd5ee3f214bd42debb242eb223977f2191aebcbede304b2
|
7
|
+
data.tar.gz: 6dd3a94326f28adc72cd313a4fcfa8e62db8d5895380f5fa5cd60df4b44dd7f65566555ee1ca8031507e8565d65df69e13de51ac67c8a141ac2e31f5291a97bb
|
data/CHANGELOG.md
CHANGED
@@ -1,58 +1,31 @@
|
|
1
1
|
### NEXT
|
2
2
|
|
3
|
-
### 0.
|
3
|
+
### 0.6.0
|
4
4
|
|
5
|
-
|
6
|
-
-
|
5
|
+
**breaking changes** renames all api stuff under lib to models (includes, of course, the namespace):
|
6
|
+
- `lib/api.rb` -> `lib/models.rb`
|
7
|
+
- `lib/api/` -> `lib/models/`
|
7
8
|
|
8
|
-
### 0.4
|
9
|
+
### < 0.5.4
|
9
10
|
|
11
|
+
- simplyfies request specs, **breaking change**: takes route from spec description
|
12
|
+
- adds option to set prefix, defaults to api
|
10
13
|
- sets prefix after project name
|
11
|
-
|
12
|
-
### 0.4.1
|
13
|
-
|
14
14
|
- refactores rack api mounting
|
15
|
-
|
16
|
-
### 0.4.0
|
17
|
-
|
18
15
|
- adds ruby 2.4.0 support
|
19
|
-
|
20
|
-
### 0.3.1
|
21
|
-
|
22
16
|
- server command supports port, thin tag would be named after project
|
23
|
-
|
24
|
-
### 0.3.0
|
25
|
-
|
26
17
|
- adds redoc oapi documentation viewer
|
27
18
|
- default rake task now only spec, rubocop would be done via hound
|
28
19
|
- adds hound ci service
|
29
|
-
|
30
|
-
### 0.2.4
|
31
|
-
|
32
20
|
- fix: add mount point to api base
|
33
21
|
- adds inch.yml
|
34
22
|
- improves specs
|
35
|
-
|
36
|
-
### 0.2.3
|
37
|
-
|
38
23
|
- fix: removes mount point from api base
|
39
|
-
|
40
|
-
### 0.2.2
|
41
|
-
|
42
24
|
- renames `remove` to `rm`
|
43
25
|
- adds params to POST, PUT and PATCH specs
|
44
26
|
- removes duplication and warning
|
45
|
-
|
46
|
-
### 0.2.1
|
47
|
-
|
48
27
|
- allows entity removing
|
49
|
-
|
50
|
-
### 0.2.0
|
51
|
-
|
52
28
|
- adds `remove` command
|
53
|
-
|
54
|
-
### < 0.2.0
|
55
|
-
|
56
29
|
- adds request specs shared examples
|
57
30
|
- corrects path param for specific endpoints
|
58
31
|
- corrects adding of endpoints, if no http verb was given
|
@@ -40,7 +40,7 @@ module Starter
|
|
40
40
|
<<-FILE.strip_heredoc
|
41
41
|
# frozen_string_literal: true
|
42
42
|
|
43
|
-
module
|
43
|
+
module Models
|
44
44
|
class #{klass_name}
|
45
45
|
end
|
46
46
|
end
|
@@ -63,7 +63,7 @@ module Starter
|
|
63
63
|
# frozen_string_literal: true
|
64
64
|
require 'spec_helper'
|
65
65
|
|
66
|
-
RSpec.describe
|
66
|
+
RSpec.describe Models::#{klass_name} do
|
67
67
|
pending 'write specs'
|
68
68
|
end
|
69
69
|
FILE
|
data/lib/starter/version.rb
CHANGED
data/template/script/test
CHANGED
@@ -6,12 +6,12 @@ cd "$(dirname "$0")/.."
|
|
6
6
|
|
7
7
|
[ -z "$DEBUG" ] || set -x
|
8
8
|
|
9
|
-
echo "===> Running rubocop..."
|
10
|
-
bundle exec rake rubocop
|
11
|
-
|
12
9
|
echo "===> Running specs..."
|
13
10
|
if [ $1 ]; then
|
14
11
|
bundle exec rspec $1
|
15
12
|
else
|
16
13
|
bundle exec rspec
|
17
14
|
fi
|
15
|
+
|
16
|
+
echo "===> Running rubocop..."
|
17
|
+
bundle exec rake rubocop
|
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.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LeFnord
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|
@@ -61,7 +61,6 @@ extensions: []
|
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
63
|
- ".gitignore"
|
64
|
-
- ".hound.yml"
|
65
64
|
- ".inch.yml"
|
66
65
|
- ".rubocop.yml"
|
67
66
|
- ".rubocop_todo.yml"
|
@@ -98,8 +97,8 @@ files:
|
|
98
97
|
- template/config/application.rb
|
99
98
|
- template/config/boot.rb
|
100
99
|
- template/config/environment.rb
|
101
|
-
- template/lib/
|
102
|
-
- template/lib/
|
100
|
+
- template/lib/models.rb
|
101
|
+
- template/lib/models/version.rb
|
103
102
|
- template/public/README
|
104
103
|
- template/script/console
|
105
104
|
- template/script/server
|
@@ -107,7 +106,7 @@ files:
|
|
107
106
|
- template/script/stop
|
108
107
|
- template/script/test
|
109
108
|
- template/script/update
|
110
|
-
- template/spec/lib/
|
109
|
+
- template/spec/lib/models/version_spec.rb
|
111
110
|
- template/spec/requests/documentation_spec.rb
|
112
111
|
- template/spec/requests/root_spec.rb
|
113
112
|
- template/spec/spec_helper.rb
|
@@ -131,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
130
|
version: '0'
|
132
131
|
requirements: []
|
133
132
|
rubyforge_project:
|
134
|
-
rubygems_version: 2.6.
|
133
|
+
rubygems_version: 2.6.12
|
135
134
|
signing_key:
|
136
135
|
specification_version: 4
|
137
136
|
summary: Create a Grape Rack skeleton
|
data/.hound.yml
DELETED