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 +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +1 -1
- data/lib/grape/validations/validators/contract_scope_validator.rb +3 -1
- data/lib/grape/version.rb +1 -1
- 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: 81a1d1ef86854a9cd7fe4d60a1207fba921bdee9f6fd53e2f9e83c648e85c2e0
|
|
4
|
+
data.tar.gz: 7a19d899e17d65141c9ce69a10e518a8d7ccec01cd1239f7c2557b77a4084ad4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b9ffeac5636c40b3ed53323c26eb7c5f525be4bf8268b85e4e8851cbbf2d3118e8ddc7387f81f06ef1342396cfe3af9562b5920e38548b5bf1de00536c9b136c
|
|
7
|
+
data.tar.gz: 7fed8d88f46a2d5af508fc0ab5e68333c3b2bde482b9e7b393ea12f2e38bb08b6d3fc9bd8c9f9dfe08adccc2816f2faaf89810d16138f803d1b009b1d0940f38
|
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
### 3.2.
|
|
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.
|
|
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 =
|
|
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
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.
|
|
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.
|
|
269
|
-
documentation_uri: https://www.rubydoc.info/gems/grape/3.2.
|
|
270
|
-
source_code_uri: https://github.com/ruby-grape/grape/tree/v3.2.
|
|
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:
|