grape 3.2.0 → 3.2.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: 68c3425fcc271ae7241f0531bbd9cb6c466aca9ccfed37dc37c0a6f83a4500d2
4
- data.tar.gz: d98863b6374c5e25bb95a101c891c0c97b4f3746c9be0c6d7cc4b5b03f1f30fd
3
+ metadata.gz: 81a1d1ef86854a9cd7fe4d60a1207fba921bdee9f6fd53e2f9e83c648e85c2e0
4
+ data.tar.gz: 7a19d899e17d65141c9ce69a10e518a8d7ccec01cd1239f7c2557b77a4084ad4
5
5
  SHA512:
6
- metadata.gz: '059861dafdf89f21d71b23c09e8f5f618ebd42092af31600a3943e0ba9695abd4ee01e90f3cae97aedb7ae777c96e22e3963cab3d4527fcbf16b82ef19939a99'
7
- data.tar.gz: feb02e6b1db04867d06b62d2096931c762028f7b5bf8776f13bf4a5902f4b70b538f016a7f5ada98ffa7fd3f1e22e16054fc229f33fcabf8cf3d8486a956d4c7
6
+ metadata.gz: b9ffeac5636c40b3ed53323c26eb7c5f525be4bf8268b85e4e8851cbbf2d3118e8ddc7387f81f06ef1342396cfe3af9562b5920e38548b5bf1de00536c9b136c
7
+ data.tar.gz: 7fed8d88f46a2d5af508fc0ab5e68333c3b2bde482b9e7b393ea12f2e38bb08b6d3fc9bd8c9f9dfe08adccc2816f2faaf89810d16138f803d1b009b1d0940f38
data/CHANGELOG.md CHANGED
@@ -1,4 +1,9 @@
1
- ### 3.2.0 (Next)
1
+ ### 3.2.1 (2026-04-16)
2
+
3
+ #### Fixes
4
+ * [#2680](https://github.com/ruby-grape/grape/pull/2680): Restore public `schema` reader on ContractScope validator - [@ericproulx](https://github.com/ericproulx).
5
+
6
+ ### 3.2.0 (2026-04-08)
2
7
 
3
8
  #### Features
4
9
 
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, 3.2.0.
13
+ You're reading the documentation for the stable release of Grape, 3.2.1.
14
14
 
15
15
  ## Project Resources
16
16
 
@@ -4,6 +4,8 @@ module Grape
4
4
  module Validations
5
5
  module Validators
6
6
  class ContractScopeValidator
7
+ attr_reader :schema
8
+
7
9
  def initialize(schema:)
8
10
  @schema = schema
9
11
  freeze
@@ -14,7 +16,7 @@ module Grape
14
16
  # @raise [Grape::Exceptions::ValidationArrayErrors] if validation failed
15
17
  # @return [void]
16
18
  def validate(request)
17
- res = @schema.call(request.params)
19
+ res = schema.call(request.params)
18
20
 
19
21
  if res.success?
20
22
  request.params.deep_merge!(res.to_h)
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.2.0'
5
+ VERSION = '3.2.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.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh
@@ -265,9 +265,9 @@ licenses:
265
265
  - MIT
266
266
  metadata:
267
267
  bug_tracker_uri: https://github.com/ruby-grape/grape/issues
268
- changelog_uri: https://github.com/ruby-grape/grape/blob/v3.2.0/CHANGELOG.md
269
- documentation_uri: https://www.rubydoc.info/gems/grape/3.2.0
270
- source_code_uri: https://github.com/ruby-grape/grape/tree/v3.2.0
268
+ changelog_uri: https://github.com/ruby-grape/grape/blob/v3.2.1/CHANGELOG.md
269
+ documentation_uri: https://www.rubydoc.info/gems/grape/3.2.1
270
+ source_code_uri: https://github.com/ruby-grape/grape/tree/v3.2.1
271
271
  rubygems_mfa_required: 'true'
272
272
  rdoc_options: []
273
273
  require_paths: