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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85a54d2cd2bfc91b5b60cf30c317884e37b9ddfce15a8792d03247908a447393
4
- data.tar.gz: ea8ad0d56df3c5a53f0540c98f7bbc5f12d79069b845625a63c7746ba47521c4
3
+ metadata.gz: 52d154b69518deff42636d26ceb721c44cdd84c2f4abf054e1e05168284e58af
4
+ data.tar.gz: 43192793f9db784fbfbc3e0b11b7de4a1d0b064c9e8025f5395fd21da311a2d2
5
5
  SHA512:
6
- metadata.gz: 59aee78aea73250cc78f34e4eb87a380b709b2568310959331455b99b6c562d1085d43b99897a3063006f9d2e64adc0286ac2319245d1ffc645b28519c1358f6
7
- data.tar.gz: 716b1feb2c1b5ad32213515353dab9b5dc9fd9dc7c6560bc4b6f7b4a82326df1c21c6c2bee517e86b7a252217bf55515ca1005507f737fa57c1c82d759e17fcf
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.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
- def_delegators :base_instance, :new, :configuration, :call, :change!, :compile!, :recognize_path, :routes
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
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Grape
4
- # The current version of Grape.
5
- VERSION = '4.0.0'
4
+ VERSION = '4.0.1'
6
5
  end
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.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.0/CHANGELOG.md
287
- documentation_uri: https://www.rubydoc.info/gems/grape/4.0.0
288
- source_code_uri: https://github.com/ruby-grape/grape/tree/v4.0.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: