filterameter 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/filterameter/filter_registry.rb +6 -4
- data/lib/filterameter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9240312d328da15d2d007226b2c19f29cb9de9ec0a19ebd7cc6551cad64cabf2
|
4
|
+
data.tar.gz: fa0044f0983f298258451fda21c68388af52a45d9dc62e631d18ee910334eef3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29a0f5344ea78d56cf4984ea9de64d587b541ffe3b3e94eca85234f3c004d6c9eaa4c055d15351f180fd2791172075b8a5fdef21a3a139cb4d909da385f638ac
|
7
|
+
data.tar.gz: 277e0d817280074f8e4725d321e09a5b819be0031fccbd7382b2700928919151e3f5a4ad72618a5155d6cb1a57cafb22b507983382ae1db9bdb452ad439809cc
|
@@ -46,14 +46,16 @@ module Filterameter
|
|
46
46
|
|
47
47
|
def add_range_minimum(parameter_name, options)
|
48
48
|
parameter_name_min = "#{parameter_name}_min"
|
49
|
-
|
50
|
-
|
49
|
+
options_with_range = options.with_defaults(name: parameter_name)
|
50
|
+
.merge(range: :min_only)
|
51
|
+
@declarations[parameter_name_min] = Filterameter::FilterDeclaration.new(parameter_name_min, options_with_range)
|
51
52
|
end
|
52
53
|
|
53
54
|
def add_range_maximum(parameter_name, options)
|
54
55
|
parameter_name_max = "#{parameter_name}_max"
|
55
|
-
|
56
|
-
|
56
|
+
options_with_range = options.with_defaults(name: parameter_name)
|
57
|
+
.merge(range: :max_only)
|
58
|
+
@declarations[parameter_name_max] = Filterameter::FilterDeclaration.new(parameter_name_max, options_with_range)
|
57
59
|
end
|
58
60
|
|
59
61
|
def capture_range_declaration(name)
|
data/lib/filterameter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filterameter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Todd Kummer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|