grape 4.0.0 → 4.0.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 +6 -0
- data/README.md +1 -1
- data/lib/grape/api.rb +6 -2
- data/lib/grape/version.rb +1 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 52d154b69518deff42636d26ceb721c44cdd84c2f4abf054e1e05168284e58af
|
|
4
|
+
data.tar.gz: 43192793f9db784fbfbc3e0b11b7de4a1d0b064c9e8025f5395fd21da311a2d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7978016a3b2c780b5fd9ab39cecec18c0198e6791b16694d97833fb6de92e576809fd2747080d1234fad006eaa1826c758754c61582aa28821db2328b6e02125
|
|
7
|
+
data.tar.gz: c2d06893ebb475703fa51e31182181539b1e7293d7e6978d286bf4be44611c906ccef4ab351b5822f33672e4eb46bdb1b5a6827183ed6feb11d3edefae38ce82
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
### 4.0.1 (2026-09-15)
|
|
2
|
+
|
|
3
|
+
#### Fixes
|
|
4
|
+
|
|
5
|
+
* [#2946](https://github.com/ruby-grape/grape/pull/2946): Stop reading a class-level setting on an API with nested mounts from remounting the whole mount tree - [@ericproulx](https://github.com/ericproulx).
|
|
6
|
+
|
|
1
7
|
### 4.0.0 (2026-09-07)
|
|
2
8
|
|
|
3
9
|
#### Features
|
data/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Grape is a REST-like API framework for Ruby. It's designed to run on Rack or com
|
|
|
10
10
|
|
|
11
11
|
## Stable Release
|
|
12
12
|
|
|
13
|
-
You're reading the documentation for the stable release of Grape, 4.0.
|
|
13
|
+
You're reading the documentation for the stable release of Grape, 4.0.1.
|
|
14
14
|
|
|
15
15
|
## Project Resources
|
|
16
16
|
|
data/lib/grape/api.rb
CHANGED
|
@@ -8,7 +8,7 @@ module Grape
|
|
|
8
8
|
extend Grape::Mountable
|
|
9
9
|
|
|
10
10
|
# Class methods that we want to call on the API rather than on the API object
|
|
11
|
-
NON_OVERRIDABLE = %i[base= base_instance? call change! configuration compile! inherit_settings recognize_path reset! routes top_level_setting= top_level_setting].freeze
|
|
11
|
+
NON_OVERRIDABLE = %i[base base= base_instance? call change! configuration compile! inherit_settings recognize_path reset! routes top_level_setting= top_level_setting].freeze
|
|
12
12
|
|
|
13
13
|
Helpers = Grape::DSL::Helpers::BaseHelper
|
|
14
14
|
|
|
@@ -35,7 +35,11 @@ module Grape
|
|
|
35
35
|
# the headers, and the body. See [the rack specification]
|
|
36
36
|
# (https://github.com/rack/rack/blob/main/SPEC.rdoc) for more.
|
|
37
37
|
# NOTE: This will only be called on an API directly mounted on RACK
|
|
38
|
-
|
|
38
|
+
#
|
|
39
|
+
# +inherit_settings+ is left out: it is protected on the base instance, so
|
|
40
|
+
# a delegator would raise NoMethodError just as the missing one does.
|
|
41
|
+
def_delegators :base_instance, :new, :configuration, :call, :change!, :compile!, :recognize_path, :routes,
|
|
42
|
+
:base, :base=, :base_instance?, :reset!, :top_level_setting
|
|
39
43
|
|
|
40
44
|
# Initialize the instance variables on the remountable class, and the base_instance
|
|
41
45
|
# an instance that will be used to create the set up but will not be mounted
|
data/lib/grape/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: grape
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.
|
|
4
|
+
version: 4.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Bleigh
|
|
@@ -283,9 +283,9 @@ licenses:
|
|
|
283
283
|
- MIT
|
|
284
284
|
metadata:
|
|
285
285
|
bug_tracker_uri: https://github.com/ruby-grape/grape/issues
|
|
286
|
-
changelog_uri: https://github.com/ruby-grape/grape/blob/v4.0.
|
|
287
|
-
documentation_uri: https://www.rubydoc.info/gems/grape/4.0.
|
|
288
|
-
source_code_uri: https://github.com/ruby-grape/grape/tree/v4.0.
|
|
286
|
+
changelog_uri: https://github.com/ruby-grape/grape/blob/v4.0.1/CHANGELOG.md
|
|
287
|
+
documentation_uri: https://www.rubydoc.info/gems/grape/4.0.1
|
|
288
|
+
source_code_uri: https://github.com/ruby-grape/grape/tree/v4.0.1
|
|
289
289
|
rubygems_mfa_required: 'true'
|
|
290
290
|
rdoc_options: []
|
|
291
291
|
require_paths:
|