rails_simple_params 2.1.0 → 2.3.0
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/README.md +23 -14
- data/lib/rails_simple_params/coercion/big_decimal_param.rb +11 -6
- data/lib/rails_simple_params/coercion/boolean_param.rb +2 -2
- data/lib/rails_simple_params/coercion/hash_param.rb +1 -1
- data/lib/rails_simple_params/coercion/time_param.rb +1 -1
- data/lib/rails_simple_params/coercion.rb +1 -4
- data/lib/rails_simple_params/config_check/base.rb +5 -5
- data/lib/rails_simple_params/config_check.rb +5 -6
- data/lib/rails_simple_params/exceptions.rb +1 -0
- data/lib/rails_simple_params/param_evaluator.rb +19 -32
- data/lib/rails_simple_params/parameter.rb +6 -10
- data/lib/rails_simple_params/validator/blank.rb +2 -2
- data/lib/rails_simple_params/validator/format.rb +5 -10
- data/lib/rails_simple_params/validator/required.rb +1 -1
- data/lib/rails_simple_params/validator.rb +11 -6
- data/lib/rails_simple_params/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a845fd6ca29aa63c8cd45df789ed1f6a0c63d6966e30bc9823b65eab62897962
|
|
4
|
+
data.tar.gz: 732e164119a5a2a156c4d8491b7298cf7e5b229a37d5c2fe11805be74adecedc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e40cf00cc6a3e5b67f12a7b6153e6bdee1178707e2110712683d0d4a33004a86543879ee11dc7d591dc11e6e21ea96676d77286708a63f221a5158c9740e389
|
|
7
|
+
data.tar.gz: cda73e87a60e99aa261eefe9f2b6afdd1d71177079cc3a6fef01183fec19a11a894fc4acca66144a5115d6fa6607af134247ac0de9d53ef9fbef7845e5a1d897
|
data/README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# rails_simple_params
|
|
2
|
+
|
|
2
3
|
_Parameter Validation & Type Coercion for Rails_
|
|
3
4
|
|
|
4
5
|
## Introduction
|
|
@@ -39,7 +40,7 @@ As usual, in your Gemfile...
|
|
|
39
40
|
### Migrating from `rails_param`
|
|
40
41
|
|
|
41
42
|
Change any code you have rescuing `RailsParam::InvalidParameterError` to instead
|
|
42
|
-
rescue `
|
|
43
|
+
rescue `RailsSimpleParams::InvalidParameter` so you will continue to provide any
|
|
43
44
|
customized HTTP `4xx` responses appropriate for your app.
|
|
44
45
|
|
|
45
46
|
If you want to handle different types of validations separately — especially if
|
|
@@ -47,17 +48,18 @@ you want to handle your own I18n translations for the default English error
|
|
|
47
48
|
messages provided by this gem — you can rescue from any/all of the sub-classed
|
|
48
49
|
exception classes:
|
|
49
50
|
|
|
50
|
-
- `
|
|
51
|
-
- `
|
|
52
|
-
- `
|
|
53
|
-
- `
|
|
54
|
-
- `
|
|
55
|
-
- `
|
|
56
|
-
- `
|
|
57
|
-
- `
|
|
58
|
-
- `
|
|
59
|
-
- `
|
|
60
|
-
- `
|
|
51
|
+
- `RailsSimpleParams::EmptyParameter`
|
|
52
|
+
- `RailsSimpleParams::FileUpload`
|
|
53
|
+
- `RailsSimpleParams::InvalidFormat`
|
|
54
|
+
- `RailsSimpleParams::InvalidIdentity`
|
|
55
|
+
- `RailsSimpleParams::InvalidOption`
|
|
56
|
+
- `RailsSimpleParams::InvalidType`
|
|
57
|
+
- `RailsSimpleParams::MissingParameter`
|
|
58
|
+
- `RailsSimpleParams::OutOfRange`
|
|
59
|
+
- `RailsSimpleParams::TooLarge`
|
|
60
|
+
- `RailsSimpleParams::TooLong`
|
|
61
|
+
- `RailsSimpleParams::TooShort`
|
|
62
|
+
- `RailsSimpleParams::TooSmall`
|
|
61
63
|
|
|
62
64
|
## Using this Gem
|
|
63
65
|
|
|
@@ -70,7 +72,7 @@ exception classes:
|
|
|
70
72
|
param! :categories, Array
|
|
71
73
|
param! :sort, String, default: 'title'
|
|
72
74
|
param! :order, String, in: %w(asc desc), transform: :downcase, default: 'asc'
|
|
73
|
-
param! :price, String, format:
|
|
75
|
+
param! :price, String, format: /\A[<\=>]\s*\$\d+\z/
|
|
74
76
|
param! :results, Integer, in: (10..100)
|
|
75
77
|
|
|
76
78
|
# Access the parameters using the params object (e.g. `params[:q]`) as you usually do...
|
|
@@ -112,6 +114,13 @@ this kind of exception.
|
|
|
112
114
|
- `min_length` / `max_length`
|
|
113
115
|
- `required`
|
|
114
116
|
|
|
117
|
+
Format regular expressions should always use `\A` and `\z` anchors.
|
|
118
|
+
|
|
119
|
+
File uploads are always rejected: if a declared parameter (including one nested
|
|
120
|
+
in a `Hash` or `Array` block) receives an uploaded file, `RailsSimpleParams::FileUpload`
|
|
121
|
+
is raised regardless of the declared type. Parameters you don't declare with
|
|
122
|
+
`param!` are not inspected.
|
|
123
|
+
|
|
115
124
|
Customize exception message with option `:message`
|
|
116
125
|
|
|
117
126
|
```ruby
|
|
@@ -177,7 +186,7 @@ param! :books_array, Array, required: true do |b|
|
|
|
177
186
|
end
|
|
178
187
|
```
|
|
179
188
|
|
|
180
|
-
## Many thanks to
|
|
189
|
+
## Many thanks to
|
|
181
190
|
|
|
182
191
|
- [Nicolas Blanco](http://twitter.com/nblanco_fr)
|
|
183
192
|
- [Mattt Thompson](https://twitter.com/mattt)
|
|
@@ -8,13 +8,18 @@ module RailsSimpleParams
|
|
|
8
8
|
def coerce
|
|
9
9
|
return nil if param == '' # e.g. from an empty field in an HTML form
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
end
|
|
11
|
+
# Parse from a String (never via Float) so invalid input raises ArgumentError and no precision is lost.
|
|
12
|
+
# Kernel#BigDecimal ignores its precision argument for Strings, so round to significant digits explicitly.
|
|
13
|
+
value = BigDecimal(normalized_param).mult(1, options[:precision] || DEFAULT_PRECISION)
|
|
14
|
+
raise ArgumentError unless value.finite?
|
|
16
15
|
|
|
17
|
-
|
|
16
|
+
value
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
private
|
|
20
|
+
|
|
21
|
+
def normalized_param
|
|
22
|
+
param.is_a?(String) ? param.delete('$,').strip : param.to_s
|
|
18
23
|
end
|
|
19
24
|
end
|
|
20
25
|
end
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
module RailsSimpleParams
|
|
4
4
|
class Coercion
|
|
5
5
|
class BooleanParam < Base
|
|
6
|
-
FALSEY =
|
|
7
|
-
TRUTHY =
|
|
6
|
+
FALSEY = /\A(false|f|no|n|0)\z/i
|
|
7
|
+
TRUTHY = /\A(true|t|yes|y|1)\z/i
|
|
8
8
|
|
|
9
9
|
def coerce
|
|
10
10
|
return false if FALSEY === param.to_s
|
|
@@ -17,16 +17,13 @@ module RailsSimpleParams
|
|
|
17
17
|
boolean: BooleanParam
|
|
18
18
|
}.freeze
|
|
19
19
|
|
|
20
|
-
attr_reader :coercion
|
|
20
|
+
attr_reader :coercion
|
|
21
21
|
|
|
22
22
|
def initialize(param, type, options)
|
|
23
|
-
@param = param
|
|
24
23
|
@coercion = klass_for(type).new(param: param, options: options, type: type)
|
|
25
24
|
end
|
|
26
25
|
|
|
27
26
|
def coerce
|
|
28
|
-
return nil if param.nil?
|
|
29
|
-
|
|
30
27
|
coercion.coerce
|
|
31
28
|
end
|
|
32
29
|
|
|
@@ -18,7 +18,7 @@ module RailsSimpleParams
|
|
|
18
18
|
return unless (allowed = options[:in])
|
|
19
19
|
|
|
20
20
|
allowed = allowed.call if allowed.respond_to?(:call)
|
|
21
|
-
allowed = [allowed.begin, allowed.end] if allowed.is_a?(Range)
|
|
21
|
+
allowed = [allowed.begin, allowed.end].compact if allowed.is_a?(Range)
|
|
22
22
|
allowed
|
|
23
23
|
end
|
|
24
24
|
|
|
@@ -57,9 +57,9 @@ module RailsSimpleParams
|
|
|
57
57
|
validate_length :max_length
|
|
58
58
|
validate_length :min_length
|
|
59
59
|
return unless options.key?(:min_length) && options.key?(:max_length)
|
|
60
|
-
return if options[:min_length]
|
|
60
|
+
return if options[:min_length] <= options[:max_length]
|
|
61
61
|
|
|
62
|
-
raise_error ":max_length on #{param}
|
|
62
|
+
raise_error ":max_length on #{param} cannot be smaller than :min_length"
|
|
63
63
|
end
|
|
64
64
|
|
|
65
65
|
def validate_limit(key)
|
|
@@ -73,9 +73,9 @@ module RailsSimpleParams
|
|
|
73
73
|
validate_limit :max
|
|
74
74
|
validate_limit :min
|
|
75
75
|
return unless options.key?(:min) && options.key?(:max)
|
|
76
|
-
return if options[:min]
|
|
76
|
+
return if options[:min] <= options[:max]
|
|
77
77
|
|
|
78
|
-
raise_error ":max on #{param}
|
|
78
|
+
raise_error ":max on #{param} cannot be smaller than :min"
|
|
79
79
|
end
|
|
80
80
|
end
|
|
81
81
|
end
|
|
@@ -18,16 +18,15 @@ module RailsSimpleParams
|
|
|
18
18
|
}.freeze
|
|
19
19
|
|
|
20
20
|
def initialize(param, type, options)
|
|
21
|
-
klass_for(type).new(param: param, options: options, type: type)
|
|
21
|
+
klass_for(param, type).new(param: param, options: options, type: type)
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
private
|
|
25
25
|
|
|
26
|
-
def klass_for(type)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
raise TypeError
|
|
26
|
+
def klass_for(param, type)
|
|
27
|
+
PARAM_TYPE_MAPPING.fetch(type) do
|
|
28
|
+
raise InvalidConfiguration.new("#{type.inspect} is not a supported type for #{param}", param:)
|
|
29
|
+
end
|
|
31
30
|
end
|
|
32
31
|
end
|
|
33
32
|
end
|
|
@@ -18,6 +18,7 @@ module RailsSimpleParams
|
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
class EmptyParameter < InvalidParameter; end
|
|
21
|
+
class FileUpload < InvalidParameter; end
|
|
21
22
|
class InvalidFormat < InvalidParameter; end
|
|
22
23
|
class InvalidIdentity < InvalidParameter; end
|
|
23
24
|
class InvalidOption < InvalidParameter; end
|
|
@@ -9,40 +9,24 @@ module RailsSimpleParams
|
|
|
9
9
|
@context = context
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
-
def param!(name, type, options = {}, &) # rubocop:disable Metrics/
|
|
12
|
+
def param!(name, type, options = {}, &) # rubocop:disable Metrics/MethodLength
|
|
13
13
|
name = name.to_s unless name.is_a?(Integer)
|
|
14
|
-
return unless
|
|
14
|
+
return unless evaluate?(name, options)
|
|
15
15
|
|
|
16
16
|
parameter_name = @context ? "#{@context}[#{name}]" : name
|
|
17
|
-
|
|
18
|
-
coerced_value = coerce(parameter_name, params[name], type, options)
|
|
19
|
-
|
|
17
|
+
ConfigCheck.new(parameter_name, type, options)
|
|
20
18
|
parameter = RailsSimpleParams::Parameter.new(
|
|
21
19
|
name: parameter_name,
|
|
22
|
-
value:
|
|
20
|
+
value: coerce(parameter_name, params[name], type, options),
|
|
23
21
|
type: type,
|
|
24
22
|
options: options,
|
|
25
23
|
&
|
|
26
24
|
)
|
|
27
25
|
|
|
28
|
-
parameter.set_default
|
|
29
|
-
|
|
30
|
-
# validate presence
|
|
31
|
-
if params[name].nil? && options[:required]
|
|
32
|
-
raise MissingParameter.new(
|
|
33
|
-
"#{parameter_name} is required",
|
|
34
|
-
param: parameter_name,
|
|
35
|
-
options: options
|
|
36
|
-
)
|
|
37
|
-
end
|
|
38
|
-
|
|
26
|
+
parameter.set_default
|
|
39
27
|
recurse_on_parameter(parameter, &) if block_given?
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
parameter.transform if options[:transform]
|
|
43
|
-
|
|
44
|
-
# validate
|
|
45
|
-
validate!(parameter)
|
|
28
|
+
parameter.transform
|
|
29
|
+
parameter.validate
|
|
46
30
|
|
|
47
31
|
# set params value
|
|
48
32
|
params[name] = parameter.value
|
|
@@ -52,6 +36,8 @@ module RailsSimpleParams
|
|
|
52
36
|
|
|
53
37
|
def coerce(param_name, param, type, options = {})
|
|
54
38
|
return nil if param.nil?
|
|
39
|
+
|
|
40
|
+
reject_file_upload!(param_name, param, options)
|
|
55
41
|
return param if begin
|
|
56
42
|
param.is_a?(type)
|
|
57
43
|
rescue StandardError
|
|
@@ -63,12 +49,14 @@ module RailsSimpleParams
|
|
|
63
49
|
raise InvalidType.new("'#{param}' is not a valid #{type}", param: param_name)
|
|
64
50
|
end
|
|
65
51
|
|
|
66
|
-
def
|
|
67
|
-
|
|
52
|
+
def evaluate?(name, options)
|
|
53
|
+
params.include?(name) || !options[:default].nil? || options[:required]
|
|
68
54
|
end
|
|
69
55
|
|
|
70
|
-
def
|
|
71
|
-
|
|
56
|
+
def reject_file_upload!(param_name, param, options)
|
|
57
|
+
return unless param.respond_to?(:original_filename) && param.respond_to?(:tempfile)
|
|
58
|
+
|
|
59
|
+
raise FileUpload.new("#{param_name} does not allow file uploads", param: param_name, options: options)
|
|
72
60
|
end
|
|
73
61
|
|
|
74
62
|
def recurse(element, context, index = nil)
|
|
@@ -85,16 +73,15 @@ module RailsSimpleParams
|
|
|
85
73
|
if element.is_a?(Hash) || element.is_a?(ActionController::Parameters)
|
|
86
74
|
recurse(element, "#{parameter.name}[#{i}]", &)
|
|
87
75
|
else
|
|
88
|
-
|
|
76
|
+
# do not rely on the block's return value
|
|
77
|
+
wrapper = { i => element }
|
|
78
|
+
recurse(wrapper, parameter.name, i, &)
|
|
79
|
+
parameter.value[i] = wrapper[i]
|
|
89
80
|
end
|
|
90
81
|
end
|
|
91
82
|
else
|
|
92
83
|
recurse(parameter.value, parameter.name, &)
|
|
93
84
|
end
|
|
94
85
|
end
|
|
95
|
-
|
|
96
|
-
def validate!(param)
|
|
97
|
-
param.validate
|
|
98
|
-
end
|
|
99
86
|
end
|
|
100
87
|
end
|
|
@@ -4,9 +4,6 @@ module RailsSimpleParams
|
|
|
4
4
|
class Parameter
|
|
5
5
|
attr_accessor :name, :value, :options, :type
|
|
6
6
|
|
|
7
|
-
TIME_TYPES = [Date, DateTime, Time].freeze
|
|
8
|
-
STRING_OR_TIME_TYPES = ([String] + TIME_TYPES).freeze
|
|
9
|
-
|
|
10
7
|
def initialize(name:, value:, options: {}, type: nil)
|
|
11
8
|
@name = name
|
|
12
9
|
@value = value
|
|
@@ -15,25 +12,24 @@ module RailsSimpleParams
|
|
|
15
12
|
end
|
|
16
13
|
|
|
17
14
|
def should_set_default?
|
|
18
|
-
value.
|
|
15
|
+
value.blank? && !options[:default].nil?
|
|
19
16
|
end
|
|
20
17
|
|
|
21
18
|
def set_default
|
|
19
|
+
return unless should_set_default?
|
|
20
|
+
|
|
22
21
|
self.value = options[:default].respond_to?(:call) ? options[:default].call : options[:default]
|
|
23
22
|
end
|
|
24
23
|
|
|
25
24
|
def transform
|
|
25
|
+
return if value.nil?
|
|
26
|
+
return unless options[:transform]
|
|
27
|
+
|
|
26
28
|
self.value = options[:transform].to_proc.call(value)
|
|
27
29
|
end
|
|
28
30
|
|
|
29
31
|
def validate
|
|
30
32
|
Validator.new(self).validate!
|
|
31
33
|
end
|
|
32
|
-
|
|
33
|
-
private
|
|
34
|
-
|
|
35
|
-
def check_param_presence?(param)
|
|
36
|
-
!param.nil?
|
|
37
|
-
end
|
|
38
34
|
end
|
|
39
35
|
end
|
|
@@ -4,11 +4,11 @@ module RailsSimpleParams
|
|
|
4
4
|
class Validator
|
|
5
5
|
class Blank < Validator
|
|
6
6
|
def valid_value?
|
|
7
|
-
return
|
|
7
|
+
return true if options[:blank] # blank: true explicitly allows blank values
|
|
8
8
|
|
|
9
9
|
case value
|
|
10
10
|
when String
|
|
11
|
-
(/\S/ === value)
|
|
11
|
+
(/\S/ === value)
|
|
12
12
|
when Array, Hash, ActionController::Parameters
|
|
13
13
|
!value.empty?
|
|
14
14
|
else
|
|
@@ -4,32 +4,27 @@ module RailsSimpleParams
|
|
|
4
4
|
class Validator
|
|
5
5
|
class Format < Validator
|
|
6
6
|
TIME_TYPES = [Date, DateTime, Time].freeze
|
|
7
|
-
STRING_OR_TIME_TYPES = ([String] + TIME_TYPES).freeze
|
|
8
7
|
|
|
8
|
+
# ConfigCheck only allows :format on String and time types, so after coercion the value is a
|
|
9
|
+
# String, a Date/DateTime/Time (already parsed with the format), or nil (absent or null input).
|
|
9
10
|
def valid_value?
|
|
10
|
-
matches_time_types? || string_in_format?
|
|
11
|
+
value.nil? || matches_time_types? || string_in_format?
|
|
11
12
|
end
|
|
12
13
|
|
|
13
14
|
private
|
|
14
15
|
|
|
15
16
|
def error_message
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"#{name} must match format #{options[:format]}" unless string_in_format?
|
|
17
|
+
"#{name} must match format #{options[:format]}"
|
|
19
18
|
end
|
|
20
19
|
|
|
21
20
|
def exception_class
|
|
22
|
-
|
|
21
|
+
InvalidFormat
|
|
23
22
|
end
|
|
24
23
|
|
|
25
24
|
def matches_time_types?
|
|
26
25
|
TIME_TYPES.any? { |cls| value.is_a? cls }
|
|
27
26
|
end
|
|
28
27
|
|
|
29
|
-
def matches_string_or_time_types?
|
|
30
|
-
STRING_OR_TIME_TYPES.any? { |cls| value.is_a? cls }
|
|
31
|
-
end
|
|
32
|
-
|
|
33
28
|
def string_in_format?
|
|
34
29
|
value.is_a?(String) && (value == '' || value =~ options[:format])
|
|
35
30
|
end
|
|
@@ -9,7 +9,7 @@ module RailsSimpleParams
|
|
|
9
9
|
return true unless options[:required]
|
|
10
10
|
return false if value.nil?
|
|
11
11
|
return false if value == ''
|
|
12
|
-
return false if value.
|
|
12
|
+
return false if value.respond_to?(:empty?) && value.empty?
|
|
13
13
|
|
|
14
14
|
true
|
|
15
15
|
end
|
|
@@ -10,8 +10,8 @@ module RailsSimpleParams
|
|
|
10
10
|
|
|
11
11
|
def_delegators :parameter, :name, :options, :value
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
PRESENCE_OPTIONS = %i[required blank].freeze # these run first
|
|
14
|
+
VALUE_OPTIONS = %i[
|
|
15
15
|
custom
|
|
16
16
|
format
|
|
17
17
|
in
|
|
@@ -20,7 +20,6 @@ module RailsSimpleParams
|
|
|
20
20
|
max
|
|
21
21
|
min_length
|
|
22
22
|
min
|
|
23
|
-
required
|
|
24
23
|
].freeze
|
|
25
24
|
|
|
26
25
|
def initialize(parameter)
|
|
@@ -28,11 +27,13 @@ module RailsSimpleParams
|
|
|
28
27
|
end
|
|
29
28
|
|
|
30
29
|
def validate!
|
|
30
|
+
PRESENCE_OPTIONS.each { |key| run_validator(key) if options.key?(key) }
|
|
31
|
+
return if value.nil?
|
|
32
|
+
|
|
31
33
|
options.each_key do |key|
|
|
32
|
-
next unless
|
|
34
|
+
next unless VALUE_OPTIONS.include?(key)
|
|
33
35
|
|
|
34
|
-
|
|
35
|
-
Validator.const_get(class_name).new(parameter).valid!
|
|
36
|
+
run_validator(key)
|
|
36
37
|
end
|
|
37
38
|
end
|
|
38
39
|
|
|
@@ -48,6 +49,10 @@ module RailsSimpleParams
|
|
|
48
49
|
|
|
49
50
|
private
|
|
50
51
|
|
|
52
|
+
def run_validator(key)
|
|
53
|
+
Validator.const_get(camelize(key)).new(parameter).valid!
|
|
54
|
+
end
|
|
55
|
+
|
|
51
56
|
def camelize(term)
|
|
52
57
|
string = term.to_s
|
|
53
58
|
string.split('_').collect(&:capitalize).join
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_simple_params
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeremy Weathers
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-
|
|
10
|
+
date: 2026-11-22 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: actionpack
|
|
@@ -211,7 +211,7 @@ files:
|
|
|
211
211
|
- lib/rails_simple_params/validator/min_length.rb
|
|
212
212
|
- lib/rails_simple_params/validator/required.rb
|
|
213
213
|
- lib/rails_simple_params/version.rb
|
|
214
|
-
homepage:
|
|
214
|
+
homepage: https://github.com/jlw/rails_simple_params
|
|
215
215
|
licenses:
|
|
216
216
|
- MIT
|
|
217
217
|
metadata:
|