grape 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +49 -50
- data/Gemfile.lock +45 -45
- data/README.md +1 -2
- data/RELEASING.md +1 -1
- data/lib/grape/api.rb +16 -3
- data/lib/grape/api/instance.rb +1 -1
- data/lib/grape/dsl/desc.rb +8 -5
- data/lib/grape/middleware/stack.rb +1 -1
- data/lib/grape/middleware/versioner/header.rb +2 -2
- data/lib/grape/router/attribute_translator.rb +2 -0
- data/lib/grape/router/route.rb +2 -2
- data/lib/grape/validations/types/custom_type_coercer.rb +1 -1
- data/lib/grape/version.rb +1 -1
- data/pkg/grape-0.19.1.gem +0 -0
- data/pkg/grape-1.0.1.gem +0 -0
- data/pkg/grape-1.0.2.gem +0 -0
- data/spec/grape/api_spec.rb +27 -0
- data/spec/grape/dsl/desc_spec.rb +25 -17
- data/spec/grape/middleware/formatter_spec.rb +4 -4
- data/spec/grape/validations_spec.rb +1 -1
- metadata +92 -94
- data/gemfiles/rack_1.5.2.gemfile.lock +0 -232
- data/gemfiles/rails_3.gemfile.lock +0 -288
- data/gemfiles/rails_4.gemfile.lock +0 -280
- data/gemfiles/rails_5.gemfile.lock +0 -312
- data/pkg/grape-1.2.0.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e0d51b90a483fbd78c7a96d3fa4645b0fe2246821655a2a3920baa82adf7af0
|
4
|
+
data.tar.gz: b86ccf611dfd81d71637dd48813853cdc2602aa75ab280bd7263ed4e6299ef6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7b23ec762dd8d5ae479f44ea74e86557e768fdce2ff7563c7f43169d9cc13418cbe06f4348543dfd611923358f5ffaf5ee1bb51aa9e34d074304013c1c271ea
|
7
|
+
data.tar.gz: b5f3a39921925fea96ddf0c2302d99243dc16d0160132dd0f575de663855c6053f67ec66238587baae11724204cb91a7668b67bcb04b903cdff665397f48f10f
|
data/CHANGELOG.md
CHANGED
@@ -1,23 +1,22 @@
|
|
1
|
-
### 1.2.2 (
|
1
|
+
### 1.2.2 (2018/12/07)
|
2
2
|
|
3
3
|
#### Features
|
4
4
|
|
5
|
-
*
|
5
|
+
* [#1832](https://github.com/ruby-grape/grape/pull/1832): Support `body_name` in `desc` block - [@fotos](https://github.com/fotos).
|
6
|
+
* [#1831](https://github.com/ruby-grape/grape/pull/1831): Support `security` in `desc` block - [@fotos](https://github.com/fotos).
|
6
7
|
|
7
8
|
#### Fixes
|
8
9
|
|
9
|
-
*
|
10
|
-
|
11
|
-
### 1.2.1 (11/28/2018)
|
12
|
-
|
13
|
-
#### Features
|
10
|
+
* [#1836](https://github.com/ruby-grape/grape/pull/1836): Fix: memory leak not releasing `call` method calls from setup - [@myxoh](https://github.com/myxoh).
|
11
|
+
* [#1830](https://github.com/ruby-grape/grape/pull/1830), [#1829](https://github.com/ruby-grape/grape/issues/1829): Restores `self` sanity - [@myxoh](https://github.com/myxoh).
|
14
12
|
|
13
|
+
### 1.2.1 (2018/11/28)
|
15
14
|
|
16
15
|
#### Fixes
|
17
16
|
|
18
17
|
* [#1825](https://github.com/ruby-grape/grape/pull/1825): `to_s` on a mounted class now responses with the API name - [@myxoh](https://github.com/myxoh).
|
19
18
|
|
20
|
-
### 1.2.0 (11/26
|
19
|
+
### 1.2.0 (2018/11/26)
|
21
20
|
|
22
21
|
#### Features
|
23
22
|
|
@@ -36,7 +35,7 @@
|
|
36
35
|
* [#1811](https://github.com/ruby-grape/grape/pull/1811): Support nested dependent parameters - [@darren987469](https://github.com/darren987469), [@andreacfm](https://github.com/andreacfm).
|
37
36
|
* [#1822](https://github.com/ruby-grape/grape/pull/1822): Raise validation error when optional hash type parameter is received string type value and exactly_one_of be used - [@woshidan](https://github.com/woshidan).
|
38
37
|
|
39
|
-
### 1.1.0 (8/4
|
38
|
+
### 1.1.0 (2018/8/4)
|
40
39
|
|
41
40
|
#### Features
|
42
41
|
|
@@ -50,7 +49,7 @@
|
|
50
49
|
* [#1765](https://github.com/ruby-grape/grape/pull/1765): Use 415 when request body is of an unsupported media type - [@jdmurphy](https://github.com/jdmurphy).
|
51
50
|
* [#1771](https://github.com/ruby-grape/grape/pull/1771): Fix param aliases with 'given' blocks - [@jereynolds](https://github.com/jereynolds).
|
52
51
|
|
53
|
-
### 1.0.3 (4/23
|
52
|
+
### 1.0.3 (2018/4/23)
|
54
53
|
|
55
54
|
#### Fixes
|
56
55
|
|
@@ -63,7 +62,7 @@
|
|
63
62
|
* [#1754](https://github.com/ruby-grape/grape/pull/1754): Allow rescue from non-`StandardError` exceptions to use default error handling - [@jelkster](https://github.com/jelkster).
|
64
63
|
* [#1756](https://github.com/ruby-grape/grape/pull/1756): Allow custom Grape exception handlers when the built-in exception handling is enabled - [@soylent](https://github.com/soylent).
|
65
64
|
|
66
|
-
### 1.0.2 (1/10
|
65
|
+
### 1.0.2 (2018/1/10)
|
67
66
|
|
68
67
|
#### Features
|
69
68
|
|
@@ -81,7 +80,7 @@
|
|
81
80
|
* [#1726](https://github.com/ruby-grape/grape/pull/1726): Improved startup performance during API method generation - [@jkowens](https://github.com/jkowens).
|
82
81
|
* [#1727](https://github.com/ruby-grape/grape/pull/1727): Fix infinite loop when mounting endpoint with same superclass - [@jkowens](https://github.com/jkowens).
|
83
82
|
|
84
|
-
### 1.0.1 (9/8
|
83
|
+
### 1.0.1 (2017/9/8)
|
85
84
|
|
86
85
|
#### Features
|
87
86
|
|
@@ -95,7 +94,7 @@
|
|
95
94
|
* [#1661](https://github.com/ruby-grape/grape/pull/1661): Handle deeply-nested dependencies correctly - [@rnubel](https://github.com/rnubel), [@jnardone](https://github.com/jnardone).
|
96
95
|
* [#1679](https://github.com/ruby-grape/grape/pull/1679): Treat StandardError from explicit values validator proc as false - [@jlfaber](https://github.com/jlfaber).
|
97
96
|
|
98
|
-
### 1.0.0 (7/3
|
97
|
+
### 1.0.0 (2017/7/3)
|
99
98
|
|
100
99
|
#### Features
|
101
100
|
|
@@ -114,7 +113,7 @@
|
|
114
113
|
* [#1625](https://github.com/ruby-grape/grape/pull/1625): Handle `given` correctly when nested in Array params - [@rnubel](https://github.com/rnubel), [@avellable](https://github.com/avellable).
|
115
114
|
* [#1649](https://github.com/ruby-grape/grape/pull/1649): Don't share validator instances between requests - [@anakinj](https://github.com/anakinj).
|
116
115
|
|
117
|
-
### 0.19.2 (4/12
|
116
|
+
### 0.19.2 (2017/4/12)
|
118
117
|
|
119
118
|
#### Features
|
120
119
|
|
@@ -135,7 +134,7 @@
|
|
135
134
|
* [#1569](https://github.com/ruby-grape/grape/pull/1569), [#1511](https://github.com/ruby-grape/grape/issues/1511): Upgrade mustermann-grape to 1.0.0 - [@namusyaka](https://github.com/namusyaka).
|
136
135
|
* [#1589](https://github.com/ruby-grape/grape/pull/1589): [#726](https://github.com/ruby-grape/grape/issues/726): Use default_format when Content-type is missing and respond with 406 when Content-type is invalid - [@inclooder](https://github.com/inclooder).
|
137
136
|
|
138
|
-
### 0.19.1 (1/9
|
137
|
+
### 0.19.1 (2017/1/9)
|
139
138
|
|
140
139
|
#### Features
|
141
140
|
|
@@ -147,7 +146,7 @@
|
|
147
146
|
* [#1548](https://github.com/ruby-grape/grape/pull/1548): Fix: avoid failing even if given path does not match with prefix - [@thomas-peyric](https://github.com/thomas-peyric), [@namusyaka](https://github.com/namusyaka).
|
148
147
|
* [#1550](https://github.com/ruby-grape/grape/pull/1550): Fix: return 200 as default status for DELETE - [@jthornec](https://github.com/jthornec).
|
149
148
|
|
150
|
-
### 0.19.0 (12/18
|
149
|
+
### 0.19.0 (2016/12/18)
|
151
150
|
|
152
151
|
#### Features
|
153
152
|
|
@@ -163,7 +162,7 @@
|
|
163
162
|
* [#1510](https://github.com/ruby-grape/grape/pull/1510): Fix: inconsistent validation for multiple parameters - [@dgasper](https://github.com/dgasper).
|
164
163
|
* [#1526](https://github.com/ruby-grape/grape/pull/1526): Reduced warnings caused by instance variables not initialized - [@cpetschnig](https://github.com/cpetschnig).
|
165
164
|
|
166
|
-
### 0.18.0 (10/7
|
165
|
+
### 0.18.0 (2016/10/7)
|
167
166
|
|
168
167
|
#### Features
|
169
168
|
|
@@ -180,7 +179,7 @@
|
|
180
179
|
* [#1488](https://github.com/ruby-grape/grape/pull/1488): Fix: ensure calling before filters when receiving OPTIONS request - [@namusyaka](https://github.com/namusyaka), [@jlfaber](https://github.com/jlfaber).
|
181
180
|
* [#1493](https://github.com/ruby-grape/grape/pull/1493): Fix: coercion and lambda fails params validation - [@jonmchan](https://github.com/jonmchan).
|
182
181
|
|
183
|
-
### 0.17.0 (7/29
|
182
|
+
### 0.17.0 (2016/7/29)
|
184
183
|
|
185
184
|
#### Features
|
186
185
|
|
@@ -207,7 +206,7 @@
|
|
207
206
|
* [#1421](https://github.com/ruby-grape/grape/pull/1421): Avoid polluting `Grape::Middleware::Error` - [@namusyaka](https://github.com/namusyaka).
|
208
207
|
* [#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).
|
209
208
|
|
210
|
-
### 0.16.2 (4/12
|
209
|
+
### 0.16.2 (2016/4/12)
|
211
210
|
|
212
211
|
#### Features
|
213
212
|
|
@@ -220,7 +219,7 @@
|
|
220
219
|
* [#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).
|
221
220
|
* [#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).
|
222
221
|
|
223
|
-
### 0.16.1 (4/3
|
222
|
+
### 0.16.1 (2016/4/3)
|
224
223
|
|
225
224
|
#### Features
|
226
225
|
|
@@ -235,7 +234,7 @@
|
|
235
234
|
* [#1330](https://github.com/ruby-grape/grape/pull/1330): Add `register` keyword for adding customized parsers and formatters - [@namusyaka](https://github.com/namusyaka).
|
236
235
|
* [#1336](https://github.com/ruby-grape/grape/pull/1336): Do not modify Hash argument to `error!` - [@tjwp](https://github.com/tjwp).
|
237
236
|
|
238
|
-
### 0.15.0 (3/8
|
237
|
+
### 0.15.0 (2016/3/8)
|
239
238
|
|
240
239
|
#### Features
|
241
240
|
|
@@ -262,7 +261,7 @@
|
|
262
261
|
* [#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).
|
263
262
|
* [#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).
|
264
263
|
|
265
|
-
### 0.14.0 (12/07
|
264
|
+
### 0.14.0 (2015/12/07)
|
266
265
|
|
267
266
|
#### Features
|
268
267
|
|
@@ -289,7 +288,7 @@
|
|
289
288
|
* [#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).
|
290
289
|
* [#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).
|
291
290
|
|
292
|
-
### 0.13.0 (8/10
|
291
|
+
### 0.13.0 (2015/8/10)
|
293
292
|
|
294
293
|
#### Features
|
295
294
|
|
@@ -310,7 +309,7 @@
|
|
310
309
|
* [#1088](https://github.com/ruby-grape/grape/pull/1088): Support ActiveSupport 3.x by explicitly requiring `Hash#except` - [@wagenet](https://github.com/wagenet).
|
311
310
|
* [#1096](https://github.com/ruby-grape/grape/pull/1096): Fix coercion on booleans - [@towanda](https://github.com/towanda).
|
312
311
|
|
313
|
-
### 0.12.0 (6/18
|
312
|
+
### 0.12.0 (2015/6/18)
|
314
313
|
|
315
314
|
#### Features
|
316
315
|
|
@@ -336,7 +335,7 @@
|
|
336
335
|
* [#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).
|
337
336
|
* [#1017](https://github.com/ruby-grape/grape/pull/1017): Fixed `undefined method stringify_keys` with nested mutual exclusive params - [@quickpay](https://github.com/quickpay).
|
338
337
|
|
339
|
-
### 0.11.0 (2/23
|
338
|
+
### 0.11.0 (2015/2/23)
|
340
339
|
|
341
340
|
* [#925](https://github.com/ruby-grape/grape/pull/925): Fixed `toplevel constant DateTime referenced by Virtus::Attribute::DateTime` - [@u2](https://github.com/u2).
|
342
341
|
* [#916](https://github.com/ruby-grape/grape/pull/916): Added `DateTime/Date/Numeric/Boolean` type support `allow_blank` - [@u2](https://github.com/u2).
|
@@ -353,12 +352,12 @@
|
|
353
352
|
* [#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).
|
354
353
|
* [#917](https://github.com/ruby-grape/grape/pull/917): Use HTTPS for rubygems.org - [@O-I](https://github.com/O-I).
|
355
354
|
|
356
|
-
### 0.10.1 (12/28
|
355
|
+
### 0.10.1 (2014/12/28)
|
357
356
|
|
358
357
|
* [#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).
|
359
358
|
* [#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).
|
360
359
|
|
361
|
-
### 0.10.0 (12/19
|
360
|
+
### 0.10.0 (2014/12/19)
|
362
361
|
|
363
362
|
* [#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).
|
364
363
|
* [#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).
|
@@ -381,7 +380,7 @@
|
|
381
380
|
* [#679](https://github.com/ruby-grape/grape/issues/679): Fixed `OPTIONS` method returning 404 when combined with `prefix` - [@dblock](https://github.com/dblock).
|
382
381
|
* [#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).
|
383
382
|
|
384
|
-
### 0.9.0 (8/27
|
383
|
+
### 0.9.0 (2014/8/27)
|
385
384
|
|
386
385
|
#### Features
|
387
386
|
|
@@ -399,7 +398,7 @@
|
|
399
398
|
|
400
399
|
* [#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).
|
401
400
|
|
402
|
-
### 0.8.0 (7/10
|
401
|
+
### 0.8.0 (2014/7/10)
|
403
402
|
|
404
403
|
#### Features
|
405
404
|
|
@@ -419,7 +418,7 @@
|
|
419
418
|
* [#619](https://github.com/ruby-grape/grape/pull/619): Convert specs to RSpec 3 syntax with Transpec - [@danielspector](https://github.com/danielspector).
|
420
419
|
* [#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).
|
421
420
|
|
422
|
-
### 0.7.0 (4/2
|
421
|
+
### 0.7.0 (2014/4/2)
|
423
422
|
|
424
423
|
#### Features
|
425
424
|
|
@@ -458,7 +457,7 @@
|
|
458
457
|
* [#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).
|
459
458
|
* [#610](https://github.com/ruby-grape/grape/pull/610): Fixed group keyword was not working with type parameter - [@klausmeyer](https://github.com/klausmeyer).
|
460
459
|
|
461
|
-
### 0.6.1 (10/19
|
460
|
+
### 0.6.1 (2013/10/19)
|
462
461
|
|
463
462
|
#### Features
|
464
463
|
|
@@ -474,7 +473,7 @@
|
|
474
473
|
|
475
474
|
* Implemented Rubocop, a Ruby code static code analyzer - [@dblock](https://github.com/dblock).
|
476
475
|
|
477
|
-
### 0.6.0 (9/16
|
476
|
+
### 0.6.0 (2013/9/16)
|
478
477
|
|
479
478
|
#### Features
|
480
479
|
|
@@ -492,7 +491,7 @@
|
|
492
491
|
|
493
492
|
* [#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).
|
494
493
|
|
495
|
-
### 0.5.0 (6/14
|
494
|
+
### 0.5.0 (2013/6/14)
|
496
495
|
|
497
496
|
#### Features
|
498
497
|
|
@@ -518,11 +517,11 @@
|
|
518
517
|
* [#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).
|
519
518
|
* [#427](https://github.com/ruby-grape/grape/issues/427): Fix: `declared(params)` breaks when `params` contains array - [@timhabermaas](https://github.com/timhabermaas).
|
520
519
|
|
521
|
-
### 0.4.1 (4/1
|
520
|
+
### 0.4.1 (2013/4/1)
|
522
521
|
|
523
522
|
* [#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).
|
524
523
|
|
525
|
-
### 0.4.0 (3/17
|
524
|
+
### 0.4.0 (2013/3/17)
|
526
525
|
|
527
526
|
* [#356](https://github.com/ruby-grape/grape/pull/356): Fix: presenting collections other than `Array` (eg. `ActiveRecord::Relation`) - [@zimbatm](https://github.com/zimbatm).
|
528
527
|
* [#352](https://github.com/ruby-grape/grape/pull/352): Fix: using `Rack::JSONP` with `Grape::Entity` responses - [@deckchair](https://github.com/deckchair).
|
@@ -536,15 +535,15 @@
|
|
536
535
|
* [#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).
|
537
536
|
* 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).
|
538
537
|
|
539
|
-
### 0.3.2 (2/28
|
538
|
+
### 0.3.2 (2013/2/28)
|
540
539
|
|
541
540
|
* [#355](https://github.com/ruby-grape/grape/issues/355): Relax dependency constraint on Hashie - [@reset](https://github.com/reset).
|
542
541
|
|
543
|
-
### 0.3.1 (2/25
|
542
|
+
### 0.3.1 (2013/2/25)
|
544
543
|
|
545
544
|
* [#351](https://github.com/ruby-grape/grape/issues/351): Compatibility with Ruby 2.0 - [@mbleigh](https://github.com/mbleigh).
|
546
545
|
|
547
|
-
### 0.3.0 (02/21
|
546
|
+
### 0.3.0 (2013/02/21)
|
548
547
|
|
549
548
|
* [#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).
|
550
549
|
* [#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).
|
@@ -563,12 +562,12 @@
|
|
563
562
|
* [#60](https://github.com/ruby-grape/grape/issues/60): Fix: mounting of a Grape API onto a path - [@dblock](https://github.com/dblock).
|
564
563
|
* [#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).
|
565
564
|
|
566
|
-
### 0.2.6 (01/11
|
565
|
+
### 0.2.6 (2013/01/11)
|
567
566
|
|
568
567
|
* Fix: support content-type with character set when parsing POST and PUT input - [@dblock](https://github.com/dblock).
|
569
568
|
* Fix: CVE-2013-0175, multi_xml parse vulnerability, require multi_xml 0.5.2 - [@dblock](https://github.com/dblock).
|
570
569
|
|
571
|
-
### 0.2.5 (01/10
|
570
|
+
### 0.2.5 (2013/01/10)
|
572
571
|
|
573
572
|
* Added support for custom parsers via `parser`, in addition to built-in multipart, JSON and XML parsers - [@dblock](https://github.com/dblock).
|
574
573
|
* Removed `body_params`, data sent via a POST or PUT with a supported content-type is merged into `params` - [@dblock](https://github.com/dblock).
|
@@ -577,7 +576,7 @@
|
|
577
576
|
* [#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).
|
578
577
|
* [#306](https://github.com/ruby-grape/grape/issues/306): Added i18n support for validation error messages - [@niedhui](https://github.com/niedhui).
|
579
578
|
|
580
|
-
### 0.2.4 (01/06
|
579
|
+
### 0.2.4 (2013/01/06)
|
581
580
|
|
582
581
|
* [#297](https://github.com/ruby-grape/grape/issues/297): Added `default_error_formatter` - [@dblock](https://github.com/dblock).
|
583
582
|
* [#297](https://github.com/ruby-grape/grape/issues/297): Setting `format` will automatically set `default_error_formatter` - [@dblock](https://github.com/dblock).
|
@@ -595,7 +594,7 @@
|
|
595
594
|
* [#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).
|
596
595
|
* [#196](https://github.com/ruby-grape/grape/issues/196): Fix: root requests don't work with `prefix` - [@dblock](https://github.com/dblock).
|
597
596
|
|
598
|
-
### 0.2.3 (
|
597
|
+
### 0.2.3 (2012/12/24)
|
599
598
|
|
600
599
|
* [#179](https://github.com/ruby-grape/grape/issues/178): Using `content_type` will remove all default content-types - [@dblock](https://github.com/dblock).
|
601
600
|
* [#265](https://github.com/ruby-grape/grape/issues/264): Fix: Moved `ValidationError` into `Grape::Exceptions` - [@thepumpkin1979](https://github.com/thepumpkin1979).
|
@@ -608,7 +607,7 @@
|
|
608
607
|
* [#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).
|
609
608
|
* [#44](https://github.com/ruby-grape/grape/issues/44): Pass `env` into formatters to enable templating - [@dblock](https://github.com/dblock).
|
610
609
|
|
611
|
-
### 0.2.2 (12/10
|
610
|
+
### 0.2.2 (2012/12/10)
|
612
611
|
|
613
612
|
#### Features
|
614
613
|
|
@@ -630,7 +629,7 @@
|
|
630
629
|
* [#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).
|
631
630
|
* [#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).
|
632
631
|
|
633
|
-
### 0.2.1 (7/11
|
632
|
+
### 0.2.1 (2012/7/11)
|
634
633
|
|
635
634
|
* [#186](https://github.com/ruby-grape/grape/issues/186): Fix: helpers allow multiple calls with modules and blocks - [@ppadron](https://github.com/ppadron).
|
636
635
|
* [#188](https://github.com/ruby-grape/grape/pull/188): Fix: multi-method routes append '(.:format)' only once - [@kainosnoema](https://github.com/kainosnoema).
|
@@ -645,7 +644,7 @@
|
|
645
644
|
* [#189](https://github.com/ruby-grape/grape/pull/189): `HEAD` requests no longer return a body - [@stephencelis](https://github.com/stephencelis).
|
646
645
|
* [#97](https://github.com/ruby-grape/grape/issues/97): Allow overriding `Content-Type` - [@dblock](https://github.com/dblock).
|
647
646
|
|
648
|
-
### 0.2.0 (3/28
|
647
|
+
### 0.2.0 (2012/3/28)
|
649
648
|
|
650
649
|
* Added support for inheriting exposures from entities - [@bobbytables](https://github.com/bobbytables).
|
651
650
|
* Extended formatting with `default_format` - [@dblock](https://github.com/dblock).
|
@@ -665,28 +664,28 @@
|
|
665
664
|
* Added support for before and after filters - [@mbleigh](https://github.com/mbleigh).
|
666
665
|
* Extended `rescue_from`, which can now take a block - [@dblock](https://github.com/dblock).
|
667
666
|
|
668
|
-
### 0.1.5 (6/14
|
667
|
+
### 0.1.5 (2011/6/14)
|
669
668
|
|
670
669
|
* Extended exception handling to all exceptions - [@dblock](https://github.com/dblock).
|
671
670
|
* Added support for returning JSON objects from within error blocks - [@dblock](https://github.com/dblock).
|
672
671
|
* Added support for handling incoming JSON in body - [@tedkulp](https://github.com/tedkulp).
|
673
672
|
* Added support for HTTP digest authentication - [@daddz](https://github.com/daddz).
|
674
673
|
|
675
|
-
### 0.1.4 (4/8
|
674
|
+
### 0.1.4 (2011/4/8)
|
676
675
|
|
677
676
|
* Allow multiple definitions of the same endpoint under multiple versions - [@chrisrhoden](https://github.com/chrisrhoden).
|
678
677
|
* Added support for multipart URL parameters - [@mcastilho](https://github.com/mcastilho).
|
679
678
|
* Added support for custom formatters - [@spraints](https://github.com/spraints).
|
680
679
|
|
681
|
-
### 0.1.3 (1/10
|
680
|
+
### 0.1.3 (2011/1/10)
|
682
681
|
|
683
682
|
* Added support for JSON format in route matching - [@aiwilliams](https://github.com/aiwilliams).
|
684
683
|
* Added suport for custom middleware - [@mbleigh](https://github.com/mbleigh).
|
685
684
|
|
686
|
-
### 0.1.1 (11/14
|
685
|
+
### 0.1.1 (2010/11/14)
|
687
686
|
|
688
687
|
* Endpoints properly reset between each request - [@mbleigh](https://github.com/mbleigh).
|
689
688
|
|
690
|
-
### 0.1.0 (11/13
|
689
|
+
### 0.1.0 (2010/11/13)
|
691
690
|
|
692
691
|
* Initial public release - [@mbleigh](https://github.com/mbleigh).
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
grape (1.2.
|
4
|
+
grape (1.2.2)
|
5
5
|
activesupport
|
6
6
|
builder
|
7
7
|
mustermann-grape (~> 1.0.0)
|
@@ -12,9 +12,9 @@ PATH
|
|
12
12
|
GEM
|
13
13
|
remote: https://rubygems.org/
|
14
14
|
specs:
|
15
|
-
activesupport (5.
|
15
|
+
activesupport (5.1.4)
|
16
16
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
17
|
-
i18n (
|
17
|
+
i18n (~> 0.7)
|
18
18
|
minitest (~> 5.1)
|
19
19
|
tzinfo (~> 1.1)
|
20
20
|
addressable (2.5.2)
|
@@ -23,7 +23,7 @@ GEM
|
|
23
23
|
bundler
|
24
24
|
rake
|
25
25
|
thor (>= 0.14.0)
|
26
|
-
ast (2.
|
26
|
+
ast (2.3.0)
|
27
27
|
axiom-types (0.1.1)
|
28
28
|
descendants_tracker (~> 0.0.4)
|
29
29
|
ice_nine (~> 0.11.0)
|
@@ -44,9 +44,9 @@ GEM
|
|
44
44
|
cookiejar (0.3.3)
|
45
45
|
cork (0.3.0)
|
46
46
|
colored2 (~> 3.1)
|
47
|
-
coveralls (0.8.
|
47
|
+
coveralls (0.8.21)
|
48
48
|
json (>= 1.8, < 3)
|
49
|
-
simplecov (~> 0.
|
49
|
+
simplecov (~> 0.14.1)
|
50
50
|
term-ansicolor (~> 1.3)
|
51
51
|
thor (~> 0.19.4)
|
52
52
|
tins (~> 1.6)
|
@@ -72,17 +72,17 @@ GEM
|
|
72
72
|
descendants_tracker (0.0.4)
|
73
73
|
thread_safe (~> 0.3, >= 0.3.1)
|
74
74
|
diff-lcs (1.3)
|
75
|
-
docile (1.
|
75
|
+
docile (1.1.5)
|
76
76
|
equalizer (0.0.11)
|
77
|
-
faraday (0.
|
77
|
+
faraday (0.13.1)
|
78
78
|
multipart-post (>= 1.2, < 3)
|
79
79
|
faraday-http-cache (1.3.1)
|
80
80
|
faraday (~> 0.8)
|
81
|
-
ffi (1.9.
|
81
|
+
ffi (1.9.18)
|
82
82
|
formatador (0.2.5)
|
83
|
-
git (1.
|
84
|
-
grape-entity (0.
|
85
|
-
activesupport (>=
|
83
|
+
git (1.3.0)
|
84
|
+
grape-entity (0.6.1)
|
85
|
+
activesupport (>= 5.0.0)
|
86
86
|
multi_json (>= 1.3.2)
|
87
87
|
guard (2.14.2)
|
88
88
|
formatador (>= 0.2.4)
|
@@ -101,23 +101,23 @@ GEM
|
|
101
101
|
guard-rubocop (1.3.0)
|
102
102
|
guard (~> 2.0)
|
103
103
|
rubocop (~> 0.20)
|
104
|
-
hashie (3.
|
105
|
-
i18n (
|
104
|
+
hashie (3.5.7)
|
105
|
+
i18n (0.9.1)
|
106
106
|
concurrent-ruby (~> 1.0)
|
107
107
|
ice_nine (0.11.2)
|
108
108
|
json (2.1.0)
|
109
|
-
kramdown (1.
|
109
|
+
kramdown (1.16.2)
|
110
110
|
listen (3.1.5)
|
111
111
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
112
112
|
rb-inotify (~> 0.9, >= 0.9.7)
|
113
113
|
ruby_dep (~> 1.2)
|
114
|
-
lumberjack (1.0.
|
114
|
+
lumberjack (1.0.12)
|
115
115
|
maruku (0.7.3)
|
116
116
|
method_source (0.9.0)
|
117
|
-
mime-types (3.
|
117
|
+
mime-types (3.1)
|
118
118
|
mime-types-data (~> 3.2015)
|
119
|
-
mime-types-data (3.
|
120
|
-
minitest (5.11.
|
119
|
+
mime-types-data (3.2016.0521)
|
120
|
+
minitest (5.11.1)
|
121
121
|
multi_json (1.13.1)
|
122
122
|
multipart-post (2.0.0)
|
123
123
|
mustermann (1.0.3)
|
@@ -128,18 +128,18 @@ GEM
|
|
128
128
|
notiffany (0.1.1)
|
129
129
|
nenv (~> 0.1)
|
130
130
|
shellany (~> 0.0)
|
131
|
-
octokit (4.
|
131
|
+
octokit (4.8.0)
|
132
132
|
sawyer (~> 0.8.0, >= 0.5.3)
|
133
133
|
open4 (1.3.4)
|
134
134
|
parallel (1.12.1)
|
135
|
-
parser (2.
|
136
|
-
ast (~> 2.
|
137
|
-
powerpack (0.1.
|
135
|
+
parser (2.4.0.2)
|
136
|
+
ast (~> 2.3)
|
137
|
+
powerpack (0.1.1)
|
138
138
|
pry (0.11.3)
|
139
139
|
coderay (~> 1.1.0)
|
140
140
|
method_source (~> 0.9.0)
|
141
|
-
public_suffix (3.0.
|
142
|
-
rack (2.0.
|
141
|
+
public_suffix (3.0.1)
|
142
|
+
rack (2.0.3)
|
143
143
|
rack-accept (0.4.5)
|
144
144
|
rack (>= 0.4)
|
145
145
|
rack-jsonp (1.3.1)
|
@@ -148,23 +148,23 @@ GEM
|
|
148
148
|
rack (>= 1.0)
|
149
149
|
rainbow (2.2.2)
|
150
150
|
rake
|
151
|
-
rake (12.3.
|
152
|
-
rb-fsevent (0.10.
|
151
|
+
rake (12.3.0)
|
152
|
+
rb-fsevent (0.10.2)
|
153
153
|
rb-inotify (0.9.10)
|
154
154
|
ffi (>= 0.5.0, < 2)
|
155
|
-
rspec (3.
|
156
|
-
rspec-core (~> 3.
|
157
|
-
rspec-expectations (~> 3.
|
158
|
-
rspec-mocks (~> 3.
|
159
|
-
rspec-core (3.
|
160
|
-
rspec-support (~> 3.
|
161
|
-
rspec-expectations (3.
|
155
|
+
rspec (3.7.0)
|
156
|
+
rspec-core (~> 3.7.0)
|
157
|
+
rspec-expectations (~> 3.7.0)
|
158
|
+
rspec-mocks (~> 3.7.0)
|
159
|
+
rspec-core (3.7.1)
|
160
|
+
rspec-support (~> 3.7.0)
|
161
|
+
rspec-expectations (3.7.0)
|
162
162
|
diff-lcs (>= 1.2.0, < 2.0)
|
163
|
-
rspec-support (~> 3.
|
164
|
-
rspec-mocks (3.
|
163
|
+
rspec-support (~> 3.7.0)
|
164
|
+
rspec-mocks (3.7.0)
|
165
165
|
diff-lcs (>= 1.2.0, < 2.0)
|
166
|
-
rspec-support (~> 3.
|
167
|
-
rspec-support (3.
|
166
|
+
rspec-support (~> 3.7.0)
|
167
|
+
rspec-support (3.7.0)
|
168
168
|
rubocop (0.51.0)
|
169
169
|
parallel (~> 1.10)
|
170
170
|
parser (>= 2.3.3.1, < 3.0)
|
@@ -175,14 +175,14 @@ GEM
|
|
175
175
|
ruby-grape-danger (0.1.1)
|
176
176
|
danger (~> 4.0.1)
|
177
177
|
danger-changelog (~> 0.2.0)
|
178
|
-
ruby-progressbar (1.
|
178
|
+
ruby-progressbar (1.9.0)
|
179
179
|
ruby_dep (1.5.0)
|
180
180
|
sawyer (0.8.1)
|
181
181
|
addressable (>= 2.3.5, < 2.6)
|
182
182
|
faraday (~> 0.8, < 1.0)
|
183
183
|
shellany (0.0.1)
|
184
|
-
simplecov (0.
|
185
|
-
docile (~> 1.1)
|
184
|
+
simplecov (0.14.1)
|
185
|
+
docile (~> 1.1.0)
|
186
186
|
json (>= 1.8, < 3)
|
187
187
|
simplecov-html (~> 0.10.0)
|
188
188
|
simplecov-html (0.10.2)
|
@@ -192,10 +192,10 @@ GEM
|
|
192
192
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
193
193
|
thor (0.19.4)
|
194
194
|
thread_safe (0.3.6)
|
195
|
-
tins (1.
|
196
|
-
tzinfo (1.2.
|
195
|
+
tins (1.16.3)
|
196
|
+
tzinfo (1.2.4)
|
197
197
|
thread_safe (~> 0.1)
|
198
|
-
unicode-display_width (1.
|
198
|
+
unicode-display_width (1.3.0)
|
199
199
|
virtus (1.0.5)
|
200
200
|
axiom-types (~> 0.1)
|
201
201
|
coercible (~> 1.0)
|
@@ -228,4 +228,4 @@ DEPENDENCIES
|
|
228
228
|
ruby-grape-danger (~> 0.1.0)
|
229
229
|
|
230
230
|
BUNDLED WITH
|
231
|
-
1.
|
231
|
+
1.17.1
|