pr 0.0.5 → 0.0.6

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
  SHA1:
3
- metadata.gz: b1cd76860519054713a10563643ee26d21173126
4
- data.tar.gz: 489847382ddecbe7989b6680a37a52f6effd979c
3
+ metadata.gz: ef65bd2a1f97ff1d16a5d1cf329d5086482cc620
4
+ data.tar.gz: d54d0076a15492bd113b6a60ce6a285da1ce4b3e
5
5
  SHA512:
6
- metadata.gz: 44fc326290e27b73da2deee22c3a361aa3ccf38f7e3fefe85a42ef521232d26d3b4c629f01b771991cf832c4c1407ac731fd02f2152a47bc8f36dcb22d966f36
7
- data.tar.gz: 1eca81b2fee2c76a6cc185f3253dc6e673cd9daa6be0313c6b049ec2946160ab8c69e2a9b7a6fc6eb57174420d5ac52e62ac6684b0544103856f1da847477d21
6
+ metadata.gz: 8d54765159a833fcd3fb92be7c604c076e7a694deed9804662e96c4306820901eca82d692515748c048302b54b1c803be08d049e8e829e0ac035e5d14710e792
7
+ data.tar.gz: 07d87ca69addcf02aeafd75f8a58a7f7c8a476fc41f478060200f08bfb66897f308ea9e4b8055f0752e44f4c04604e924de251d77b4a0f36c9d88b0eea5bda91
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -15,7 +15,7 @@ class DefineField
15
15
 
16
16
  define_field klass, actual_field, var_name, field_setter
17
17
  define_reader klass, field_name, actual_field
18
- define_setter klass, var_name, field_setter, field
18
+ define_setter klass, var_name, field_setter, field, options
19
19
  end
20
20
 
21
21
  private
@@ -39,10 +39,10 @@ class DefineField
39
39
  end
40
40
  end
41
41
 
42
- def define_setter klass, var_name, field_setter, field
42
+ def define_setter klass, var_name, field_setter, field, options
43
43
  klass.class_eval do
44
44
  define_method(field_setter) do |value|
45
- instance_variable_set var_name, field.new(*([value].compact))
45
+ instance_variable_set var_name, field.new(value,options)
46
46
  end
47
47
  end
48
48
  end
@@ -1,3 +1,3 @@
1
1
  module PR
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Rowe
metadata.gz.sig CHANGED
Binary file