tenacity 0.5.7 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/{history.txt → CHANGELOG.md} +35 -15
- data/README.rdoc +1 -1
- data/lib/tenacity/class_methods.rb +2 -2
- data/lib/tenacity/version.rb +1 -1
- metadata +46 -46
data/.gitignore
CHANGED
@@ -1,23 +1,34 @@
|
|
1
|
-
|
1
|
+
Version 0.5.8
|
2
|
+
-------------
|
3
|
+
|
4
|
+
* Bug fixes
|
5
|
+
|
6
|
+
* ActiveSupport 3.2 compatibility fix.
|
7
|
+
|
8
|
+
Version 0.5.7
|
9
|
+
-------------
|
2
10
|
|
3
11
|
* Misc
|
4
12
|
|
5
13
|
* Use ~> to specify the version of development dependencies to work around an issue with
|
6
14
|
rubygems on Heroku.
|
7
15
|
|
8
|
-
|
16
|
+
Version 0.5.6
|
17
|
+
-------------
|
9
18
|
|
10
19
|
* Bug fixes
|
11
20
|
|
12
21
|
* Fixed a few issues with regards to how ActiveRecord::Base.save behaves (raphaelcm)
|
13
22
|
|
14
|
-
|
23
|
+
Version 0.5.5
|
24
|
+
-------------
|
15
25
|
|
16
26
|
* Bug fixes
|
17
27
|
|
18
28
|
* Modify association code to support qualified class names (Foo::Bar)
|
19
29
|
|
20
|
-
|
30
|
+
Version 0.5.4
|
31
|
+
-------------
|
21
32
|
|
22
33
|
* Bug fixes
|
23
34
|
|
@@ -25,14 +36,16 @@
|
|
25
36
|
to be wiped out when saving an object that had not yet loaded the
|
26
37
|
associated objects from the database.
|
27
38
|
|
28
|
-
|
39
|
+
Version 0.5.3
|
40
|
+
-------------
|
29
41
|
|
30
42
|
* Bug fixes
|
31
43
|
|
32
44
|
* Modified ORM extensions to use a default id type if the id type could not
|
33
45
|
be determined (was causing ActiveRecord migrations to fail)
|
34
46
|
|
35
|
-
|
47
|
+
Version 0.5.2
|
48
|
+
-------------
|
36
49
|
|
37
50
|
* Bug fixes
|
38
51
|
|
@@ -43,14 +56,16 @@
|
|
43
56
|
|
44
57
|
* Performance optimizations
|
45
58
|
|
46
|
-
|
59
|
+
Version 0.5.1
|
60
|
+
-------------
|
47
61
|
|
48
62
|
* Bug fixes
|
49
63
|
|
50
64
|
* Should not re-load the source of the association when source.target(true)
|
51
65
|
is called.
|
52
66
|
|
53
|
-
|
67
|
+
Version 0.5.0
|
68
|
+
-------------
|
54
69
|
|
55
70
|
* Major enhancements
|
56
71
|
|
@@ -67,13 +82,15 @@
|
|
67
82
|
* Fixed bug preventing an object including the Tenacity module from being saved
|
68
83
|
successfully if it had no associations
|
69
84
|
|
70
|
-
|
85
|
+
Version 0.4.1
|
86
|
+
-------------
|
71
87
|
|
72
88
|
* Bug fixes
|
73
89
|
|
74
90
|
* Fixed a couple of issues specific to Ruby 1.9
|
75
91
|
|
76
|
-
|
92
|
+
Version 0.4.0
|
93
|
+
-------------
|
77
94
|
|
78
95
|
* Major enhancements
|
79
96
|
|
@@ -90,7 +107,8 @@
|
|
90
107
|
* Added support for the :autosave option to all associations
|
91
108
|
* Added support for polymorphic associations to all associations
|
92
109
|
|
93
|
-
|
110
|
+
Version 0.3.0
|
111
|
+
-------------
|
94
112
|
|
95
113
|
* Major enhancements
|
96
114
|
|
@@ -111,7 +129,8 @@
|
|
111
129
|
* Found and fixed many minor bugs thanks to a new test suite that tests all
|
112
130
|
associations against all supported database clients.
|
113
131
|
|
114
|
-
|
132
|
+
Version 0.2.0
|
133
|
+
-------------
|
115
134
|
|
116
135
|
* Major enhancements
|
117
136
|
|
@@ -132,17 +151,18 @@
|
|
132
151
|
* t_has_one association was being initialized on the wrong class in the association
|
133
152
|
* Fixed bug that causing t_has_many associations not to work with SQLite
|
134
153
|
|
135
|
-
|
154
|
+
Version 0.1.1
|
155
|
+
-------------
|
136
156
|
|
137
157
|
* Bug fixes
|
138
158
|
|
139
159
|
* Fixed issue that was causing a load error if mongo mapper was not installed
|
140
160
|
|
141
|
-
|
161
|
+
Version 0.1.0
|
162
|
+
-------------
|
142
163
|
|
143
164
|
* Major enhancements
|
144
165
|
|
145
166
|
* Initial release
|
146
167
|
* Support for has_one, belongs_to, and has_many associations
|
147
168
|
* Support for ActiveRecord, CouchRest, and MongoMapper
|
148
|
-
|
data/README.rdoc
CHANGED
@@ -397,11 +397,11 @@ module Tenacity
|
|
397
397
|
end
|
398
398
|
end
|
399
399
|
|
400
|
-
define_method("#{ActiveSupport::Inflector.singularize(association.name)}_ids") do
|
400
|
+
define_method("#{ActiveSupport::Inflector.singularize(association.name.to_s)}_ids") do
|
401
401
|
has_many_associate_ids(association)
|
402
402
|
end
|
403
403
|
|
404
|
-
define_method("#{ActiveSupport::Inflector.singularize(association.name)}_ids=") do |associate_ids|
|
404
|
+
define_method("#{ActiveSupport::Inflector.singularize(association.name.to_s)}_ids=") do |associate_ids|
|
405
405
|
set_has_many_associate_ids(association, associate_ids)
|
406
406
|
end
|
407
407
|
|
data/lib/tenacity/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tenacity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.8
|
5
5
|
prerelease:
|
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: 2012-
|
12
|
+
date: 2012-09-14 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
16
|
-
requirement: &
|
16
|
+
requirement: &2164621000 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '2.3'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2164621000
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bundler
|
27
|
-
requirement: &
|
27
|
+
requirement: &2164619040 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.0.0
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2164619040
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
|
-
requirement: &
|
38
|
+
requirement: &2164617680 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 0.8.7
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2164617680
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rcov
|
49
|
-
requirement: &
|
49
|
+
requirement: &2164616700 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 0.9.9
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2164616700
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: shoulda
|
60
|
-
requirement: &
|
60
|
+
requirement: &2164615920 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 2.11.3
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2164615920
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: mocha
|
71
|
-
requirement: &
|
71
|
+
requirement: &2164615000 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 0.9.10
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *2164615000
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: yard
|
82
|
-
requirement: &
|
82
|
+
requirement: &2164613880 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ~>
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: 0.6.4
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *2164613880
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: sqlite3-ruby
|
93
|
-
requirement: &
|
93
|
+
requirement: &2164612840 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ~>
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: 1.3.1
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *2164612840
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: activerecord
|
104
|
-
requirement: &
|
104
|
+
requirement: &2164612100 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: 3.0.7
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *2164612100
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: datamapper
|
115
|
-
requirement: &
|
115
|
+
requirement: &2164610860 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ~>
|
@@ -120,10 +120,10 @@ dependencies:
|
|
120
120
|
version: 1.0.2
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *2164610860
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: dm-sqlite-adapter
|
126
|
-
requirement: &
|
126
|
+
requirement: &2164609900 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ~>
|
@@ -131,10 +131,10 @@ dependencies:
|
|
131
131
|
version: 1.0.2
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *2164609900
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
136
|
name: sequel
|
137
|
-
requirement: &
|
137
|
+
requirement: &2164592020 !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
140
|
- - ~>
|
@@ -142,10 +142,10 @@ dependencies:
|
|
142
142
|
version: 3.19.0
|
143
143
|
type: :development
|
144
144
|
prerelease: false
|
145
|
-
version_requirements: *
|
145
|
+
version_requirements: *2164592020
|
146
146
|
- !ruby/object:Gem::Dependency
|
147
147
|
name: mongo_mapper
|
148
|
-
requirement: &
|
148
|
+
requirement: &2164590500 !ruby/object:Gem::Requirement
|
149
149
|
none: false
|
150
150
|
requirements:
|
151
151
|
- - ~>
|
@@ -153,10 +153,10 @@ dependencies:
|
|
153
153
|
version: 0.9.0
|
154
154
|
type: :development
|
155
155
|
prerelease: false
|
156
|
-
version_requirements: *
|
156
|
+
version_requirements: *2164590500
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: mongo
|
159
|
-
requirement: &
|
159
|
+
requirement: &2164589080 !ruby/object:Gem::Requirement
|
160
160
|
none: false
|
161
161
|
requirements:
|
162
162
|
- - ~>
|
@@ -164,10 +164,10 @@ dependencies:
|
|
164
164
|
version: 1.6.2
|
165
165
|
type: :development
|
166
166
|
prerelease: false
|
167
|
-
version_requirements: *
|
167
|
+
version_requirements: *2164589080
|
168
168
|
- !ruby/object:Gem::Dependency
|
169
169
|
name: bson_ext
|
170
|
-
requirement: &
|
170
|
+
requirement: &2164588400 !ruby/object:Gem::Requirement
|
171
171
|
none: false
|
172
172
|
requirements:
|
173
173
|
- - ~>
|
@@ -175,10 +175,10 @@ dependencies:
|
|
175
175
|
version: 1.6.2
|
176
176
|
type: :development
|
177
177
|
prerelease: false
|
178
|
-
version_requirements: *
|
178
|
+
version_requirements: *2164588400
|
179
179
|
- !ruby/object:Gem::Dependency
|
180
180
|
name: mongoid
|
181
|
-
requirement: &
|
181
|
+
requirement: &2164587660 !ruby/object:Gem::Requirement
|
182
182
|
none: false
|
183
183
|
requirements:
|
184
184
|
- - ~>
|
@@ -186,10 +186,10 @@ dependencies:
|
|
186
186
|
version: 2.0.0
|
187
187
|
type: :development
|
188
188
|
prerelease: false
|
189
|
-
version_requirements: *
|
189
|
+
version_requirements: *2164587660
|
190
190
|
- !ruby/object:Gem::Dependency
|
191
191
|
name: couchrest
|
192
|
-
requirement: &
|
192
|
+
requirement: &2164586720 !ruby/object:Gem::Requirement
|
193
193
|
none: false
|
194
194
|
requirements:
|
195
195
|
- - ~>
|
@@ -197,10 +197,10 @@ dependencies:
|
|
197
197
|
version: 1.0.2
|
198
198
|
type: :development
|
199
199
|
prerelease: false
|
200
|
-
version_requirements: *
|
200
|
+
version_requirements: *2164586720
|
201
201
|
- !ruby/object:Gem::Dependency
|
202
202
|
name: couchrest_model
|
203
|
-
requirement: &
|
203
|
+
requirement: &2164585900 !ruby/object:Gem::Requirement
|
204
204
|
none: false
|
205
205
|
requirements:
|
206
206
|
- - ~>
|
@@ -208,10 +208,10 @@ dependencies:
|
|
208
208
|
version: 1.0.0
|
209
209
|
type: :development
|
210
210
|
prerelease: false
|
211
|
-
version_requirements: *
|
211
|
+
version_requirements: *2164585900
|
212
212
|
- !ruby/object:Gem::Dependency
|
213
213
|
name: ripple
|
214
|
-
requirement: &
|
214
|
+
requirement: &2164585300 !ruby/object:Gem::Requirement
|
215
215
|
none: false
|
216
216
|
requirements:
|
217
217
|
- - ~>
|
@@ -219,10 +219,10 @@ dependencies:
|
|
219
219
|
version: 0.9.2
|
220
220
|
type: :development
|
221
221
|
prerelease: false
|
222
|
-
version_requirements: *
|
222
|
+
version_requirements: *2164585300
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: toystore
|
225
|
-
requirement: &
|
225
|
+
requirement: &2164584560 !ruby/object:Gem::Requirement
|
226
226
|
none: false
|
227
227
|
requirements:
|
228
228
|
- - ~>
|
@@ -230,10 +230,10 @@ dependencies:
|
|
230
230
|
version: 0.8.0
|
231
231
|
type: :development
|
232
232
|
prerelease: false
|
233
|
-
version_requirements: *
|
233
|
+
version_requirements: *2164584560
|
234
234
|
- !ruby/object:Gem::Dependency
|
235
235
|
name: adapter-mongo
|
236
|
-
requirement: &
|
236
|
+
requirement: &2164583800 !ruby/object:Gem::Requirement
|
237
237
|
none: false
|
238
238
|
requirements:
|
239
239
|
- - ~>
|
@@ -241,7 +241,7 @@ dependencies:
|
|
241
241
|
version: 0.5.4
|
242
242
|
type: :development
|
243
243
|
prerelease: false
|
244
|
-
version_requirements: *
|
244
|
+
version_requirements: *2164583800
|
245
245
|
description: Tenacity provides a database client independent way of specifying simple
|
246
246
|
relationships between models backed by different databases.
|
247
247
|
email:
|
@@ -251,13 +251,13 @@ extensions: []
|
|
251
251
|
extra_rdoc_files: []
|
252
252
|
files:
|
253
253
|
- .gitignore
|
254
|
+
- CHANGELOG.md
|
254
255
|
- EXTEND.rdoc
|
255
256
|
- Gemfile
|
256
257
|
- LICENSE.txt
|
257
258
|
- README.rdoc
|
258
259
|
- Rakefile
|
259
260
|
- THANKS.md
|
260
|
-
- history.txt
|
261
261
|
- lib/tenacity.rb
|
262
262
|
- lib/tenacity/associate_proxy.rb
|
263
263
|
- lib/tenacity/associates_proxy.rb
|
@@ -367,7 +367,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
367
367
|
version: '0'
|
368
368
|
segments:
|
369
369
|
- 0
|
370
|
-
hash: -
|
370
|
+
hash: -3919623905616374807
|
371
371
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
372
372
|
none: false
|
373
373
|
requirements:
|