grape 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of grape might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42e83be7840de205451cdb523c0a03f3a079300f
4
- data.tar.gz: b16053b9a44c001cecae4f670de0073630b7b43e
3
+ metadata.gz: e3f8c2e0db297ca831e464a1c0db49f2e5ba6f2e
4
+ data.tar.gz: 34b6bcee2a26ecb8e87b207abbb59647d2376773
5
5
  SHA512:
6
- metadata.gz: cd442f6727d63e80b631e36005c48ac93e639ad3bfd61f102cdcf2530dd67b528c9576e11bad705052108e7448181b74dd32fd4121100009e0bf42451eea6fa9
7
- data.tar.gz: 8f79ccab0811111484bb920ae2b27edbe2c498db8e775fa063b4bf67655f5e6022e561fc22cfd6362e17e1ca27be2e857ef0ed51e8f34b00c4b4bed3e9e06847
6
+ metadata.gz: 98bbce31a09337c9ef681b59f7a63c2bfb7cdb472d6b46275d73bd22064bcff48288283d57f5ed04ba6f662571975d3a284a91b0448a3369149729c363838fde
7
+ data.tar.gz: 41d9f0ac8df0ba6c7105ab8b1e50183d569f5708bdd9469661cde03a79e6f3e604551d049e49fd4fc3eb49d49456d42523718fcd961711112c4f904389ed9b70
@@ -1,7 +1,5 @@
1
1
  language: ruby
2
2
 
3
- sudo: false
4
-
5
3
  rvm:
6
4
  - 2.1
7
5
  - 2.0.0
