grape 0.18.0 → 0.19.0
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 +4 -4
- data/CHANGELOG.md +52 -69
- data/Gemfile +3 -3
- data/Gemfile.lock +37 -41
- data/README.md +49 -7
- data/UPGRADING.md +56 -1
- data/gemfiles/rack_edge.gemfile +34 -0
- data/gemfiles/rails_5.gemfile +1 -1
- data/gemfiles/rails_edge.gemfile +34 -0
- data/lib/grape/api.rb +1 -1
- data/lib/grape/dsl/helpers.rb +1 -0
- data/lib/grape/dsl/inside_route.rb +2 -0
- data/lib/grape/dsl/parameters.rb +24 -12
- data/lib/grape/dsl/request_response.rb +2 -3
- data/lib/grape/dsl/routing.rb +4 -0
- data/lib/grape/endpoint.rb +15 -16
- data/lib/grape/error_formatter/base.rb +1 -0
- data/lib/grape/formatter/serializable_hash.rb +2 -2
- data/lib/grape/http/headers.rb +2 -0
- data/lib/grape/middleware/base.rb +3 -4
- data/lib/grape/middleware/error.rb +1 -1
- data/lib/grape/middleware/versioner/path.rb +1 -1
- data/lib/grape/router.rb +37 -21
- data/lib/grape/router/attribute_translator.rb +1 -1
- data/lib/grape/router/pattern.rb +9 -1
- data/lib/grape/router/route.rb +4 -0
- data/lib/grape/validations/params_scope.rb +24 -6
- data/lib/grape/validations/validators/base.rb +1 -2
- data/lib/grape/validations/validators/regexp.rb +2 -1
- data/lib/grape/version.rb +1 -1
- data/pkg/grape-0.17.0.gem +0 -0
- data/spec/grape/api/patch_method_helpers_spec.rb +1 -2
- data/spec/grape/api_spec.rb +87 -21
- data/spec/grape/dsl/desc_spec.rb +2 -4
- data/spec/grape/dsl/inside_route_spec.rb +29 -22
- data/spec/grape/dsl/parameters_spec.rb +15 -1
- data/spec/grape/endpoint_spec.rb +53 -19
- data/spec/grape/middleware/formatter_spec.rb +39 -30
- data/spec/grape/middleware/versioner/param_spec.rb +15 -10
- data/spec/grape/middleware/versioner/path_spec.rb +4 -3
- data/spec/grape/util/inheritable_setting_spec.rb +2 -1
- data/spec/grape/util/strict_hash_configuration_spec.rb +1 -2
- data/spec/grape/validations/params_scope_spec.rb +182 -0
- data/spec/grape/validations/validators/default_spec.rb +1 -3
- data/spec/grape/validations/validators/presence_spec.rb +29 -1
- data/spec/grape/validations/validators/regexp_spec.rb +88 -0
- metadata +5 -3
- data/pkg/grape-0.18.0.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5959c55c9de8f187ba61237f85df40b8d5a350d
|
4
|
+
data.tar.gz: c9326028a122dd6c7f6574e5ebeabe5e64172b85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bc47755123872f9aabab1b2a9a842a01a4fc085a7f04df490dca0f7e06ab9ce6739c921f1897c87d988181d91c705ace17408a6fa9bd0fa26e0cf7de18cc9c4
|
7
|
+
data.tar.gz: 54374eaadeb3a8ae9855381f7e87919c78aff99377caf00c025e15f37ee46468261990b686591331be8a34303233e6ea1fedcaab8c81f295491fae48e2cbf7df
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
|
-
0.
|
2
|
-
|
1
|
+
### 0.19.0 (12/18/2016)
|
2
|
+
|
3
|
+
#### Features
|
4
|
+
|
5
|
+
* [#1503](https://github.com/ruby-grape/grape/pull/1503): Allow to use regexp validator with arrays - [@akoltun](https://github.com/akoltun).
|
6
|
+
* [#1507](https://github.com/ruby-grape/grape/pull/1507): Add group attributes for parameter definitions - [@304](https://github.com/304).
|
7
|
+
* [#1532](https://github.com/ruby-grape/grape/pull/1532): Sets 204 as default status for delete - [@LeFnord](https://github.com/LeFnord).
|
8
|
+
|
9
|
+
#### Fixes
|
10
|
+
|
11
|
+
* [#1505](https://github.com/ruby-grape/grape/pull/1505): Run `before` and `after` callbacks, but skip the rest when handling OPTIONS - [@jlfaber](https://github.com/jlfaber).
|
12
|
+
* [#1517](https://github.com/ruby-grape/grape/pull/1517), [#1089](https://github.com/ruby-grape/grape/pull/1089): Fix: priority of ANY routes - [@namusyaka](https://github.com/namusyaka), [@wagenet](https://github.com/wagenet).
|
13
|
+
* [#1512](https://github.com/ruby-grape/grape/pull/1512): Fix: deeply nested parameters are included within `#declared(params)` - [@krbs](https://github.com/krbs).
|
14
|
+
* [#1510](https://github.com/ruby-grape/grape/pull/1510): Fix: inconsistent validation for multiple parameters - [@dgasper](https://github.com/dgasper).
|
15
|
+
* [#1526](https://github.com/ruby-grape/grape/pull/1526): Reduce warnings caused by instance variables not initialized - [@cpetschnig](https://github.com/cpetschnig).
|
16
|
+
* [#1531](https://github.com/ruby-grape/grape/pull/1531): Updates gem dependencies - [@LeFnord](https://github.com/LeFnord).
|
17
|
+
|
18
|
+
### 0.18.0 (10/7/2016)
|
3
19
|
|
4
20
|
#### Features
|
5
21
|
|
@@ -16,8 +32,7 @@
|
|
16
32
|
* [#1488](https://github.com/ruby-grape/grape/pull/1488): Ensure calling before filters when receiving OPTIONS request - [@namusyaka](https://github.com/namusyaka), [@jlfaber](https://github.com/jlfaber).
|
17
33
|
* [#1493](https://github.com/ruby-grape/grape/pull/1493): Coercion and lambda fails params validation - [@jonmchan](https://github.com/jonmchan).
|
18
34
|
|
19
|
-
0.17.0 (7/29/2016)
|
20
|
-
==================
|
35
|
+
### 0.17.0 (7/29/2016)
|
21
36
|
|
22
37
|
#### Features
|
23
38
|
|
@@ -45,8 +60,7 @@
|
|
45
60
|
* [#1421](https://github.com/ruby-grape/grape/pull/1421): Avoid polluting `Grape::Middleware::Error` - [@namusyaka](https://github.com/namusyaka).
|
46
61
|
* [#1422](https://github.com/ruby-grape/grape/pull/1422): Concat parent declared params with current one - [@plukevdh](https://github.com/plukevdh), [@rnubel](https://github.com/rnubel), [@namusyaka](https://github.com/namusyaka).
|
47
62
|
|
48
|
-
0.16.2 (4/12/2016)
|
49
|
-
==================
|
63
|
+
### 0.16.2 (4/12/2016)
|
50
64
|
|
51
65
|
#### Features
|
52
66
|
|
@@ -59,8 +73,7 @@
|
|
59
73
|
* [#1359](https://github.com/ruby-grape/grape/pull/1359): Avoid evaluating the same route twice - [@namusyaka](https://github.com/namusyaka), [@dblock](https://github.com/dblock).
|
60
74
|
* [#1361](https://github.com/ruby-grape/grape/pull/1361): Return 405 correctly even if version is using as header and wrong request method - [@namusyaka](https://github.com/namusyaka), [@dblock](https://github.com/dblock).
|
61
75
|
|
62
|
-
0.16.1 (4/3/2016)
|
63
|
-
=================
|
76
|
+
### 0.16.1 (4/3/2016)
|
64
77
|
|
65
78
|
#### Features
|
66
79
|
|
@@ -75,8 +88,7 @@
|
|
75
88
|
* [#1330](https://github.com/ruby-grape/grape/pull/1330): Add `register` keyword for adding customized parsers and formatters - [@namusyaka](https://github.com/namusyaka).
|
76
89
|
* [#1336](https://github.com/ruby-grape/grape/pull/1336): Do not modify Hash argument to `error!` - [@tjwp](https://github.com/tjwp).
|
77
90
|
|
78
|
-
0.15.0 (3/8/2016)
|
79
|
-
=================
|
91
|
+
### 0.15.0 (3/8/2016)
|
80
92
|
|
81
93
|
#### Features
|
82
94
|
|
@@ -103,8 +115,7 @@
|
|
103
115
|
* [#1283](https://github.com/ruby-grape/grape/pull/1283): Fix 500 error for xml format when method is not allowed - [@304](https://github.com/304).
|
104
116
|
* [#1197](https://github.com/ruby-grape/grape/pull/1290): Fix using JSON and Array[JSON] as groups when parameter is optional - [@lukeivers](https://github.com/lukeivers).
|
105
117
|
|
106
|
-
0.14.0 (12/07/2015)
|
107
|
-
=================
|
118
|
+
### 0.14.0 (12/07/2015)
|
108
119
|
|
109
120
|
#### Features
|
110
121
|
|
@@ -131,8 +142,7 @@
|
|
131
142
|
* [#1101](https://github.com/ruby-grape/grape/pull/1101): Fix: Incorrect media-type `Accept` header now correctly returns 406 with `strict: true` - [@elliotlarson](https://github.com/elliotlarson).
|
132
143
|
* [#1108](https://github.com/ruby-grape/grape/pull/1039): Raise a warning when `desc` is called with options hash and block - [@rngtng](https://github.com/rngtng).
|
133
144
|
|
134
|
-
0.13.0 (8/10/2015)
|
135
|
-
==================
|
145
|
+
### 0.13.0 (8/10/2015)
|
136
146
|
|
137
147
|
#### Features
|
138
148
|
|
@@ -153,8 +163,7 @@
|
|
153
163
|
* [#1088](https://github.com/ruby-grape/grape/pull/1088): Support ActiveSupport 3.x by explicitly requiring `Hash#except` - [@wagenet](https://github.com/wagenet).
|
154
164
|
* [#1096](https://github.com/ruby-grape/grape/pull/1096): Fix coercion on booleans - [@towanda](https://github.com/towanda).
|
155
165
|
|
156
|
-
0.12.0 (6/18/2015)
|
157
|
-
==================
|
166
|
+
### 0.12.0 (6/18/2015)
|
158
167
|
|
159
168
|
#### Features
|
160
169
|
|
@@ -180,8 +189,7 @@
|
|
180
189
|
* [#1023](https://github.com/ruby-grape/grape/issues/1023): Fixes unexpected behavior with `present` and an object that responds to `merge` but isn't a Hash - [@dblock](https://github.com/dblock).
|
181
190
|
* [#1017](https://github.com/ruby-grape/grape/pull/1017): Fixed `undefined method stringify_keys` with nested mutual exclusive params - [@quickpay](https://github.com/quickpay).
|
182
191
|
|
183
|
-
0.11.0 (2/23/2015)
|
184
|
-
==================
|
192
|
+
### 0.11.0 (2/23/2015)
|
185
193
|
|
186
194
|
* [#925](https://github.com/ruby-grape/grape/pull/925): Fixed `toplevel constant DateTime referenced by Virtus::Attribute::DateTime` - [@u2](https://github.com/u2).
|
187
195
|
* [#916](https://github.com/ruby-grape/grape/pull/916): Added `DateTime/Date/Numeric/Boolean` type support `allow_blank` - [@u2](https://github.com/u2).
|
@@ -198,14 +206,12 @@
|
|
198
206
|
* [#913](https://github.com/ruby-grape/grape/pull/913): Fix: Invalid accept headers cause internal processing errors (500) when http_codes are defined - [@croeck](https://github.com/croeck).
|
199
207
|
* [#917](https://github.com/ruby-grape/grape/pull/917): Use HTTPS for rubygems.org - [@O-I](https://github.com/O-I).
|
200
208
|
|
201
|
-
0.10.1 (12/28/2014)
|
202
|
-
===================
|
209
|
+
### 0.10.1 (12/28/2014)
|
203
210
|
|
204
211
|
* [#868](https://github.com/ruby-grape/grape/pull/868), [#862](https://github.com/ruby-grape/grape/pull/862), [#861](https://github.com/ruby-grape/grape/pull/861): Fixed `version`, `prefix`, and other settings being overridden or changing scope when mounting API - [@yesmeck](https://github.com/yesmeck).
|
205
212
|
* [#864](https://github.com/ruby-grape/grape/pull/864): Fixed `declared(params, include_missing: false)` now returning attributes with `nil` and `false` values - [@ppadron](https://github.com/ppadron).
|
206
213
|
|
207
|
-
0.10.0 (12/19/2014)
|
208
|
-
===================
|
214
|
+
### 0.10.0 (12/19/2014)
|
209
215
|
|
210
216
|
* [#803](https://github.com/ruby-grape/grape/pull/803), [#820](https://github.com/ruby-grape/grape/pull/820): Added `all_or_none_of` parameter validator - [@loveltyoic](https://github.com/loveltyoic), [@natecj](https://github.com/natecj).
|
211
217
|
* [#774](https://github.com/ruby-grape/grape/pull/774): Extended `mutually_exclusive`, `exactly_one_of`, `at_least_one_of` to work inside any kind of group: `requires` or `optional`, `Hash` or `Array` - [@ShPakvel](https://github.com/ShPakvel).
|
@@ -228,8 +234,7 @@
|
|
228
234
|
* [#679](https://github.com/ruby-grape/grape/issues/679): Fixed `OPTIONS` method returning 404 when combined with `prefix` - [@dblock](https://github.com/dblock).
|
229
235
|
* [#679](https://github.com/ruby-grape/grape/issues/679): Fixed unsupported methods returning 404 instead of 405 when combined with `prefix` - [@dblock](https://github.com/dblock).
|
230
236
|
|
231
|
-
0.9.0 (8/27/2014)
|
232
|
-
=================
|
237
|
+
### 0.9.0 (8/27/2014)
|
233
238
|
|
234
239
|
#### Features
|
235
240
|
|
@@ -247,8 +252,7 @@
|
|
247
252
|
|
248
253
|
* [#687](https://github.com/ruby-grape/grape/pull/687): Fix: `mutually_exclusive` and `exactly_one_of` validation error messages now label parameters as strings, consistently with `requires` and `optional` - [@dblock](https://github.com/dblock).
|
249
254
|
|
250
|
-
0.8.0 (7/10/2014)
|
251
|
-
=================
|
255
|
+
### 0.8.0 (7/10/2014)
|
252
256
|
|
253
257
|
#### Features
|
254
258
|
|
@@ -268,8 +272,7 @@
|
|
268
272
|
* [#619](https://github.com/ruby-grape/grape/pull/619): Convert specs to RSpec 3 syntax with Transpec - [@danielspector](https://github.com/danielspector).
|
269
273
|
* [#632](https://github.com/ruby-grape/grape/pull/632): `Grape::Endpoint#present` causes ActiveRecord to make an extra query during entity's detection - [@fixme](https://github.com/fixme).
|
270
274
|
|
271
|
-
0.7.0 (4/2/2014)
|
272
|
-
=================
|
275
|
+
### 0.7.0 (4/2/2014)
|
273
276
|
|
274
277
|
#### Features
|
275
278
|
|
@@ -303,13 +306,12 @@
|
|
303
306
|
* [#512](https://github.com/ruby-grape/grape/pull/512): Don't create `Grape::Request` multiple times - [@dblock](https://github.com/dblock).
|
304
307
|
* [#538](https://github.com/ruby-grape/grape/pull/538): Fixed default values for grouped params - [@dm1try](https://github.com/dm1try).
|
305
308
|
* [#549](https://github.com/ruby-grape/grape/pull/549): Fixed handling of invalid version headers to return 406 if a header cannot be parsed - [@bwalex](https://github.com/bwalex).
|
306
|
-
* [#557](https://github.com/ruby-grape/grape/pull/557): Pass `content_types` option to `Grape::Middleware::Error` to fix the content-type header for custom formats
|
309
|
+
* [#557](https://github.com/ruby-grape/grape/pull/557): Pass `content_types` option to `Grape::Middleware::Error` to fix the content-type header for custom formats - [@bernd](https://github.com/bernd).
|
307
310
|
* [#585](https://github.com/ruby-grape/grape/pull/585): Fix after boot thread-safety issue - [@etehtsea](https://github.com/etehtsea).
|
308
311
|
* [#587](https://github.com/ruby-grape/grape/pull/587): Fix oauth2 middleware compatibility with [draft-ietf-oauth-v2-31](http://tools.ietf.org/html/draft-ietf-oauth-v2-31) spec - [@etehtsea](https://github.com/etehtsea).
|
309
312
|
* [#610](https://github.com/ruby-grape/grape/pull/610): Fixed group keyword was not working with type parameter - [@klausmeyer](https://github.com/klausmeyer).
|
310
313
|
|
311
|
-
0.6.1 (10/19/2013)
|
312
|
-
==================
|
314
|
+
### 0.6.1 (10/19/2013)
|
313
315
|
|
314
316
|
#### Features
|
315
317
|
|
@@ -325,8 +327,7 @@
|
|
325
327
|
|
326
328
|
* Implemented Rubocop, a Ruby code static code analyzer - [@dblock](https://github.com/dblock).
|
327
329
|
|
328
|
-
0.6.0 (9/16/2013)
|
329
|
-
=================
|
330
|
+
### 0.6.0 (9/16/2013)
|
330
331
|
|
331
332
|
#### Features
|
332
333
|
|
@@ -344,8 +345,7 @@
|
|
344
345
|
|
345
346
|
* [#428](https://github.com/ruby-grape/grape/issues/428): Removes memoization from `Grape::Request` params to prevent middleware from freezing parameter values before `Formatter` can get them - [@mbleigh](https://github.com/mbleigh).
|
346
347
|
|
347
|
-
0.5.0 (6/14/2013)
|
348
|
-
=================
|
348
|
+
### 0.5.0 (6/14/2013)
|
349
349
|
|
350
350
|
#### Features
|
351
351
|
|
@@ -371,13 +371,11 @@
|
|
371
371
|
* [#423](https://github.com/ruby-grape/grape/pull/423): Fix: `Grape::Endpoint#declared` now correctly handles nested params (ie. declared with `group`) - [@jbarreneche](https://github.com/jbarreneche).
|
372
372
|
* [#427](https://github.com/ruby-grape/grape/issues/427): Fix: `declared(params)` breaks when `params` contains array - [@timhabermaas](https://github.com/timhabermaas).
|
373
373
|
|
374
|
-
0.4.1 (4/1/2013)
|
375
|
-
================
|
374
|
+
### 0.4.1 (4/1/2013)
|
376
375
|
|
377
376
|
* [#375](https://github.com/ruby-grape/grape/pull/375): Fix: throwing an `:error` inside a middleware doesn't respect the `format` settings - [@dblock](https://github.com/dblock).
|
378
377
|
|
379
|
-
0.4.0 (3/17/2013)
|
380
|
-
=================
|
378
|
+
### 0.4.0 (3/17/2013)
|
381
379
|
|
382
380
|
* [#356](https://github.com/ruby-grape/grape/pull/356): Fix: presenting collections other than `Array` (eg. `ActiveRecord::Relation`) - [@zimbatm](https://github.com/zimbatm).
|
383
381
|
* [#352](https://github.com/ruby-grape/grape/pull/352): Fix: using `Rack::JSONP` with `Grape::Entity` responses - [@deckchair](https://github.com/deckchair).
|
@@ -391,18 +389,15 @@
|
|
391
389
|
* [#353](https://github.com/ruby-grape/grape/issues/353): Revert to standard Ruby logger formatter, `require active_support/all` if you want old behavior - [@rhunter](https://github.com/rhunter), [@dblock](https://github.com/dblock).
|
392
390
|
* Fix: `undefined method 'call' for nil:NilClass` for an API method implementation without a block, now returns an empty string - [@dblock](https://github.com/dblock).
|
393
391
|
|
394
|
-
0.3.2 (2/28/2013)
|
395
|
-
=================
|
392
|
+
### 0.3.2 (2/28/2013)
|
396
393
|
|
397
394
|
* [#355](https://github.com/ruby-grape/grape/issues/355): Relax dependency constraint on Hashie - [@reset](https://github.com/reset).
|
398
395
|
|
399
|
-
0.3.1 (2/25/2013)
|
400
|
-
=================
|
396
|
+
### 0.3.1 (2/25/2013)
|
401
397
|
|
402
398
|
* [#351](https://github.com/ruby-grape/grape/issues/351): Compatibility with Ruby 2.0 - [@mbleigh](https://github.com/mbleigh).
|
403
399
|
|
404
|
-
0.3.0 (02/21/2013)
|
405
|
-
==================
|
400
|
+
### 0.3.0 (02/21/2013)
|
406
401
|
|
407
402
|
* [#294](https://github.com/ruby-grape/grape/issues/294): Extracted `Grape::Entity` into a [grape-entity](https://github.com/agileanimal/grape-entity) gem - [@agileanimal](https://github.com/agileanimal).
|
408
403
|
* [#340](https://github.com/ruby-grape/grape/pull/339), [#342](https://github.com/ruby-grape/grape/pull/342): Added `:cascade` option to `version` to allow disabling of rack/mount cascade behavior - [@dieb](https://github.com/dieb).
|
@@ -421,14 +416,12 @@
|
|
421
416
|
* [#60](https://github.com/ruby-grape/grape/issues/60): Fix: mounting of a Grape API onto a path - [@dblock](https://github.com/dblock).
|
422
417
|
* [#335](https://github.com/ruby-grape/grape/pull/335): Fix: request body parameters from a `PATCH` request not available in `params` - [@FreakenK](https://github.com/FreakenK).
|
423
418
|
|
424
|
-
0.2.6 (01/11/2013)
|
425
|
-
==================
|
419
|
+
### 0.2.6 (01/11/2013)
|
426
420
|
|
427
421
|
* Fix: support content-type with character set when parsing POST and PUT input - [@dblock](https://github.com/dblock).
|
428
422
|
* Fix: CVE-2013-0175, multi_xml parse vulnerability, require multi_xml 0.5.2 - [@dblock](https://github.com/dblock).
|
429
423
|
|
430
|
-
0.2.5 (01/10/2013)
|
431
|
-
==================
|
424
|
+
### 0.2.5 (01/10/2013)
|
432
425
|
|
433
426
|
* Added support for custom parsers via `parser`, in addition to built-in multipart, JSON and XML parsers - [@dblock](https://github.com/dblock).
|
434
427
|
* Removed `body_params`, data sent via a POST or PUT with a supported content-type is merged into `params` - [@dblock](https://github.com/dblock).
|
@@ -437,8 +430,7 @@
|
|
437
430
|
* [#305](https://github.com/ruby-grape/grape/issues/305): Fix: presenting arrays of objects via `represent` or when auto-detecting an `Entity` constant in the objects being presented - [@brandonweiss](https://github.com/brandonweiss).
|
438
431
|
* [#306](https://github.com/ruby-grape/grape/issues/306): Added i18n support for validation error messages - [@niedhui](https://github.com/niedhui).
|
439
432
|
|
440
|
-
0.2.4 (01/06/2013)
|
441
|
-
==================
|
433
|
+
### 0.2.4 (01/06/2013)
|
442
434
|
|
443
435
|
* [#297](https://github.com/ruby-grape/grape/issues/297): Added `default_error_formatter` - [@dblock](https://github.com/dblock).
|
444
436
|
* [#297](https://github.com/ruby-grape/grape/issues/297): Setting `format` will automatically set `default_error_formatter` - [@dblock](https://github.com/dblock).
|
@@ -456,8 +448,7 @@
|
|
456
448
|
* [#304](https://github.com/ruby-grape/grape/issues/304): Fix: `present x, :with => Entity` returns class references with `format :json` - [@dblock](https://github.com/dblock).
|
457
449
|
* [#196](https://github.com/ruby-grape/grape/issues/196): Fix: root requests don't work with `prefix` - [@dblock](https://github.com/dblock).
|
458
450
|
|
459
|
-
0.2.3 (24/12/2012)
|
460
|
-
==================
|
451
|
+
### 0.2.3 (24/12/2012)
|
461
452
|
|
462
453
|
* [#179](https://github.com/ruby-grape/grape/issues/178): Using `content_type` will remove all default content-types - [@dblock](https://github.com/dblock).
|
463
454
|
* [#265](https://github.com/ruby-grape/grape/issues/264): Fix: Moved `ValidationError` into `Grape::Exceptions` - [@thepumpkin1979](https://github.com/thepumpkin1979).
|
@@ -470,8 +461,7 @@
|
|
470
461
|
* [#290](https://github.com/ruby-grape/grape/pull/290): The default error format for XML is now `error/message` instead of `hash/error` - [@dpsk](https://github.com/dpsk).
|
471
462
|
* [#44](https://github.com/ruby-grape/grape/issues/44): Pass `env` into formatters to enable templating - [@dblock](https://github.com/dblock).
|
472
463
|
|
473
|
-
0.2.2
|
474
|
-
=====
|
464
|
+
### 0.2.2 (12/10/2012)
|
475
465
|
|
476
466
|
#### Features
|
477
467
|
|
@@ -493,8 +483,7 @@
|
|
493
483
|
* [#208](https://github.com/ruby-grape/grape/pull/208): `Entity#serializable_hash` must also check if attribute is generated by a user supplied block - [@ppadron](https://github.com/ppadron).
|
494
484
|
* [#252](https://github.com/ruby-grape/grape/pull/252): Resources that don't respond to a requested HTTP method return 405 (Method Not Allowed) instead of 404 (Not Found) - [@simulacre](https://github.com/simulacre).
|
495
485
|
|
496
|
-
0.2.1 (7/11/2012)
|
497
|
-
=================
|
486
|
+
### 0.2.1 (7/11/2012)
|
498
487
|
|
499
488
|
* [#186](https://github.com/ruby-grape/grape/issues/186): Fix: helpers allow multiple calls with modules and blocks - [@ppadron](https://github.com/ppadron).
|
500
489
|
* [#188](https://github.com/ruby-grape/grape/pull/188): Fix: multi-method routes append '(.:format)' only once - [@kainosnoema](https://github.com/kainosnoema).
|
@@ -509,8 +498,7 @@
|
|
509
498
|
* [#189](https://github.com/ruby-grape/grape/pull/189): `HEAD` requests no longer return a body - [@stephencelis](https://github.com/stephencelis).
|
510
499
|
* [#97](https://github.com/ruby-grape/grape/issues/97): Allow overriding `Content-Type` - [@dblock](https://github.com/dblock).
|
511
500
|
|
512
|
-
0.2.0 (3/28/2012)
|
513
|
-
=================
|
501
|
+
### 0.2.0 (3/28/2012)
|
514
502
|
|
515
503
|
* Added support for inheriting exposures from entities - [@bobbytables](https://github.com/bobbytables).
|
516
504
|
* Extended formatting with `default_format` - [@dblock](https://github.com/dblock).
|
@@ -530,33 +518,28 @@
|
|
530
518
|
* Added support for before and after filters - [@mbleigh](https://github.com/mbleigh).
|
531
519
|
* Extended `rescue_from`, which can now take a block - [@dblock](https://github.com/dblock).
|
532
520
|
|
533
|
-
0.1.5 (6/14/2011)
|
534
|
-
==================
|
521
|
+
### 0.1.5 (6/14/2011)
|
535
522
|
|
536
523
|
* Extended exception handling to all exceptions - [@dblock](https://github.com/dblock).
|
537
524
|
* Added support for returning JSON objects from within error blocks - [@dblock](https://github.com/dblock).
|
538
525
|
* Added support for handling incoming JSON in body - [@tedkulp](https://github.com/tedkulp).
|
539
526
|
* Added support for HTTP digest authentication - [@daddz](https://github.com/daddz).
|
540
527
|
|
541
|
-
0.1.4 (4/8/2011)
|
542
|
-
==================
|
528
|
+
### 0.1.4 (4/8/2011)
|
543
529
|
|
544
530
|
* Allow multiple definitions of the same endpoint under multiple versions - [@chrisrhoden](https://github.com/chrisrhoden).
|
545
531
|
* Added support for multipart URL parameters - [@mcastilho](https://github.com/mcastilho).
|
546
532
|
* Added support for custom formatters - [@spraints](https://github.com/spraints).
|
547
533
|
|
548
|
-
0.1.3 (1/10/2011)
|
549
|
-
==================
|
534
|
+
### 0.1.3 (1/10/2011)
|
550
535
|
|
551
536
|
* Added support for JSON format in route matching - [@aiwilliams](https://github.com/aiwilliams).
|
552
537
|
* Added suport for custom middleware - [@mbleigh](https://github.com/mbleigh).
|
553
538
|
|
554
|
-
0.1.1 (11/14/2010)
|
555
|
-
==================
|
539
|
+
### 0.1.1 (11/14/2010)
|
556
540
|
|
557
541
|
* Endpoints properly reset between each request - [@mbleigh](https://github.com/mbleigh).
|
558
542
|
|
559
|
-
0.1.0 (11/13/2010)
|
560
|
-
==================
|
543
|
+
### 0.1.0 (11/13/2010)
|
561
544
|
|
562
545
|
* Initial public release - [@mbleigh](https://github.com/mbleigh).
|
data/Gemfile
CHANGED
@@ -7,7 +7,7 @@ gemspec
|
|
7
7
|
group :development, :test do
|
8
8
|
gem 'bundler'
|
9
9
|
gem 'rake'
|
10
|
-
gem 'rubocop', '0.
|
10
|
+
gem 'rubocop', '~> 0.45'
|
11
11
|
end
|
12
12
|
|
13
13
|
group :development do
|
@@ -21,12 +21,12 @@ group :development do
|
|
21
21
|
end
|
22
22
|
|
23
23
|
group :test do
|
24
|
-
gem 'grape-entity', '0.
|
24
|
+
gem 'grape-entity', '~> 0.6'
|
25
25
|
gem 'maruku'
|
26
26
|
gem 'rack-test'
|
27
27
|
gem 'rspec', '~> 3.0'
|
28
28
|
gem 'cookiejar'
|
29
29
|
gem 'rack-jsonp', require: 'rack/jsonp'
|
30
|
-
gem 'mime-types', '
|
30
|
+
gem 'mime-types', '~> 3.0'
|
31
31
|
gem 'ruby-grape-danger', '~> 0.1.0', require: false
|
32
32
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
grape (0.
|
4
|
+
grape (0.19.0)
|
5
5
|
activesupport
|
6
6
|
builder
|
7
7
|
hashie (>= 2.1.0)
|
@@ -20,7 +20,8 @@ GEM
|
|
20
20
|
i18n (~> 0.7)
|
21
21
|
minitest (~> 5.1)
|
22
22
|
tzinfo (~> 1.1)
|
23
|
-
addressable (2.
|
23
|
+
addressable (2.5.0)
|
24
|
+
public_suffix (~> 2.0, >= 2.0.2)
|
24
25
|
appraisal (2.1.0)
|
25
26
|
bundler
|
26
27
|
rake
|
@@ -32,7 +33,7 @@ GEM
|
|
32
33
|
thread_safe (~> 0.3, >= 0.3.1)
|
33
34
|
benchmark-ips (2.7.2)
|
34
35
|
builder (3.2.2)
|
35
|
-
claide (1.0.
|
36
|
+
claide (1.0.1)
|
36
37
|
claide-plugins (0.9.2)
|
37
38
|
cork
|
38
39
|
nap
|
@@ -41,23 +42,22 @@ GEM
|
|
41
42
|
coercible (1.0.0)
|
42
43
|
descendants_tracker (~> 0.0.1)
|
43
44
|
colored (1.2)
|
44
|
-
concurrent-ruby (1.0.
|
45
|
+
concurrent-ruby (1.0.3)
|
45
46
|
cookiejar (0.3.3)
|
46
47
|
cork (0.2.0)
|
47
48
|
colored (~> 1.2)
|
48
|
-
danger (
|
49
|
+
danger (4.0.3)
|
49
50
|
claide (~> 1.0)
|
50
|
-
claide-plugins (
|
51
|
+
claide-plugins (>= 0.9.2)
|
51
52
|
colored (~> 1.2)
|
52
53
|
cork (~> 0.1)
|
53
54
|
faraday (~> 0.9)
|
54
55
|
faraday-http-cache (~> 1.0)
|
55
56
|
git (~> 1)
|
56
|
-
gitlab (~> 3.7.0)
|
57
57
|
kramdown (~> 1.5)
|
58
58
|
octokit (~> 4.2)
|
59
59
|
terminal-table (~> 1)
|
60
|
-
danger-changelog (0.1
|
60
|
+
danger-changelog (0.2.1)
|
61
61
|
danger-plugin-api (~> 1.0)
|
62
62
|
danger-plugin-api (1.0.0)
|
63
63
|
danger (> 2.0)
|
@@ -65,17 +65,14 @@ GEM
|
|
65
65
|
thread_safe (~> 0.3, >= 0.3.1)
|
66
66
|
diff-lcs (1.2.5)
|
67
67
|
equalizer (0.0.11)
|
68
|
-
faraday (0.
|
68
|
+
faraday (0.10.0)
|
69
69
|
multipart-post (>= 1.2, < 3)
|
70
70
|
faraday-http-cache (1.3.1)
|
71
71
|
faraday (~> 0.8)
|
72
72
|
ffi (1.9.14)
|
73
73
|
formatador (0.2.5)
|
74
74
|
git (1.3.0)
|
75
|
-
|
76
|
-
httparty (~> 0.13.0)
|
77
|
-
terminal-table
|
78
|
-
grape-entity (0.5.0)
|
75
|
+
grape-entity (0.6.0)
|
79
76
|
activesupport
|
80
77
|
multi_json (>= 1.3.2)
|
81
78
|
guard (2.14.0)
|
@@ -96,13 +93,9 @@ GEM
|
|
96
93
|
guard (~> 2.0)
|
97
94
|
rubocop (~> 0.20)
|
98
95
|
hashie (3.4.6)
|
99
|
-
httparty (0.13.7)
|
100
|
-
json (~> 1.8)
|
101
|
-
multi_xml (>= 0.5.2)
|
102
96
|
i18n (0.7.0)
|
103
97
|
ice_nine (0.11.2)
|
104
|
-
|
105
|
-
kramdown (1.12.0)
|
98
|
+
kramdown (1.13.1)
|
106
99
|
listen (3.1.5)
|
107
100
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
108
101
|
rb-inotify (~> 0.9, >= 0.9.7)
|
@@ -110,10 +103,12 @@ GEM
|
|
110
103
|
lumberjack (1.0.10)
|
111
104
|
maruku (0.7.2)
|
112
105
|
method_source (0.8.2)
|
113
|
-
mime-types (
|
114
|
-
|
106
|
+
mime-types (3.1)
|
107
|
+
mime-types-data (~> 3.2015)
|
108
|
+
mime-types-data (3.2016.0521)
|
109
|
+
minitest (5.10.1)
|
115
110
|
multi_json (1.12.1)
|
116
|
-
multi_xml (0.
|
111
|
+
multi_xml (0.6.0)
|
117
112
|
multipart-post (2.0.0)
|
118
113
|
mustermann (0.4.0)
|
119
114
|
tool (~> 0.2)
|
@@ -124,16 +119,17 @@ GEM
|
|
124
119
|
notiffany (0.1.1)
|
125
120
|
nenv (~> 0.1)
|
126
121
|
shellany (~> 0.0)
|
127
|
-
octokit (4.
|
128
|
-
sawyer (~> 0.
|
122
|
+
octokit (4.6.2)
|
123
|
+
sawyer (~> 0.8.0, >= 0.5.3)
|
129
124
|
open4 (1.3.4)
|
130
|
-
parser (2.3.1
|
125
|
+
parser (2.3.3.1)
|
131
126
|
ast (~> 2.2)
|
132
127
|
powerpack (0.1.1)
|
133
128
|
pry (0.10.4)
|
134
129
|
coderay (~> 1.1.0)
|
135
130
|
method_source (~> 0.8.1)
|
136
131
|
slop (~> 3.4)
|
132
|
+
public_suffix (2.0.4)
|
137
133
|
rack (2.0.1)
|
138
134
|
rack-accept (0.4.5)
|
139
135
|
rack (>= 0.4)
|
@@ -142,8 +138,8 @@ GEM
|
|
142
138
|
rack-test (0.6.3)
|
143
139
|
rack (>= 1.0)
|
144
140
|
rainbow (2.1.0)
|
145
|
-
rake (
|
146
|
-
rb-fsevent (0.9.
|
141
|
+
rake (12.0.0)
|
142
|
+
rb-fsevent (0.9.8)
|
147
143
|
rb-inotify (0.9.7)
|
148
144
|
ffi (>= 0.5.0)
|
149
145
|
redcarpet (3.3.4)
|
@@ -160,30 +156,30 @@ GEM
|
|
160
156
|
diff-lcs (>= 1.2.0, < 2.0)
|
161
157
|
rspec-support (~> 3.5.0)
|
162
158
|
rspec-support (3.5.0)
|
163
|
-
rubocop (0.
|
164
|
-
parser (>= 2.3.
|
159
|
+
rubocop (0.46.0)
|
160
|
+
parser (>= 2.3.1.1, < 3.0)
|
165
161
|
powerpack (~> 0.1)
|
166
162
|
rainbow (>= 1.99.1, < 3.0)
|
167
163
|
ruby-progressbar (~> 1.7)
|
168
164
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
169
|
-
ruby-grape-danger (0.1.
|
170
|
-
danger (~>
|
171
|
-
danger-changelog (~> 0.
|
165
|
+
ruby-grape-danger (0.1.1)
|
166
|
+
danger (~> 4.0.1)
|
167
|
+
danger-changelog (~> 0.2.0)
|
172
168
|
ruby-progressbar (1.8.1)
|
173
|
-
ruby_dep (1.
|
174
|
-
sawyer (0.
|
175
|
-
addressable (>= 2.3.5, < 2.
|
176
|
-
faraday (~> 0.8, < 0
|
169
|
+
ruby_dep (1.5.0)
|
170
|
+
sawyer (0.8.1)
|
171
|
+
addressable (>= 2.3.5, < 2.6)
|
172
|
+
faraday (~> 0.8, < 1.0)
|
177
173
|
shellany (0.0.1)
|
178
174
|
slop (3.6.0)
|
179
175
|
terminal-table (1.7.3)
|
180
176
|
unicode-display_width (~> 1.1.1)
|
181
|
-
thor (0.19.
|
177
|
+
thor (0.19.4)
|
182
178
|
thread_safe (0.3.5)
|
183
179
|
tool (0.2.3)
|
184
180
|
tzinfo (1.2.2)
|
185
181
|
thread_safe (~> 0.1)
|
186
|
-
unicode-display_width (1.1.
|
182
|
+
unicode-display_width (1.1.2)
|
187
183
|
virtus (1.0.5)
|
188
184
|
axiom-types (~> 0.1)
|
189
185
|
coercible (~> 1.0)
|
@@ -200,20 +196,20 @@ DEPENDENCIES
|
|
200
196
|
bundler
|
201
197
|
cookiejar
|
202
198
|
grape!
|
203
|
-
grape-entity (
|
199
|
+
grape-entity (~> 0.6)
|
204
200
|
guard
|
205
201
|
guard-rspec
|
206
202
|
guard-rubocop
|
207
203
|
maruku
|
208
|
-
mime-types (
|
204
|
+
mime-types (~> 3.0)
|
209
205
|
rack-jsonp
|
210
206
|
rack-test
|
211
207
|
rake
|
212
208
|
redcarpet
|
213
209
|
rspec (~> 3.0)
|
214
|
-
rubocop (
|
210
|
+
rubocop (~> 0.45)
|
215
211
|
ruby-grape-danger (~> 0.1.0)
|
216
212
|
yard
|
217
213
|
|
218
214
|
BUNDLED WITH
|
219
|
-
1.
|
215
|
+
1.13.6
|