parameter_sets 0.0.1 → 1.0.0

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: cf4d020e1fd5ac660c72ce5c00e973237c2a469cf6ec326b26a17c0de3c58564
4
- data.tar.gz: f92a2eb6dde40a6cefffdac63ec8eefe8deb96a2edb2feffedaaae266f6a046f
3
+ metadata.gz: a456ea781cb931e733db34a235c0b52b0c923514d245062f3db81eb1d27718bd
4
+ data.tar.gz: d634a869bab05c22aeedbc085b3a0efc0e926f47a32b6330d577d2bb4b2c9991
5
5
  SHA512:
6
- metadata.gz: d3407e09f74ca259275ed27b99ee5a3cb749bf70e1d77420360dbec78dd5b1d3eb1c7a78af00432c9b7e861272ac2f4d134403510e40191bb0e610bd4a457beb
7
- data.tar.gz: 73d67bda692338e7bfd5e5e39e72caf78e0f8bb4ca0d47491d16dfe01ea987853a74f46b5557f82f02da868294f1bdc6c799b99b56bc5052c687153c7e15b44b
6
+ metadata.gz: a59129df2a465e084862f47357a8b7a45f527b7e521da27e9e105c168b80dd07f47213b65cf1a9b532c45d1fa9b3ac81d906645c999f423ebb683265fc64c98d
7
+ data.tar.gz: ac0be287ad6315a4c845ee6ed766709634e293b6381bb961a55dce574ec7a268ffc9698e71fa0656e1c1769ed305777209e1bfe7535e741f92cf839f8f6f182d
@@ -13,7 +13,7 @@ module ParameterSets
13
13
  raise ParameterSetNotDefinedError, "No parameter set named #{name} is defined"
14
14
  end
15
15
  else
16
- param_set_for(name)
16
+ param_set_for(name, object.is_a?(Hash) ? object : nil)
17
17
  end
18
18
  end
19
19
 
@@ -1,3 +1,3 @@
1
1
  module ParameterSets
2
- VERSION = '0.0.1'
2
+ VERSION = '1.0.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parameter_sets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-19 00:00:00.000000000 Z
11
+ date: 2018-02-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A friendly schema for defining permitted parameters in Rails.
14
14
  email: