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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b2ac8a6c211408669122ab5bf2a131ade58736fa145508305f5ebe3dc9c0bdb
4
- data.tar.gz: 9216ddecfedab830f9a3a82cf9c1936f040e64664b23b2d16a4ccd71f1f4923e
3
+ metadata.gz: 9240312d328da15d2d007226b2c19f29cb9de9ec0a19ebd7cc6551cad64cabf2
4
+ data.tar.gz: fa0044f0983f298258451fda21c68388af52a45d9dc62e631d18ee910334eef3
5
5
  SHA512:
6
- metadata.gz: ad640c098660b98a33f54378f16dced7d3c2dd278c6d6b6db120d2026cb7f03bda5f0d5033653e697af153eff4bdb3c9c84e39d263a18eedba5075098b7354ef
7
- data.tar.gz: 3e775bbe1d6ed769bdfb1a83ac3f4a74c69128517a5bf6ea3fc140e50a8b025214d87d544c9263ad4bf0495f34d477f7a2128836f81e7b6a82d4ec037b9df938
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
- @declarations[parameter_name_min] = Filterameter::FilterDeclaration.new(parameter_name_min,
50
- options.merge(range: :min_only))
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
- @declarations[parameter_name_max] = Filterameter::FilterDeclaration.new(parameter_name_max,
56
- options.merge(range: :max_only))
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Filterameter
4
- VERSION = '0.6.0'
4
+ VERSION = '0.6.1'
5
5
  end
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.0
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-28 00:00:00.000000000 Z
11
+ date: 2024-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails