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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f186917c03263aba1f50d3e3ac7ff3acd4926655f8e9112b7385b34918fdb099
4
- data.tar.gz: 863fc50ff7e443536ad62de00470439b3b4cfa4288174100db0e154bba9064c9
3
+ metadata.gz: c8edcd2e72543b314a711f66e13a2e748b7ce5fc52fd989e6b1cc2a7882bce0f
4
+ data.tar.gz: 2ca58dacf2c2f95f697b5e61d92d75a08f406d22894c505bec4e32c7e5277859
5
5
  SHA512:
6
- metadata.gz: ccafbf30f5050cc5eb2f3d9340d295197cffe2e183e382a2c16f3acd291f4529695ed5ef110fa742f9e19e3ce6ab950fa8a4364fc5557808c16b3635791a8418
7
- data.tar.gz: b1bbeb6bb9368094ed661f35eb2d4fbabe719ee81e004b7a6abf40b2dd7d45de4904a1d2ebd52ed780ba230c2c50db6e094a7f50b0cdeb6a009de4ca045e1b91
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 =~ /\A[a-f0-9]+\z/i
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module StrongerParameters
3
- VERSION = '2.20.0'
3
+ VERSION = '2.22.0'
4
4
  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.20.0
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-03-03 00:00:00.000000000 Z
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.1'
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.1'
144
+ version: '7.2'
145
145
  description:
146
146
  email:
147
147
  - mick@zendesk.com