secretary-rails 1.0.0.beta1 → 1.0.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +49 -17
- data/lib/generators/secretary/install_generator.rb +1 -1
- data/lib/secretary/dirty/collection_association.rb +74 -0
- data/lib/secretary/dirty/singular_association.rb +84 -0
- data/lib/secretary/dirty.rb +8 -0
- data/lib/secretary/errors.rb +22 -6
- data/lib/secretary/gem_version.rb +1 -1
- data/lib/secretary/has_secretary.rb +13 -3
- data/lib/secretary/tracks_association.rb +33 -75
- data/lib/secretary/versioned_attributes.rb +0 -3
- data/lib/secretary.rb +1 -0
- data/spec/factories.rb +11 -0
- data/spec/internal/app/models/animal.rb +1 -3
- data/spec/internal/app/models/car.rb +2 -0
- data/spec/internal/app/models/image.rb +6 -0
- data/spec/internal/app/models/person.rb +2 -6
- data/spec/internal/app/models/story.rb +4 -0
- data/spec/internal/db/combustion_test.sqlite +0 -0
- data/spec/internal/db/schema.rb +14 -0
- data/spec/internal/log/test.log +8329 -0
- data/spec/lib/secretary/dirty/collection_association_spec.rb +186 -0
- data/spec/lib/secretary/dirty/singular_association_spec.rb +248 -0
- data/spec/lib/secretary/has_secretary_spec.rb +9 -0
- data/spec/lib/secretary/tracks_association_spec.rb +6 -198
- data/spec/spec_helper.rb +1 -1
- metadata +29 -18
- /data/spec/tmp/db/migrate/{20131105082639_create_versions.rb → 20131106020537_create_versions.rb} +0 -0
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: secretary-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.beta2
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-11-
|
12
|
+
date: 2013-11-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
16
|
-
requirement: &
|
16
|
+
requirement: &70106492643440 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.2.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70106492643440
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: activerecord
|
27
|
-
requirement: &
|
27
|
+
requirement: &70106492642940 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 3.2.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70106492642940
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: diffy
|
38
|
-
requirement: &
|
38
|
+
requirement: &70106492642480 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 3.0.1
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70106492642480
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: sqlite3
|
49
|
-
requirement: &
|
49
|
+
requirement: &70106492642100 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70106492642100
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rspec-rails
|
60
|
-
requirement: &
|
60
|
+
requirement: &70106492144020 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70106492144020
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: appraisal
|
71
|
-
requirement: &
|
71
|
+
requirement: &70106492142060 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 1.0.0.beta
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70106492142060
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: factory_girl
|
82
|
-
requirement: &
|
82
|
+
requirement: &70106492140440 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,7 +87,7 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70106492140440
|
91
91
|
description: A Rails engine that provides simple versioning for your records.
|
92
92
|
email:
|
93
93
|
- bricker@scpr.org
|
@@ -99,6 +99,9 @@ files:
|
|
99
99
|
- lib/generators/secretary/install_generator.rb
|
100
100
|
- lib/generators/secretary/templates/versions_migration.rb
|
101
101
|
- lib/secretary/config.rb
|
102
|
+
- lib/secretary/dirty/collection_association.rb
|
103
|
+
- lib/secretary/dirty/singular_association.rb
|
104
|
+
- lib/secretary/dirty.rb
|
102
105
|
- lib/secretary/engine.rb
|
103
106
|
- lib/secretary/errors.rb
|
104
107
|
- lib/secretary/gem_version.rb
|
@@ -113,7 +116,9 @@ files:
|
|
113
116
|
- README.md
|
114
117
|
- spec/factories.rb
|
115
118
|
- spec/internal/app/models/animal.rb
|
119
|
+
- spec/internal/app/models/car.rb
|
116
120
|
- spec/internal/app/models/hobby.rb
|
121
|
+
- spec/internal/app/models/image.rb
|
117
122
|
- spec/internal/app/models/location.rb
|
118
123
|
- spec/internal/app/models/person.rb
|
119
124
|
- spec/internal/app/models/story.rb
|
@@ -125,13 +130,15 @@ files:
|
|
125
130
|
- spec/internal/log/test.log
|
126
131
|
- spec/lib/generators/secretary/install_generator_spec.rb
|
127
132
|
- spec/lib/secretary/config_spec.rb
|
133
|
+
- spec/lib/secretary/dirty/collection_association_spec.rb
|
134
|
+
- spec/lib/secretary/dirty/singular_association_spec.rb
|
128
135
|
- spec/lib/secretary/has_secretary_spec.rb
|
129
136
|
- spec/lib/secretary/tracks_association_spec.rb
|
130
137
|
- spec/lib/secretary/versioned_attributes_spec.rb
|
131
138
|
- spec/lib/secretary_spec.rb
|
132
139
|
- spec/models/secretary/version_spec.rb
|
133
140
|
- spec/spec_helper.rb
|
134
|
-
- spec/tmp/db/migrate/
|
141
|
+
- spec/tmp/db/migrate/20131106020537_create_versions.rb
|
135
142
|
homepage: https://github.com/scpr/secretary-rails
|
136
143
|
licenses:
|
137
144
|
- MIT
|
@@ -160,7 +167,9 @@ summary: Light-weight model versioning for ActiveRecord.
|
|
160
167
|
test_files:
|
161
168
|
- spec/factories.rb
|
162
169
|
- spec/internal/app/models/animal.rb
|
170
|
+
- spec/internal/app/models/car.rb
|
163
171
|
- spec/internal/app/models/hobby.rb
|
172
|
+
- spec/internal/app/models/image.rb
|
164
173
|
- spec/internal/app/models/location.rb
|
165
174
|
- spec/internal/app/models/person.rb
|
166
175
|
- spec/internal/app/models/story.rb
|
@@ -172,10 +181,12 @@ test_files:
|
|
172
181
|
- spec/internal/log/test.log
|
173
182
|
- spec/lib/generators/secretary/install_generator_spec.rb
|
174
183
|
- spec/lib/secretary/config_spec.rb
|
184
|
+
- spec/lib/secretary/dirty/collection_association_spec.rb
|
185
|
+
- spec/lib/secretary/dirty/singular_association_spec.rb
|
175
186
|
- spec/lib/secretary/has_secretary_spec.rb
|
176
187
|
- spec/lib/secretary/tracks_association_spec.rb
|
177
188
|
- spec/lib/secretary/versioned_attributes_spec.rb
|
178
189
|
- spec/lib/secretary_spec.rb
|
179
190
|
- spec/models/secretary/version_spec.rb
|
180
191
|
- spec/spec_helper.rb
|
181
|
-
- spec/tmp/db/migrate/
|
192
|
+
- spec/tmp/db/migrate/20131106020537_create_versions.rb
|
/data/spec/tmp/db/migrate/{20131105082639_create_versions.rb → 20131106020537_create_versions.rb}
RENAMED
File without changes
|