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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0112738c160ed430e73370b56e6fe19b9eeb1ca
4
- data.tar.gz: 7d9d15f09ff55f5e710887a8712f4b4f2cf0a545
3
+ metadata.gz: d7416262977e06d74808ca021441b7f78fe6aac7
4
+ data.tar.gz: b4060b7e98fbe90d31f03cca6a2a1bd45aad7d40
5
5
  SHA512:
6
- metadata.gz: 76e8988df8aff88918cc726c0acfd5dfa1d8b38fd6dabbe1a2abfc12072dd3ab6693b03df7e43488ac57c0311c9786a1d328cf6a47ab44b60e0c36157e029ec8
7
- data.tar.gz: e0fada9f049ce019b42eed372f4c5f1a063f23bef0c326225e918bd9513ab4f87175892f75b4bb4eb6330c0d058284426c5177da6a807a806d418534aa468306
6
+ metadata.gz: f7f6277142dd4c9bd4c3d7283db928cabfc09e3554f1cd9d3fc2222821e98d585342b036ca83f4fdcdd5ee3f214bd42debb242eb223977f2191aebcbede304b2
7
+ data.tar.gz: 6dd3a94326f28adc72cd313a4fcfa8e62db8d5895380f5fa5cd60df4b44dd7f65566555ee1ca8031507e8565d65df69e13de51ac67c8a141ac2e31f5291a97bb
data/CHANGELOG.md CHANGED
@@ -1,58 +1,31 @@
1
1
  ### NEXT
2
2
 
3
- ### 0.5.0
3
+ ### 0.6.0
4
4
 
5
- - simplyfies request specs, **breaking change**: takes route from spec description
6
- - adds option to set prefix, defaults to api
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.2
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 Api
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 Api::#{klass_name} do
66
+ RSpec.describe Models::#{klass_name} do
67
67
  pending 'write specs'
68
68
  end
69
69
  FILE
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Starter
4
- VERSION = '0.5.4'
4
+ VERSION = '0.6.0'
5
5
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'api/version'
3
+ require 'models/version'
4
4
 
5
- module Api
5
+ module Models
6
6
  APP_CLASS = name
7
7
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- module Api
3
+ module Models
4
4
  VERSION = '0.1.0'
5
5
  end
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
@@ -2,8 +2,8 @@
2
2
 
3
3
  require 'spec_helper'
4
4
 
5
- describe Api do
5
+ describe Models do
6
6
  it 'has a version number' do
7
- expect(Api::VERSION).not_to be nil
7
+ expect(Models::VERSION).not_to be nil
8
8
  end
9
9
  end
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.4
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-04-18 00:00:00.000000000 Z
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/api.rb
102
- - template/lib/api/version.rb
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/api/version_spec.rb
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.11
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
@@ -1,2 +0,0 @@
1
- ruby:
2
- config_file: .rubocop.yml