has_serialized 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -1
- data/Gemfile.lock +22 -17
- data/VERSION +1 -1
- data/has_serialized.gemspec +8 -5
- data/lib/has_serialized/class_methods.rb +1 -1
- data/spec/spec_helper.rb +3 -2
- metadata +49 -32
data/Gemfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
2
|
# Add dependencies required to use your gem here.
|
3
3
|
# Example:
|
4
|
-
gem "activerecord", "
|
4
|
+
gem "activerecord", "~> 3.1.0.rc"
|
5
5
|
# Add dependencies to develop your gem here.
|
6
6
|
# Include everything needed to run rake, tests, features, etc.
|
7
7
|
group :development do
|
@@ -12,4 +12,5 @@ group :development do
|
|
12
12
|
gem "guard-rspec"
|
13
13
|
gem "libnotify"
|
14
14
|
gem "sqlite3"
|
15
|
+
gem "arel", "2.1.4"
|
15
16
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,51 +1,56 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
activemodel (3.0.
|
5
|
-
activesupport (= 3.0.
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
4
|
+
activemodel (3.1.0.rc5)
|
5
|
+
activesupport (= 3.1.0.rc5)
|
6
|
+
bcrypt-ruby (~> 2.1.4)
|
7
|
+
builder (~> 3.0.0)
|
8
|
+
i18n (~> 0.6)
|
9
|
+
activerecord (3.1.0.rc5)
|
10
|
+
activemodel (= 3.1.0.rc5)
|
11
|
+
activesupport (= 3.1.0.rc5)
|
12
|
+
arel (~> 2.1.4)
|
13
|
+
tzinfo (~> 0.3.29)
|
14
|
+
activesupport (3.1.0.rc5)
|
15
|
+
multi_json (~> 1.0)
|
16
|
+
arel (2.1.4)
|
17
|
+
bcrypt-ruby (2.1.4)
|
18
|
+
builder (3.0.0)
|
16
19
|
diff-lcs (1.1.2)
|
17
|
-
ffi (1.0.
|
20
|
+
ffi (1.0.9)
|
18
21
|
git (1.2.5)
|
19
22
|
guard (0.3.4)
|
20
23
|
thor (~> 0.14.6)
|
21
24
|
guard-rspec (0.3.1)
|
22
25
|
guard (>= 0.2.2)
|
23
|
-
i18n (0.
|
26
|
+
i18n (0.6.0)
|
24
27
|
jeweler (1.5.2)
|
25
28
|
bundler (~> 1.0.0)
|
26
29
|
git (>= 1.2.5)
|
27
30
|
rake
|
28
31
|
libnotify (0.5.1)
|
29
32
|
ffi (~> 1.0)
|
33
|
+
multi_json (1.0.3)
|
30
34
|
rake (0.8.7)
|
31
35
|
rcov (0.9.9)
|
32
36
|
rspec (2.6.0)
|
33
37
|
rspec-core (~> 2.6.0)
|
34
38
|
rspec-expectations (~> 2.6.0)
|
35
39
|
rspec-mocks (~> 2.6.0)
|
36
|
-
rspec-core (2.6.
|
40
|
+
rspec-core (2.6.4)
|
37
41
|
rspec-expectations (2.6.0)
|
38
42
|
diff-lcs (~> 1.1.2)
|
39
43
|
rspec-mocks (2.6.0)
|
40
44
|
sqlite3 (1.3.3)
|
41
45
|
thor (0.14.6)
|
42
|
-
tzinfo (0.3.
|
46
|
+
tzinfo (0.3.29)
|
43
47
|
|
44
48
|
PLATFORMS
|
45
49
|
ruby
|
46
50
|
|
47
51
|
DEPENDENCIES
|
48
|
-
activerecord (
|
52
|
+
activerecord (~> 3.1.0.rc)
|
53
|
+
arel (= 2.1.4)
|
49
54
|
bundler (~> 1.0.0)
|
50
55
|
guard-rspec
|
51
56
|
jeweler (~> 1.5.2)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/has_serialized.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{has_serialized}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ramon Tayag"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-08-13}
|
13
13
|
s.description = %q{Adds dynamic attributes through serialize. This way, it's in one table, and it's still trivial to track changes to your records.}
|
14
14
|
s.email = %q{ramon@tayag.net}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -49,7 +49,7 @@ Gem::Specification.new do |s|
|
|
49
49
|
s.specification_version = 3
|
50
50
|
|
51
51
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
52
|
-
s.add_runtime_dependency(%q<activerecord>, ["
|
52
|
+
s.add_runtime_dependency(%q<activerecord>, ["~> 3.1.0.rc"])
|
53
53
|
s.add_development_dependency(%q<rspec>, ["~> 2.6.0"])
|
54
54
|
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
55
55
|
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
@@ -57,8 +57,9 @@ Gem::Specification.new do |s|
|
|
57
57
|
s.add_development_dependency(%q<guard-rspec>, [">= 0"])
|
58
58
|
s.add_development_dependency(%q<libnotify>, [">= 0"])
|
59
59
|
s.add_development_dependency(%q<sqlite3>, [">= 0"])
|
60
|
+
s.add_development_dependency(%q<arel>, ["= 2.1.4"])
|
60
61
|
else
|
61
|
-
s.add_dependency(%q<activerecord>, ["
|
62
|
+
s.add_dependency(%q<activerecord>, ["~> 3.1.0.rc"])
|
62
63
|
s.add_dependency(%q<rspec>, ["~> 2.6.0"])
|
63
64
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
64
65
|
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
@@ -66,9 +67,10 @@ Gem::Specification.new do |s|
|
|
66
67
|
s.add_dependency(%q<guard-rspec>, [">= 0"])
|
67
68
|
s.add_dependency(%q<libnotify>, [">= 0"])
|
68
69
|
s.add_dependency(%q<sqlite3>, [">= 0"])
|
70
|
+
s.add_dependency(%q<arel>, ["= 2.1.4"])
|
69
71
|
end
|
70
72
|
else
|
71
|
-
s.add_dependency(%q<activerecord>, ["
|
73
|
+
s.add_dependency(%q<activerecord>, ["~> 3.1.0.rc"])
|
72
74
|
s.add_dependency(%q<rspec>, ["~> 2.6.0"])
|
73
75
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
74
76
|
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
@@ -76,6 +78,7 @@ Gem::Specification.new do |s|
|
|
76
78
|
s.add_dependency(%q<guard-rspec>, [">= 0"])
|
77
79
|
s.add_dependency(%q<libnotify>, [">= 0"])
|
78
80
|
s.add_dependency(%q<sqlite3>, [">= 0"])
|
81
|
+
s.add_dependency(%q<arel>, ["= 2.1.4"])
|
79
82
|
end
|
80
83
|
end
|
81
84
|
|
data/spec/spec_helper.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
2
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
|
3
4
|
require 'rubygems'
|
4
5
|
require 'active_record'
|
5
6
|
require 'rspec'
|
6
7
|
require 'has_serialized'
|
7
|
-
require '
|
8
|
-
require '
|
8
|
+
require 'fixtures/category'
|
9
|
+
require 'fixtures/page'
|
9
10
|
|
10
11
|
#Allow to connect to SQLite
|
11
12
|
root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_serialized
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ramon Tayag
|
@@ -15,28 +15,30 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-08-13 00:00:00 +08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
+
name: activerecord
|
22
23
|
type: :runtime
|
23
|
-
|
24
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
25
|
none: false
|
25
26
|
requirements:
|
26
|
-
- -
|
27
|
+
- - ~>
|
27
28
|
- !ruby/object:Gem::Version
|
28
|
-
hash:
|
29
|
+
hash: 7712034
|
29
30
|
segments:
|
30
31
|
- 3
|
32
|
+
- 1
|
31
33
|
- 0
|
32
|
-
-
|
33
|
-
version: 3.0.
|
34
|
-
name: activerecord
|
35
|
-
version_requirements: *id001
|
34
|
+
- rc
|
35
|
+
version: 3.1.0.rc
|
36
36
|
prerelease: false
|
37
|
+
requirement: *id001
|
37
38
|
- !ruby/object:Gem::Dependency
|
39
|
+
name: rspec
|
38
40
|
type: :development
|
39
|
-
|
41
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
42
|
none: false
|
41
43
|
requirements:
|
42
44
|
- - ~>
|
@@ -47,12 +49,12 @@ dependencies:
|
|
47
49
|
- 6
|
48
50
|
- 0
|
49
51
|
version: 2.6.0
|
50
|
-
name: rspec
|
51
|
-
version_requirements: *id002
|
52
52
|
prerelease: false
|
53
|
+
requirement: *id002
|
53
54
|
- !ruby/object:Gem::Dependency
|
55
|
+
name: bundler
|
54
56
|
type: :development
|
55
|
-
|
57
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
56
58
|
none: false
|
57
59
|
requirements:
|
58
60
|
- - ~>
|
@@ -63,12 +65,12 @@ dependencies:
|
|
63
65
|
- 0
|
64
66
|
- 0
|
65
67
|
version: 1.0.0
|
66
|
-
name: bundler
|
67
|
-
version_requirements: *id003
|
68
68
|
prerelease: false
|
69
|
+
requirement: *id003
|
69
70
|
- !ruby/object:Gem::Dependency
|
71
|
+
name: jeweler
|
70
72
|
type: :development
|
71
|
-
|
73
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
72
74
|
none: false
|
73
75
|
requirements:
|
74
76
|
- - ~>
|
@@ -79,12 +81,12 @@ dependencies:
|
|
79
81
|
- 5
|
80
82
|
- 2
|
81
83
|
version: 1.5.2
|
82
|
-
name: jeweler
|
83
|
-
version_requirements: *id004
|
84
84
|
prerelease: false
|
85
|
+
requirement: *id004
|
85
86
|
- !ruby/object:Gem::Dependency
|
87
|
+
name: rcov
|
86
88
|
type: :development
|
87
|
-
|
89
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
88
90
|
none: false
|
89
91
|
requirements:
|
90
92
|
- - ">="
|
@@ -93,12 +95,12 @@ dependencies:
|
|
93
95
|
segments:
|
94
96
|
- 0
|
95
97
|
version: "0"
|
96
|
-
name: rcov
|
97
|
-
version_requirements: *id005
|
98
98
|
prerelease: false
|
99
|
+
requirement: *id005
|
99
100
|
- !ruby/object:Gem::Dependency
|
101
|
+
name: guard-rspec
|
100
102
|
type: :development
|
101
|
-
|
103
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
102
104
|
none: false
|
103
105
|
requirements:
|
104
106
|
- - ">="
|
@@ -107,12 +109,12 @@ dependencies:
|
|
107
109
|
segments:
|
108
110
|
- 0
|
109
111
|
version: "0"
|
110
|
-
name: guard-rspec
|
111
|
-
version_requirements: *id006
|
112
112
|
prerelease: false
|
113
|
+
requirement: *id006
|
113
114
|
- !ruby/object:Gem::Dependency
|
115
|
+
name: libnotify
|
114
116
|
type: :development
|
115
|
-
|
117
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
116
118
|
none: false
|
117
119
|
requirements:
|
118
120
|
- - ">="
|
@@ -121,12 +123,12 @@ dependencies:
|
|
121
123
|
segments:
|
122
124
|
- 0
|
123
125
|
version: "0"
|
124
|
-
name: libnotify
|
125
|
-
version_requirements: *id007
|
126
126
|
prerelease: false
|
127
|
+
requirement: *id007
|
127
128
|
- !ruby/object:Gem::Dependency
|
129
|
+
name: sqlite3
|
128
130
|
type: :development
|
129
|
-
|
131
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
130
132
|
none: false
|
131
133
|
requirements:
|
132
134
|
- - ">="
|
@@ -135,9 +137,24 @@ dependencies:
|
|
135
137
|
segments:
|
136
138
|
- 0
|
137
139
|
version: "0"
|
138
|
-
name: sqlite3
|
139
|
-
version_requirements: *id008
|
140
140
|
prerelease: false
|
141
|
+
requirement: *id008
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: arel
|
144
|
+
type: :development
|
145
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
146
|
+
none: false
|
147
|
+
requirements:
|
148
|
+
- - "="
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
hash: 3
|
151
|
+
segments:
|
152
|
+
- 2
|
153
|
+
- 1
|
154
|
+
- 4
|
155
|
+
version: 2.1.4
|
156
|
+
prerelease: false
|
157
|
+
requirement: *id009
|
141
158
|
description: Adds dynamic attributes through serialize. This way, it's in one table, and it's still trivial to track changes to your records.
|
142
159
|
email: ramon@tayag.net
|
143
160
|
executables: []
|