grape 3.1.0 → 3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5d4ecfd73b009cc3c4bcfd0ed50048d70d15a20c48e5282571ef5d9dc717316
4
- data.tar.gz: 60de796e7e411513df39ac636750d9ce22ac5f43bec24dce48627d672d63a9d8
3
+ metadata.gz: f03f5db37edb93b40fa1b9addead63466a5c1f49740c4f1c1335eabb3dd93ff1
4
+ data.tar.gz: 0e42696b25c1ee096e15d6e808262904ba61d85d9faa7d008a052ff3cd553de9
5
5
  SHA512:
6
- metadata.gz: 8cedc8302caa250302cde57047e45fb20d6dcd7f03cc71aa0f5cc1544e548a9d13745264f11c6c1dbd17dc82c8cf80165a4a803877a1c8fce4e96912bfdb3c06
7
- data.tar.gz: 25f407f60587fc6ebed6e10fc91ea74f5bf3e23846b52a20f188a755fa0caa9f224b7d03b07542855f7894b99e078441bc0556d9ed41bc89ffde0c042dc8cd50
6
+ metadata.gz: d98db4f7e9cf7884f52a349bf28bad16fc62dc93a3019e808c0b7497e872334a7462353a35dd19f6cc09d2566421902984562586d2d22dfd6a6db40e37ac276a
7
+ data.tar.gz: 210ce14f0ef502d9a18fd4a7b24b111ca5d69b6689fd5b0bb629c8d5c072afd9576a6834f36764e9d5e4e5a92c1372b7962aff9500d9d9f7f561879cc6bac247
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ### 3.1.1 (2026-01-31)
2
+
3
+ #### Fixes
4
+
5
+ * [#2655](https://github.com/ruby-grape/grape/pull/2655): Fix `before_each` method to handle `nil` parameter correctly - [@ericproulx](https://github.com/ericproulx).
6
+
1
7
  ### 3.1.0 (2026-01-25)
2
8
 
3
9
  #### Features
@@ -23,6 +29,7 @@
23
29
  * [#2633](https://github.com/ruby-grape/grape/pull/2633): Fix cascade reading - [@ericproulx](https://github.com/ericproulx).
24
30
  * [#2641](https://github.com/ruby-grape/grape/pull/2641): Restore support for `return` in endpoint blocks - [@ericproulx](https://github.com/ericproulx).
25
31
  * [#2642](https://github.com/ruby-grape/grape/pull/2642): Fix array allocation in base_route.rb - [@ericproulx](https://github.com/ericproulx).
32
+ * Fix `before_each` method to handle `nil` parameter correctly - [@ericproulx](https://github.com/ericproulx).
26
33
 
27
34
  ### 3.0.1 (2025-11-24)
28
35
 
data/README.md CHANGED
@@ -160,7 +160,7 @@ Grape is a REST-like API framework for Ruby. It's designed to run on Rack or com
160
160
 
161
161
  ## Stable Release
162
162
 
163
- You're reading the documentation for the stable release of Grape, 3.1.0.
163
+ You're reading the documentation for the stable release of Grape, 3.1.1.
164
164
 
165
165
  ## Project Resources
166
166
 
@@ -23,8 +23,10 @@ module Grape
23
23
  return @before_each unless block
24
24
 
25
25
  @before_each << block
26
- else
26
+ elsif new_setup
27
27
  @before_each = [new_setup]
28
+ else
29
+ @before_each.clear
28
30
  end
29
31
  end
30
32
 
data/lib/grape/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Grape
4
4
  # The current version of Grape.
5
- VERSION = '3.1.0'
5
+ VERSION = '3.1.1'
6
6
  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: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh
@@ -267,9 +267,9 @@ licenses:
267
267
  - MIT
268
268
  metadata:
269
269
  bug_tracker_uri: https://github.com/ruby-grape/grape/issues
270
- changelog_uri: https://github.com/ruby-grape/grape/blob/v3.1.0/CHANGELOG.md
271
- documentation_uri: https://www.rubydoc.info/gems/grape/3.1.0
272
- source_code_uri: https://github.com/ruby-grape/grape/tree/v3.1.0
270
+ changelog_uri: https://github.com/ruby-grape/grape/blob/v3.1.1/CHANGELOG.md
271
+ documentation_uri: https://www.rubydoc.info/gems/grape/3.1.1
272
+ source_code_uri: https://github.com/ruby-grape/grape/tree/v3.1.1
273
273
  rubygems_mfa_required: 'true'
274
274
  rdoc_options: []
275
275
  require_paths:
@@ -285,7 +285,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
285
285
  - !ruby/object:Gem::Version
286
286
  version: '0'
287
287
  requirements: []
288
- rubygems_version: 3.6.9
288
+ rubygems_version: 4.0.3
289
289
  specification_version: 4
290
290
  summary: A simple Ruby framework for building REST-like APIs.
291
291
  test_files: []