@@ -1,3 +1,9 @@
1
+ 0.10.1 (12/28/2014)
2
+ ===================
3
+
4
+ * [#868](https://github.com/intridea/grape/pull/868), [#862](https://github.com/intridea/grape/pull/862), [#861](https://github.com/intridea/grape/pull/861): Fixed `version`, `prefix`, and other settings being overridden or changing scope when mounting API - [@yesmeck](https://github.com/yesmeck).
5
+ * [#864](https://github.com/intridea/grape/pull/864): Fixed `declared(params, include_missing: false)` now returning attributes with `nil` and `false` values - [@ppadron](https://github.com/ppadron).
6
+
1
7
  0.10.0 (12/19/2014)
2
8
  ===================
3
9
 
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ![grape logo](grape.png)
2
2
 
3
- [![Build Status](https://travis-ci.org/intridea/grape.png?branch=master)](http://travis-ci.org/intridea/grape) [![Code Climate](https://codeclimate.com/github/intridea/grape.png)](https://codeclimate.com/github/intridea/grape) [![Inline docs](http://inch-ci.org/github/intridea/grape.png)](http://inch-ci.org/github/intridea/grape) [![Dependency Status](https://www.versioneye.com/ruby/grape/0.7.0/badge.png)](https://www.versioneye.com/ruby/grape/0.7.0)
3
+ [![Build Status](https://travis-ci.org/intridea/grape.png?branch=master)](http://travis-ci.org/intridea/grape) [![Code Climate](https://codeclimate.com/github/intridea/grape.png)](https://codeclimate.com/github/intridea/grape) [![Inline docs](http://inch-ci.org/github/intridea/grape.png)](http://inch-ci.org/github/intridea/grape) [![Dependency Status](https://www.versioneye.com/ruby/grape/badge.png)](https://www.versioneye.com/ruby/grape)
4
4
 
5
5
  ## Table of Contents
6
6
 
@@ -86,7 +86,7 @@ content negotiation, versioning and much more.
86
86
 
87
87
  ## Stable Release
88
88
 
89
- You're reading the documentation for the stable release of Grape, 0.10.0.
89
+ You're reading the documentation for the stable release of Grape, which is be 0.10.1.
90
90
  Please read [UPGRADING](UPGRADING.md) when upgrading from a previous version.
91
91
 
92
92
  ## Project Resources
@@ -637,6 +637,29 @@ curl -X POST -H "Content-Type: application/json" localhost:9292/users/signup -d
637
637
  }
638
638
  ````
639
639
 
640
+ Note that an attribute with a `nil` value is not considered *missing* and will also be returned
641
+ when `include_missing` is set to `false`:
642
+
643
+ **Request**
644
+
645
+ ````bash
646
+ curl -X POST -H "Content-Type: application/json" localhost:9292/users/signup -d '{"user": {"first_name":"first name", "last_name": null, "address": { "city": "SF"}}}'
647
+ ````
648
+
649
+ **Response with include_missing:false**
650
+
651
+ ````json
652
+ {
653
+ "declared_params": {
654
+ "user": {
655
+ "first_name": "first name",
656
+ "last_name": null,
657
+ "address": { "city": "SF"}
658
+ }
659
+ }
660
+ }
661
+ ````
662
+
640
663
  ## Parameter Validation and Coercion
641
664
 
642
665
  You can define validations and coercion options for your parameters using a `params` block.
@@ -1,6 +1,14 @@
1
1
  Upgrading Grape
2
2
  ===============
3
3
 
4
+ ### Upgrading to >= 0.10.1
5
+
6
+ #### Changes to `declared(params, include_missing: false)`
7
+
8
+ Attributes with `nil` values or with values that evaluate to `false` are no longer considered *missing* and will be returned when `include_missing` is set to `false`.
9
+
10
+ See [#864](https://github.com/intridea/grape/pull/864) for more information.
11
+
4
12
  ### Upgrading to >= 0.10.0
5
13
 
6
14
  #### Changes to content-types
@@ -38,7 +38,7 @@ module Grape
38
38
  key.each_pair do |parent, children|
39
39
  output_key = options[:stringify] ? parent.to_s : parent.to_sym
40
40
 
41
- next unless options[:include_missing] || children || params[parent]
41
+ next unless options[:include_missing] || children || params.key?(parent)
42
42
 
43
43
  if params.key?(parent) || options[:include_missing]
44
44
  hash[output_key] = if children
@@ -99,7 +99,6 @@ module Grape
99
99
  def mount_in(route_set)
100
100
  if endpoints
101
101
  endpoints.each do |e|
102
- e.inheritable_setting.inherit_from inheritable_setting
103
102
  e.mount_in(route_set)
104
103
  end
105
104
  else
@@ -39,8 +39,6 @@ module Grape
39
39
  self.new_values = other.new_values.deep_dup
40
40
  end
41
41
 
42
- attr_writer :new_values
43
-
44
42
  protected
45
43
 
46
44
  def values
@@ -1,3 +1,3 @@
1
1
  module Grape
2
- VERSION = '0.10.0'
2
+ VERSION = '0.10.1'
3
3
  end
@@ -0,0 +1,48 @@
1
+ require 'spec_helper'
2
+
3
+ describe Grape::API::Helpers do
4
+ subject do
5
+ module HelperMethods
6
+ extend Grape::API::Helpers
7
+ def current_user
8
+ @current_user ||= params[:current_user]
9
+ end
10
+ end
11
+
12
+ class Nested < Grape::API
13
+ resource :level1 do
14
+ helpers HelperMethods
15
+
16
+ get do
17
+ current_user
18
+ end
19
+
20
+ resource :level2 do
21
+ get do
22
+ current_user
23
+ end
24
+ end
25
+ end
26
+ end
27
+
28
+ class Main < Grape::API
29
+ mount Nested
30
+ end
31
+
32
+ Main
33
+ end
34
+
35
+ def app
36
+ subject
37
+ end
38
+
39
+ it 'can access helpers from a mounted resource' do
40
+ get '/level1', current_user: 'hello'
41
+ expect(last_response.body).to eq('hello')
42
+ end
43
+
44
+ it 'can access helpers from a mounted resource in a nested resource' do
45
+ get '/level1/level2', current_user: 'world'
46
+ expect(last_response.body).to eq('world')
47
+ end
48
+ end
@@ -2415,6 +2415,100 @@ describe Grape::API do
2415
2415
  options '/v1/apples/colour'
2416
2416
  expect(last_response.status).to eql 204
2417
2417
  end
2418
+
2419
+ it 'mounts a versioned API with nested resources' do
2420
+ api = Class.new(Grape::API) do
2421
+ version 'v1'
2422
+ resources :users do
2423
+ get :hello do
2424
+ 'hello users'
2425
+ end
2426
+ end
2427
+ end
2428
+ subject.mount api
2429
+
2430
+ get '/v1/users/hello'
2431
+ expect(last_response.body).to eq('hello users')
2432
+ end
2433
+
2434
+ it 'mounts a prefixed API with nested resources' do
2435
+ api = Class.new(Grape::API) do
2436
+ prefix 'api'
2437
+ resources :users do
2438
+ get :hello do
2439
+ 'hello users'
2440
+ end
2441
+ end
2442
+ end
2443
+ subject.mount api
2444
+
2445
+ get '/api/users/hello'
2446
+ expect(last_response.body).to eq('hello users')
2447
+ end
2448
+
2449
+ it 'applies format to a mounted API with nested resources' do
2450
+ api = Class.new(Grape::API) do
2451
+ format :json
2452
+ resources :users do
2453
+ get do
2454
+ { users: true }
2455
+ end
2456
+ end
2457
+ end
2458
+ subject.mount api
2459
+
2460
+ get '/users'
2461
+ expect(last_response.body).to eq({ users: true }.to_json)
2462
+ end
2463
+
2464
+ it 'applies auth to a mounted API with nested resources' do
2465
+ api = Class.new(Grape::API) do
2466
+ format :json
2467
+ http_basic do |username, password|
2468
+ username == 'username' && password == 'password'
2469
+ end
2470
+ resources :users do
2471
+ get do
2472
+ { users: true }
2473
+ end
2474
+ end
2475
+ end
2476
+ subject.mount api
2477
+
2478
+ get '/users'
2479
+ expect(last_response.status).to eq(401)
2480
+
2481
+ get '/users', {}, 'HTTP_AUTHORIZATION' => encode_basic_auth('username', 'password')
2482
+ expect(last_response.body).to eq({ users: true }.to_json)
2483
+ end
2484
+
2485
+ it 'mounts multiple versioned APIs with nested resources' do
2486
+ api1 = Class.new(Grape::API) do
2487
+ version 'one', using: :header, vendor: 'test'
2488
+ resources :users do
2489
+ get :hello do
2490
+ 'one'
2491
+ end
2492
+ end
2493
+ end
2494
+
2495
+ api2 = Class.new(Grape::API) do
2496
+ version 'two', using: :header, vendor: 'test'
2497
+ resources :users do
2498
+ get :hello do
2499
+ 'two'
2500
+ end
2501
+ end
2502
+ end
2503
+
2504
+ subject.mount api1
2505
+ subject.mount api2
2506
+
2507
+ versioned_get '/users/hello', 'one', using: :header, vendor: 'test'
2508
+ expect(last_response.body).to eq('one')
2509
+ versioned_get '/users/hello', 'two', using: :header, vendor: 'test'
2510
+ expect(last_response.body).to eq('two')
2511
+ end
2418
2512
  end
2419
2513
  end
2420
2514
 
@@ -328,6 +328,36 @@ describe Grape::Endpoint do
328
328
  expect(last_response.status).to eq(200)
329
329
  end
330
330
 
331
+ it 'includes attributes with value that evaluates to false' do
332
+ subject.params do
333
+ requires :first
334
+ optional :boolean
335
+ end
336
+
337
+ subject.post '/declared' do
338
+ error!('expected false', 400) if declared(params, include_missing: false)[:boolean] != false
339
+ ''
340
+ end
341
+
342
+ post '/declared', MultiJson.dump(first: 'one', boolean: false), 'CONTENT_TYPE' => 'application/json'
343
+ expect(last_response.status).to eq(201)
344
+ end
345
+
346
+ it 'includes attributes with value that evaluates to nil' do
347
+ subject.params do
348
+ requires :first
349
+ optional :second
350
+ end
351
+
352
+ subject.post '/declared' do
353
+ error!('expected nil', 400) unless declared(params, include_missing: false)[:second].nil?
354
+ ''
355
+ end
356
+
357
+ post '/declared', MultiJson.dump(first: 'one', second: nil), 'CONTENT_TYPE' => 'application/json'
358
+ expect(last_response.status).to eq(201)
359
+ end
360
+
331
361
  it 'does not include missing attributes when there are nested hashes' do
332
362
  subject.get '/dummy' do
333
363
  end
@@ -356,9 +386,9 @@ describe Grape::Endpoint do
356
386
 
357
387
  expect(last_response.status).to eq(200)
358
388
  expect(inner_params[:first]).to eq 'present'
359
- expect(inner_params[:nested].keys).to eq [:fourth, :nested_nested]
389
+ expect(inner_params[:nested].keys).to eq [:fourth, :fifth, :nested_nested]
360
390
  expect(inner_params[:nested][:fourth]).to eq ''
361
- expect(inner_params[:nested][:nested_nested].keys).to eq [:sixth]
391
+ expect(inner_params[:nested][:nested_nested].keys).to eq [:sixth, :seven]
362
392
  expect(inner_params[:nested][:nested_nested][:sixth]).to eq 'sixth'
363
393
  end
364
394
  end
metadata CHANGED
@@ -1,293 +1,293 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-19 00:00:00.000000000 Z
11
+ date: 2014-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.3.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.3.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rack-mount
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rack-accept
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: activesupport
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: multi_json
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: 1.3.2
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: 1.3.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: multi_xml
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: 0.5.2
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: 0.5.2
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: hashie
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: 2.1.0
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: 2.1.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: virtus
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: 1.0.0
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: 1.0.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: builder
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: grape-entity
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: 0.4.4
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: 0.4.4
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rake
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - '>='
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '>='
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: maruku
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '>='
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - '>='
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: yard
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - '>='
185
+ - - ">="
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - '>='
192
+ - - ">="
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: rack-test
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - '>='
199
+ - - ">="
200
200
  - !ruby/object:Gem::Version
201
201
  version: '0'
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - '>='
206
+ - - ">="
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: rspec
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - ~>
213
+ - - "~>"
214
214
  - !ruby/object:Gem::Version
215
215
  version: '3.0'
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
- - - ~>
220
+ - - "~>"
221
221
  - !ruby/object:Gem::Version
222
222
  version: '3.0'
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: bundler
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
- - - '>='
227
+ - - ">="
228
228
  - !ruby/object:Gem::Version
229
229
  version: '0'
230
230
  type: :development
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
- - - '>='
234
+ - - ">="
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: cookiejar
239
239
  requirement: !ruby/object:Gem::Requirement
240
240
  requirements:
241
- - - '>='
241
+ - - ">="
242
242
  - !ruby/object:Gem::Version
243
243
  version: '0'
244
244
  type: :development
245
245
  prerelease: false
246
246
  version_requirements: !ruby/object:Gem::Requirement
247
247
  requirements:
248
- - - '>='
248
+ - - ">="
249
249
  - !ruby/object:Gem::Version
250
250
  version: '0'
251
251
  - !ruby/object:Gem::Dependency
252
252
  name: rack-contrib
253
253
  requirement: !ruby/object:Gem::Requirement
254
254
  requirements:
255
- - - '>='
255
+ - - ">="
256
256
  - !ruby/object:Gem::Version
257
257
  version: '0'
258
258
  type: :development
259
259
  prerelease: false
260
260
  version_requirements: !ruby/object:Gem::Requirement
261
261
  requirements:
262
- - - '>='
262
+ - - ">="
263
263
  - !ruby/object:Gem::Version
264
264
  version: '0'
265
265
  - !ruby/object:Gem::Dependency
266
266
  name: mime-types
267
267
  requirement: !ruby/object:Gem::Requirement
268
268
  requirements:
269
- - - '>='
269
+ - - ">="
270
270
  - !ruby/object:Gem::Version
271
271
  version: '0'
272
272
  type: :development
273
273
  prerelease: false
274
274
  version_requirements: !ruby/object:Gem::Requirement
275
275
  requirements:
276
- - - '>='
276
+ - - ">="
277
277
  - !ruby/object:Gem::Version
278
278
  version: '0'
279
279
  - !ruby/object:Gem::Dependency
280
280
  name: appraisal
281
281
  requirement: !ruby/object:Gem::Requirement
282
282
  requirements:
283
- - - '>='
283
+ - - ">="
284
284
  - !ruby/object:Gem::Version
285
285
  version: '0'
286
286
  type: :development
287
287
  prerelease: false
288
288
  version_requirements: !ruby/object:Gem::Requirement
289
289
  requirements:
290
- - - '>='
290
+ - - ">="
291
291
  - !ruby/object:Gem::Version
292
292
  version: '0'
293
293
  description: A Ruby framework for rapid API development with great conventions.
@@ -297,12 +297,12 @@ executables: []
297
297
  extensions: []
298
298
  extra_rdoc_files: []
299
299
  files:
300
- - .gitignore
301
- - .rspec
302
- - .rubocop.yml
303
- - .rubocop_todo.yml
304
- - .travis.yml
305
- - .yardopts
300
+ - ".gitignore"
301
+ - ".rspec"
302
+ - ".rubocop.yml"
303
+ - ".rubocop_todo.yml"
304
+ - ".travis.yml"
305
+ - ".yardopts"
306
306
  - Appraisals
307
307
  - CHANGELOG.md
308
308
  - CONTRIBUTING.md
@@ -399,7 +399,8 @@ files:
399
399
  - lib/grape/validations/validators/regexp.rb
400
400
  - lib/grape/validations/validators/values.rb
401
401
  - lib/grape/version.rb
402
- - spec/grape/api/helpers_spec.rb
402
+ - spec/grape/api/nested_helpers_spec.rb
403
+ - spec/grape/api/shared_helpers_spec.rb
403
404
  - spec/grape/api_spec.rb
404
405
  - spec/grape/dsl/callbacks_spec.rb
405
406
  - spec/grape/dsl/configuration_spec.rb
@@ -468,12 +469,12 @@ require_paths:
468
469
  - lib
469
470
  required_ruby_version: !ruby/object:Gem::Requirement
470
471
  requirements:
471
- - - '>='
472
+ - - ">="
472
473
  - !ruby/object:Gem::Version
473
474
  version: '0'
474
475
  required_rubygems_version: !ruby/object:Gem::Requirement
475
476
  requirements:
476
- - - '>='
477
+ - - ">="
477
478
  - !ruby/object:Gem::Version
478
479
  version: '0'
479
480
  requirements: []
@@ -483,7 +484,8 @@ signing_key:
483
484
  specification_version: 4
484
485
  summary: A simple Ruby framework for building REST-like APIs.
485
486
  test_files:
486
- - spec/grape/api/helpers_spec.rb
487
+ - spec/grape/api/nested_helpers_spec.rb
488
+ - spec/grape/api/shared_helpers_spec.rb
487
489
  - spec/grape/api_spec.rb
488
490
  - spec/grape/dsl/callbacks_spec.rb
489
491
  - spec/grape/dsl/configuration_spec.rb