stronger_parameters 2.20.0 → 2.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/stronger_parameters/constraints/hex_constraint.rb +1 -1
- data/lib/stronger_parameters/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: c8edcd2e72543b314a711f66e13a2e748b7ce5fc52fd989e6b1cc2a7882bce0f
|
4
|
+
data.tar.gz: 2ca58dacf2c2f95f697b5e61d92d75a08f406d22894c505bec4e32c7e5277859
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd7c58d217a2c3cdefcf24db6a213ec24d697089fc9b3b923fbd9d221842ca43ded97244fe7bf9660f2f88b35067f050acc0feee9bdbbb7f9cec5ed9c2d39c49
|
7
|
+
data.tar.gz: 8157574155db3650a05e65bfb43a17750105460bf88f0d8dae3eeef864ed0655fe561c5767401b89f8c2e6abe4ff03ff8c1feb12ff5f6c468179948af5425fdc
|
data/README.md
CHANGED
@@ -280,6 +280,8 @@ curl -I 'http://localhost/api/users/1.json' -X POST -d '{ "user": { "id": 1 } }'
|
|
280
280
|
```
|
281
281
|
git checkout master && git fetch origin && git reset --hard origin/master
|
282
282
|
bundle exec rake bump:<patch|minor|major>
|
283
|
+
# -> manually edit changelog
|
284
|
+
git commit -a --amend --no-edit
|
283
285
|
bundle exec rake release
|
284
286
|
```
|
285
287
|
|
@@ -4,7 +4,7 @@ require 'stronger_parameters/constraint'
|
|
4
4
|
module StrongerParameters
|
5
5
|
class HexConstraint < Constraint
|
6
6
|
def value(v)
|
7
|
-
return v if v
|
7
|
+
return v if v.is_a?(String) && v.match?(/\A[a-f0-9]+\z/i)
|
8
8
|
|
9
9
|
InvalidValue.new(v, 'must be a hexadecimal string')
|
10
10
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stronger_parameters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mick Staugaard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -131,7 +131,7 @@ dependencies:
|
|
131
131
|
version: '5.0'
|
132
132
|
- - "<"
|
133
133
|
- !ruby/object:Gem::Version
|
134
|
-
version: '7.
|
134
|
+
version: '7.2'
|
135
135
|
type: :runtime
|
136
136
|
prerelease: false
|
137
137
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -141,7 +141,7 @@ dependencies:
|
|
141
141
|
version: '5.0'
|
142
142
|
- - "<"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '7.
|
144
|
+
version: '7.2'
|
145
145
|
description:
|
146
146
|
email:
|
147
147
|
- mick@zendesk.com
|