validate-params 0.14.0 → 0.14.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: fae87e49e657c4474eb70cecc2b42f3b8431cd2838539c5892d74d8d6ada70ef
4
- data.tar.gz: e24d98df25519a3b937aacce314f4a89c50154121277d0f9ea6131bc199e9205
3
+ metadata.gz: 49a497919ab75580d101c38b3ef6d57a35082d85ae9c63048f672c25745196e0
4
+ data.tar.gz: 4c66e68ab065c305742a5d161bb65041eab7bc46c969d02148d4b74a644e7745
5
5
  SHA512:
6
- metadata.gz: e543564a6a1f9e983a3315a82ca53ec64eba95efaa9937dc01cf0165c0d513173c3e3a5255acced136631cadfcb7154aba5f81b2c885a419e4fef5cc4ed65e88
7
- data.tar.gz: a2a5c8fb0392f70d0b7d03d06e9d78391c751c676202705dd4ffc2c116f09234ec12a20f3da94d3b285002feb405f91ec39e12703ded3b97a82c631a21723aaa
6
+ metadata.gz: abec4f999ce02973595d484901448f2420bb0c3742c541516cdebab62facfed8901a8e53711ea9976b248f12f2261fabf4f6b743957b4841d0275d761efb249b
7
+ data.tar.gz: e5d117580c45b9fc963304853e2558d0f20d09fe4ea74387bf4867c33383b1851788e1bac94e35c8fc5fde38d4c5387bb2a745b21c9151228228be96b210f0d6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.14.1] - 2025-07-15
2
+
3
+ - Fixed issue with `scrub_invalid_utf8` option in String type to ensure it works correctly with non-string inputs
4
+
1
5
  ## [0.14.0] - 2024-09-25
2
6
 
3
7
  - Support for Proc as options for `:min` and `:max` to validate param values
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- validate-params (0.14.0)
4
+ validate-params (0.14.1)
5
5
  activesupport (>= 6.1.0)
6
6
  i18n (>= 1.6)
7
7
 
@@ -8,7 +8,7 @@ module ValidateParams
8
8
  def self.cast(raw_value, scrub_invalid_utf8: false, **)
9
9
  value = raw_value.to_s
10
10
 
11
- if scrub_invalid_utf8
11
+ if scrub_invalid_utf8 && raw_value.respond_to?(:scrub)
12
12
  value = Validatable::Utilities::Scrubber.scrub(raw_value)
13
13
  end
14
14
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ValidateParams
4
- VERSION = "0.14.0"
4
+ VERSION = "0.14.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validate-params
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - dcherevatenko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-26 00:00:00.000000000 Z
11
+ date: 2025-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack