serialist 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/serialist/serialist_module.rb +1 -1
- data/serialist.gemspec +3 -3
- metadata +12 -5
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.5.0
|
@@ -13,7 +13,6 @@ module Serialist
|
|
13
13
|
@serialist_options ||= []
|
14
14
|
@serialist_options = (@serialist_options + serialist_options).uniq
|
15
15
|
serialize(@serialist_field, Hash)
|
16
|
-
|
17
16
|
if serialist_options.empty?
|
18
17
|
# catch-all mode
|
19
18
|
include Serialist::InstanceMethods
|
@@ -57,6 +56,7 @@ module Serialist
|
|
57
56
|
define_method method do |param|
|
58
57
|
self.send(serialist_field.to_s + "=", Hash.new) unless self.send(serialist_field)
|
59
58
|
self.send(serialist_field)[method[0..-2].to_sym] = param
|
59
|
+
write_attribute(serialist_field.to_s, self.send(serialist_field)) # needed to get dirty
|
60
60
|
end
|
61
61
|
else
|
62
62
|
define_method method do
|
data/serialist.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{serialist}
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.5.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Benoit B\303\251n\303\251zech"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-03-01}
|
13
13
|
s.description = %q{Serialize any data, set and fetch it like any column attributes}
|
14
14
|
s.email = %q{benoit.benezech@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -38,7 +38,7 @@ Gem::Specification.new do |s|
|
|
38
38
|
s.homepage = %q{http://github.com/bbenezech/serialist}
|
39
39
|
s.rdoc_options = ["--charset=UTF-8"]
|
40
40
|
s.require_paths = ["lib"]
|
41
|
-
s.rubygems_version = %q{1.3.
|
41
|
+
s.rubygems_version = %q{1.3.6}
|
42
42
|
s.summary = %q{Serialize any data, set and fetch it like any column attributes}
|
43
43
|
s.test_files = [
|
44
44
|
"test/serialist_test.rb"
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serialist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 5
|
8
|
+
- 0
|
9
|
+
version: 1.5.0
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- "Benoit B\xC3\xA9n\xC3\xA9zech"
|
@@ -9,7 +14,7 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date: 2010-
|
17
|
+
date: 2010-03-01 00:00:00 +01:00
|
13
18
|
default_executable:
|
14
19
|
dependencies: []
|
15
20
|
|
@@ -53,18 +58,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
53
58
|
requirements:
|
54
59
|
- - ">="
|
55
60
|
- !ruby/object:Gem::Version
|
61
|
+
segments:
|
62
|
+
- 0
|
56
63
|
version: "0"
|
57
|
-
version:
|
58
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
65
|
requirements:
|
60
66
|
- - ">="
|
61
67
|
- !ruby/object:Gem::Version
|
68
|
+
segments:
|
69
|
+
- 0
|
62
70
|
version: "0"
|
63
|
-
version:
|
64
71
|
requirements: []
|
65
72
|
|
66
73
|
rubyforge_project:
|
67
|
-
rubygems_version: 1.3.
|
74
|
+
rubygems_version: 1.3.6
|
68
75
|
signing_key:
|
69
76
|
specification_version: 3
|
70
77
|
summary: Serialize any data, set and fetch it like any column attributes
|