serialized_attr_accessors 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/serialized_attr_accessors.rb +4 -4
- metadata +8 -6
- checksums.yaml +0 -7
@@ -19,12 +19,12 @@ module SerializedAttrAccessors
|
|
19
19
|
module ClassMethods
|
20
20
|
#Stores list of attributes serialized
|
21
21
|
def serialized_attribute_list
|
22
|
-
|
22
|
+
@@parent_attribute_list ||= {:serialized_options => []}
|
23
23
|
end
|
24
24
|
|
25
25
|
#Gets serialized attribute currenly in use
|
26
26
|
def current_serialized_attr
|
27
|
-
|
27
|
+
@@curr_ser_attr ||= serialized_attribute_list.keys.first
|
28
28
|
end
|
29
29
|
|
30
30
|
#Generates getter and setter method with field_name and default_value (if provided else nil)
|
@@ -67,9 +67,9 @@ module SerializedAttrAccessors
|
|
67
67
|
#end
|
68
68
|
def for_serialized_field(fieldname)
|
69
69
|
if block_given?
|
70
|
-
|
70
|
+
@@curr_ser_attr = fieldname
|
71
71
|
yield
|
72
|
-
|
72
|
+
@@curr_ser_attr = serialized_attribute_list.keys.first
|
73
73
|
else
|
74
74
|
raise "ExpectedBlockWithAttributes"
|
75
75
|
end
|
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serialized_attr_accessors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Praveen Kumar Sinha
|
@@ -22,26 +23,27 @@ files:
|
|
22
23
|
- lib/serialized_attr_accessors.rb
|
23
24
|
homepage: https://github.com/praveenkumarsinha/SerializedAttributes/
|
24
25
|
licenses: []
|
25
|
-
metadata: {}
|
26
26
|
post_install_message:
|
27
27
|
rdoc_options: []
|
28
28
|
require_paths:
|
29
29
|
- lib
|
30
30
|
required_ruby_version: !ruby/object:Gem::Requirement
|
31
|
+
none: false
|
31
32
|
requirements:
|
32
|
-
- - '>='
|
33
|
+
- - ! '>='
|
33
34
|
- !ruby/object:Gem::Version
|
34
35
|
version: '0'
|
35
36
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
37
|
+
none: false
|
36
38
|
requirements:
|
37
|
-
- - '>='
|
39
|
+
- - ! '>='
|
38
40
|
- !ruby/object:Gem::Version
|
39
41
|
version: '0'
|
40
42
|
requirements: []
|
41
43
|
rubyforge_project:
|
42
|
-
rubygems_version:
|
44
|
+
rubygems_version: 1.8.25
|
43
45
|
signing_key:
|
44
|
-
specification_version:
|
46
|
+
specification_version: 3
|
45
47
|
summary: SerializedAttrAccessors for generating attr_accessors backed by serialized
|
46
48
|
column.
|
47
49
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: e1828d766de661b559f30e12f60c1622c17c3d95
|
4
|
-
data.tar.gz: 88ebe82796acfd06727200c1902ab13c98945a2e
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: db937425d71b600597180f20c31e35a48562873bfdac7b9faf7214eeaee8499921981f60a305d0279a35e47cce7d871d71ab1fcf7ba450fe3ef283e0070670c7
|
7
|
-
data.tar.gz: 85770f7cb3c308b795498d8ade3828592f31ac484eb9e12f8d32eeba2af583d7dc07b9e0ac990fbfa077f97ba9211f3ebb860e7e2c490597a027a9c25082e990
|