validate-params 0.13.0 → 0.13.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 +4 -1
- data/Gemfile +2 -2
- data/Gemfile.lock +30 -30
- data/README.md +3 -1
- data/lib/validate_params/configuration.rb +1 -1
- data/lib/validate_params/param_validator.rb +1 -1
- data/lib/validate_params/version.rb +1 -1
- data/validate_params.gemspec +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: c7e15b3464314531ae9f982d69feb1fd6ad5f57ee9964cf37e83ba7fa9fe6939
|
4
|
+
data.tar.gz: f45cfcdaceaa64d3883165e0e8c9b7d4f86d8e065e8cc144e104006c7619c0b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0266c77d4a5ac354cd2056f2c9da2db95fc41566c0c02d83023d983c9b13c40a09fd8aabe5cb9a8bf39cc9a300a8f21d79e1c06db1a18f95d5eea8a115f314b3
|
7
|
+
data.tar.gz: 77d490ec23d2b849e4be9e45e11cdef57e76f125f1dc0a10f59de38f1b53ebe274b0215779e91661f09b77cc94e1d8506c9477ff9763bf27952b276e7a46213a
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
+
## [0.13.1] - 2024-04-22
|
2
|
+
|
3
|
+
- Improved checking for empty strings
|
4
|
+
|
1
5
|
## [0.13.0] - 2024-04-16
|
2
6
|
|
3
7
|
- Added `:scrub_invalid_utf8` and `:scrub_invalid_utf8_replacement` options to String type to handle invalid UTF-8 characters
|
4
8
|
- Added [configurator](README.md#configuration) to change default behaviour for certain options
|
5
9
|
|
6
|
-
|
7
10
|
## [0.12.5] - 2024-04-15
|
8
11
|
|
9
12
|
- Restrict validation rules for Hash type objects
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
validate-params (0.13.
|
4
|
+
validate-params (0.13.1)
|
5
5
|
activesupport (>= 6.1.0)
|
6
6
|
i18n (>= 1.6)
|
7
7
|
|
@@ -31,26 +31,26 @@ GEM
|
|
31
31
|
builder (3.2.4)
|
32
32
|
concurrent-ruby (1.2.2)
|
33
33
|
crass (1.0.6)
|
34
|
-
diff-lcs (1.5.
|
34
|
+
diff-lcs (1.5.1)
|
35
35
|
erubi (1.12.0)
|
36
36
|
i18n (1.13.0)
|
37
37
|
concurrent-ruby (~> 1.0)
|
38
|
-
json (2.
|
38
|
+
json (2.7.2)
|
39
39
|
language_server-protocol (3.17.0.3)
|
40
40
|
loofah (2.21.1)
|
41
41
|
crass (~> 1.0.2)
|
42
42
|
nokogiri (>= 1.5.9)
|
43
|
-
mini_portile2 (2.8.
|
43
|
+
mini_portile2 (2.8.6)
|
44
44
|
minitest (5.18.0)
|
45
|
-
nokogiri (1.
|
46
|
-
mini_portile2 (~> 2.8.
|
45
|
+
nokogiri (1.15.6)
|
46
|
+
mini_portile2 (~> 2.8.2)
|
47
47
|
racc (~> 1.4)
|
48
|
-
parallel (1.
|
49
|
-
parser (3.
|
48
|
+
parallel (1.24.0)
|
49
|
+
parser (3.3.0.5)
|
50
50
|
ast (~> 2.4.1)
|
51
51
|
racc
|
52
|
-
racc (1.7.
|
53
|
-
rack (2.2.
|
52
|
+
racc (1.7.3)
|
53
|
+
rack (2.2.9)
|
54
54
|
rack-test (2.1.0)
|
55
55
|
rack (>= 1.3)
|
56
56
|
rails-dom-testing (2.0.3)
|
@@ -59,35 +59,35 @@ GEM
|
|
59
59
|
rails-html-sanitizer (1.5.0)
|
60
60
|
loofah (~> 2.19, >= 2.19.1)
|
61
61
|
rainbow (3.1.1)
|
62
|
-
rake (13.
|
63
|
-
regexp_parser (2.
|
62
|
+
rake (13.2.1)
|
63
|
+
regexp_parser (2.9.0)
|
64
64
|
rexml (3.2.6)
|
65
|
-
rspec (3.
|
66
|
-
rspec-core (~> 3.
|
67
|
-
rspec-expectations (~> 3.
|
68
|
-
rspec-mocks (~> 3.
|
69
|
-
rspec-core (3.
|
70
|
-
rspec-support (~> 3.
|
71
|
-
rspec-expectations (3.
|
65
|
+
rspec (3.13.0)
|
66
|
+
rspec-core (~> 3.13.0)
|
67
|
+
rspec-expectations (~> 3.13.0)
|
68
|
+
rspec-mocks (~> 3.13.0)
|
69
|
+
rspec-core (3.13.0)
|
70
|
+
rspec-support (~> 3.13.0)
|
71
|
+
rspec-expectations (3.13.0)
|
72
72
|
diff-lcs (>= 1.2.0, < 2.0)
|
73
|
-
rspec-support (~> 3.
|
74
|
-
rspec-mocks (3.
|
73
|
+
rspec-support (~> 3.13.0)
|
74
|
+
rspec-mocks (3.13.0)
|
75
75
|
diff-lcs (>= 1.2.0, < 2.0)
|
76
|
-
rspec-support (~> 3.
|
77
|
-
rspec-support (3.
|
78
|
-
rubocop (1.
|
76
|
+
rspec-support (~> 3.13.0)
|
77
|
+
rspec-support (3.13.0)
|
78
|
+
rubocop (1.63.3)
|
79
79
|
json (~> 2.3)
|
80
80
|
language_server-protocol (>= 3.17.0)
|
81
81
|
parallel (~> 1.10)
|
82
|
-
parser (>= 3.
|
82
|
+
parser (>= 3.3.0.2)
|
83
83
|
rainbow (>= 2.2.2, < 4.0)
|
84
84
|
regexp_parser (>= 1.8, < 3.0)
|
85
85
|
rexml (>= 3.2.5, < 4.0)
|
86
|
-
rubocop-ast (>= 1.
|
86
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
87
87
|
ruby-progressbar (~> 1.7)
|
88
88
|
unicode-display_width (>= 2.4.0, < 3.0)
|
89
|
-
rubocop-ast (1.
|
90
|
-
parser (>= 3.
|
89
|
+
rubocop-ast (1.31.2)
|
90
|
+
parser (>= 3.3.0.4)
|
91
91
|
ruby-progressbar (1.13.0)
|
92
92
|
tzinfo (2.0.6)
|
93
93
|
concurrent-ruby (~> 1.0)
|
@@ -100,9 +100,9 @@ PLATFORMS
|
|
100
100
|
DEPENDENCIES
|
101
101
|
actionpack (>= 6.1.0)
|
102
102
|
bundler (~> 2.0)
|
103
|
-
rake (~> 13.
|
103
|
+
rake (~> 13.2)
|
104
104
|
rspec (~> 3.0)
|
105
|
-
rubocop (~> 1.
|
105
|
+
rubocop (~> 1.63)
|
106
106
|
validate-params!
|
107
107
|
|
108
108
|
BUNDLED WITH
|
data/README.md
CHANGED
@@ -20,7 +20,9 @@ If bundler is not being used to manage dependencies, install the gem by executin
|
|
20
20
|
To configure default options, create `config/initializers/validate_params.rb` file. Configuration example:
|
21
21
|
|
22
22
|
```ruby
|
23
|
-
|
23
|
+
require "validate_params/validatable"
|
24
|
+
|
25
|
+
Rails.application.config.before_initialize do
|
24
26
|
ValidateParams::Validatable.configure do |config|
|
25
27
|
config.scrub_invalid_utf8 = true # Default: false
|
26
28
|
config.scrub_invalid_utf8_replacement = "�" # Default: empty string
|
data/validate_params.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
|
27
27
|
spec.add_development_dependency "actionpack", ">= 6.1.0"
|
28
28
|
spec.add_development_dependency "bundler", "~> 2.0"
|
29
|
-
spec.add_development_dependency "rake", "~>
|
29
|
+
spec.add_development_dependency "rake", "~> 13.2"
|
30
30
|
spec.add_development_dependency "rspec", "~> 3.0"
|
31
31
|
|
32
32
|
spec.add_dependency "activesupport", ">= 6.1.0"
|
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.13.
|
4
|
+
version: 0.13.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-04-
|
11
|
+
date: 2024-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '13.2'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '13.2'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|