grape 2.1.0 → 2.1.1
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 +11 -0
- data/README.md +1 -1
- data/lib/grape/dsl/inside_route.rb +4 -0
- data/lib/grape/router.rb +2 -1
- data/lib/grape/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5ff753adfdf2428ba49d22317b87ff7a526845e582496dd6f653c8ff04261166
|
|
4
|
+
data.tar.gz: b62d8ab4c9ac3ca28d62bb2e9afaae54255ed820be17029da35498111ff98cb7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4501a8f8141b54f83a6e289d0dc9e1128273b92a23a4116f892ef2b47feb03fb852f6787d151a02f553665a5cdb3ac34e440f468ab4901a02c436340bde27f32
|
|
7
|
+
data.tar.gz: 861d46d98bb44caf203c5e6f919ecf568174a5d915259df983f66310c4c9b118213c62b489c8e498569ea2eebf0a8bf65a0b0888fb4d14e97e408e1f3a12c5fe
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
### 2.1.1 (2024-06-22)
|
|
2
|
+
|
|
3
|
+
#### Features
|
|
4
|
+
|
|
5
|
+
* [#2450](https://github.com/ruby-grape/grape/pull/2450): Update RuboCop to 1.64.1 - [@ericproulx](https://github.com/ericproulx).
|
|
6
|
+
|
|
7
|
+
#### Fixes
|
|
8
|
+
|
|
9
|
+
* [#2453](https://github.com/ruby-grape/grape/pull/2453): Fix context in rescue_from - [@ericproulx](https://github.com/ericproulx).
|
|
10
|
+
* [#2455](https://github.com/ruby-grape/grape/pull/2455): Fix default response headers to work with Rack 3 - [@ericproulx](https://github.com/ericproulx).
|
|
11
|
+
|
|
1
12
|
### 2.1.0 (2024/06/15)
|
|
2
13
|
|
|
3
14
|
#### Features
|
data/README.md
CHANGED
|
@@ -157,7 +157,7 @@ Grape is a REST-like API framework for Ruby. It's designed to run on Rack or com
|
|
|
157
157
|
|
|
158
158
|
## Stable Release
|
|
159
159
|
|
|
160
|
-
You're reading the documentation for the stable release of Grape, **2.1.
|
|
160
|
+
You're reading the documentation for the stable release of Grape, **2.1.1**.
|
|
161
161
|
Please read [UPGRADING](UPGRADING.md) when upgrading from a previous version.
|
|
162
162
|
|
|
163
163
|
## Project Resources
|
data/lib/grape/router.rb
CHANGED
|
@@ -138,7 +138,8 @@ module Grape
|
|
|
138
138
|
end
|
|
139
139
|
|
|
140
140
|
def default_response
|
|
141
|
-
|
|
141
|
+
headers = Grape::Util::Header.new.merge(Grape::Http::Headers::X_CASCADE => 'pass')
|
|
142
|
+
[404, headers, ['404 Not Found']]
|
|
142
143
|
end
|
|
143
144
|
|
|
144
145
|
def match?(input, method)
|
data/lib/grape/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: grape
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.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: 2024-06-
|
|
11
|
+
date: 2024-06-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -252,9 +252,9 @@ licenses:
|
|
|
252
252
|
- MIT
|
|
253
253
|
metadata:
|
|
254
254
|
bug_tracker_uri: https://github.com/ruby-grape/grape/issues
|
|
255
|
-
changelog_uri: https://github.com/ruby-grape/grape/blob/v2.1.
|
|
256
|
-
documentation_uri: https://www.rubydoc.info/gems/grape/2.1.
|
|
257
|
-
source_code_uri: https://github.com/ruby-grape/grape/tree/v2.1.
|
|
255
|
+
changelog_uri: https://github.com/ruby-grape/grape/blob/v2.1.1/CHANGELOG.md
|
|
256
|
+
documentation_uri: https://www.rubydoc.info/gems/grape/2.1.1
|
|
257
|
+
source_code_uri: https://github.com/ruby-grape/grape/tree/v2.1.1
|
|
258
258
|
post_install_message:
|
|
259
259
|
rdoc_options: []
|
|
260
260
|
require_paths:
|
|
@@ -270,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
270
270
|
- !ruby/object:Gem::Version
|
|
271
271
|
version: '0'
|
|
272
272
|
requirements: []
|
|
273
|
-
rubygems_version: 3.5.
|
|
273
|
+
rubygems_version: 3.5.13
|
|
274
274
|
signing_key:
|
|
275
275
|
specification_version: 4
|
|
276
276
|
summary: A simple Ruby framework for building REST-like APIs.
|