tenacity 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
data/THANKS.md CHANGED
@@ -6,6 +6,7 @@ following people have contributed to the project by reporting problems,
6
6
  suggesting improvements, or submitting changes.
7
7
 
8
8
  * [danielgranat](http://github.com/danielgranat)
9
+ * [raphaelcm](http://github.com/raphaelcm)
9
10
 
10
11
  Patches are welcome. The primary source for this software project is [on Github](http://github.com/jwood/tenacity)
11
12
 
@@ -1,3 +1,9 @@
1
+ == 0.5.6
2
+
3
+ * Bug fixes
4
+
5
+ * Fixed a few issues with regards to how ActiveRecord::Base.save behaves (raphaelcm)
6
+
1
7
  == 0.5.5
2
8
 
3
9
  * Bug fixes
@@ -23,11 +23,11 @@ module Tenacity
23
23
  @target.inspect
24
24
  end
25
25
 
26
- def save
26
+ def save(*args)
27
27
  if @association.readonly?
28
28
  raise ReadOnlyError
29
29
  else
30
- @target._t_save_if_dirty
30
+ @target._t_save_if_dirty(*args)
31
31
  end
32
32
  end
33
33
 
@@ -112,8 +112,8 @@ module Tenacity
112
112
  self
113
113
  end
114
114
 
115
- def _t_save_if_dirty
116
- changed? ? save : false
115
+ def _t_save_if_dirty(*args)
116
+ changed? ? save(*args) : true
117
117
  end
118
118
  end
119
119
 
@@ -145,8 +145,8 @@ module Tenacity
145
145
  self
146
146
  end
147
147
 
148
- def _t_save_if_dirty
149
- save
148
+ def _t_save_if_dirty(*args)
149
+ save(*args)
150
150
  end
151
151
  end
152
152
 
@@ -138,8 +138,8 @@ module Tenacity
138
138
  self.class._t_find(self.id)
139
139
  end
140
140
 
141
- def _t_save_if_dirty
142
- dirty? ? save : false
141
+ def _t_save_if_dirty(*args)
142
+ dirty? ? save(*args) : true
143
143
  end
144
144
 
145
145
  private
@@ -111,8 +111,8 @@ module Tenacity
111
111
  self
112
112
  end
113
113
 
114
- def _t_save_if_dirty
115
- changed? ? save : false
114
+ def _t_save_if_dirty(*args)
115
+ changed? ? save(*args) : true
116
116
  end
117
117
  end
118
118
 
@@ -113,8 +113,8 @@ module Tenacity
113
113
  self
114
114
  end
115
115
 
116
- def _t_save_if_dirty
117
- changed? ? save : false
116
+ def _t_save_if_dirty(*args)
117
+ changed? ? save(*args) : true
118
118
  end
119
119
  end
120
120
 
@@ -139,8 +139,8 @@ module Tenacity
139
139
  self
140
140
  end
141
141
 
142
- def _t_save_if_dirty
143
- changed? ? save : false
142
+ def _t_save_if_dirty(*args)
143
+ changed? ? save(*args) : true
144
144
  end
145
145
 
146
146
  def save
@@ -147,8 +147,8 @@ module Tenacity
147
147
  self
148
148
  end
149
149
 
150
- def _t_save_if_dirty
151
- !changed_columns.empty? ? save : false
150
+ def _t_save_if_dirty(*args)
151
+ !changed_columns.empty? ? save(*args) : true
152
152
  end
153
153
  end
154
154
 
@@ -109,8 +109,8 @@ module Tenacity
109
109
  self
110
110
  end
111
111
 
112
- def _t_save_if_dirty
113
- changed? ? save : false
112
+ def _t_save_if_dirty(*args)
113
+ changed? ? save(*args) : true
114
114
  end
115
115
  end
116
116
  end
@@ -1,3 +1,3 @@
1
1
  module Tenacity
2
- VERSION = "0.5.5"
2
+ VERSION = "0.5.6"
3
3
  end
@@ -18,35 +18,36 @@ Gem::Specification.new do |s|
18
18
 
19
19
  s.add_runtime_dependency "activesupport", ">= 2.3"
20
20
 
21
- s.add_development_dependency "bundler", "~> 1.0.0"
22
- s.add_development_dependency "rake", "~> 0.8.7"
23
- s.add_development_dependency "rcov", "~> 0.9.9"
24
- s.add_development_dependency "shoulda", "~> 2.11.3"
25
- s.add_development_dependency "mocha", "~> 0.9.10"
26
- s.add_development_dependency "yard", "~> 0.6.4"
21
+ s.add_development_dependency "bundler", ">= 1.0.0"
22
+ s.add_development_dependency "rake", ">= 0.8.7"
23
+ s.add_development_dependency "rcov", "0.9.9"
24
+ s.add_development_dependency "shoulda", "2.11.3"
25
+ s.add_development_dependency "mocha", "0.9.10"
26
+ s.add_development_dependency "yard", "0.6.4"
27
27
 
28
28
  # Relational DBs
29
- s.add_development_dependency "sqlite3-ruby", "~> 1.3.1"
30
- s.add_development_dependency "activerecord", "~> 3.0.0"
31
- s.add_development_dependency "datamapper", "~> 1.0.2"
32
- s.add_development_dependency "dm-sqlite-adapter", "~> 1.0.2"
33
- s.add_development_dependency "sequel", "~> 3.19.0"
29
+ s.add_development_dependency "sqlite3-ruby", "1.3.1"
30
+ s.add_development_dependency "activerecord", "3.0.7"
31
+ s.add_development_dependency "datamapper", "1.0.2"
32
+ s.add_development_dependency "dm-sqlite-adapter", "1.0.2"
33
+ s.add_development_dependency "sequel", "3.19.0"
34
34
 
35
35
  # MongoDB
36
- s.add_development_dependency "mongo_mapper", "~> 0.9.0"
37
- s.add_development_dependency "bson_ext", "~> 1.3.0"
38
- s.add_development_dependency "mongoid", "~> 2.0.0"
36
+ s.add_development_dependency "mongo_mapper", "0.9.0"
37
+ s.add_development_dependency "mongo", "1.6.2"
38
+ s.add_development_dependency "bson_ext", "1.6.2"
39
+ s.add_development_dependency "mongoid", "2.0.0"
39
40
 
40
41
  # CouchDB
41
- s.add_development_dependency "couchrest", "~> 1.0.0"
42
- s.add_development_dependency "couchrest_model", "~> 1.0.0"
42
+ s.add_development_dependency "couchrest", "1.0.2"
43
+ s.add_development_dependency "couchrest_model", "1.0.0"
43
44
 
44
45
  # Riak
45
- s.add_development_dependency "ripple", "~> 0.9.2"
46
+ s.add_development_dependency "ripple", "0.9.2"
46
47
 
47
48
  # Multiple
48
- s.add_development_dependency "toystore", "~> 0.8.0"
49
- s.add_development_dependency "adapter-mongo", "~> 0.5.2"
49
+ s.add_development_dependency "toystore", "0.8.0"
50
+ s.add_development_dependency "adapter-mongo", "0.5.4"
50
51
 
51
52
  s.files = `git ls-files`.split("\n")
52
53
  s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
@@ -0,0 +1,5 @@
1
+ class ActiveRecordOrganization < ActiveRecord::Base
2
+ include Tenacity
3
+
4
+ has_many :active_record_users
5
+ end
@@ -0,0 +1,5 @@
1
+ class ActiveRecordUser < ActiveRecord::Base
2
+ include Tenacity
3
+
4
+ belongs_to :active_record_organization, :autosave => true
5
+ end
@@ -0,0 +1,9 @@
1
+ require_mongoid do
2
+ class MongoidCampusHub
3
+ include Mongoid::Document
4
+ include Mongoid::Timestamps
5
+ include Tenacity
6
+
7
+ t_belongs_to :active_record_organization
8
+ end
9
+ end
@@ -29,6 +29,13 @@ ActiveRecord::Schema.define :version => 0 do
29
29
  create_table :active_record_object_with_string_ids, :force => true, :id => false do |t|
30
30
  t.string :id, :limit => 36, :primary => true
31
31
  end
32
+
33
+ create_table :active_record_users, :force => true do |t|
34
+ t.integer :active_record_organization_id
35
+ end
36
+
37
+ create_table :active_record_organizations, :force => true do |t|
38
+ end
32
39
 
33
40
  create_table :active_record_has_one_targets, :force => true do |t|
34
41
  t.integer :active_record_object_id
@@ -98,9 +98,15 @@ class ActiveRecordTest < Test::Unit::TestCase
98
98
  assert object._t_save_if_dirty
99
99
  end
100
100
 
101
+ should "return true for save if valid object is not dirty" do
102
+ object = ActiveRecordObject.create
103
+ assert object.save
104
+ end
105
+
101
106
  should "not save the object if it is not dirty" do
102
107
  object = ActiveRecordObject.create
103
- assert !object._t_save_if_dirty
108
+ ActiveRecordObject.any_instance.stubs(:save).raises(RuntimeError.new("should not have called this"))
109
+ assert object._t_save_if_dirty
104
110
  end
105
111
 
106
112
  should "be able to successfully determine the id type" do
@@ -110,6 +116,19 @@ class ActiveRecordTest < Test::Unit::TestCase
110
116
  class ActiveRecordObjectWithNoTable < ActiveRecord::Base; include Tenacity; end
111
117
  assert_equal Integer, ActiveRecordObjectWithNoTable._t_id_type
112
118
  end
119
+
120
+ require_mongoid do
121
+ should "successfully save if belongs_to another AR object which is assigned from a mongoid object" do
122
+ org = ActiveRecordOrganization.create
123
+ campus_hub = MongoidCampusHub.create
124
+ campus_hub.active_record_organization = org
125
+ campus_hub.save!
126
+ user = ActiveRecordUser.new
127
+ user.active_record_organization = campus_hub.active_record_organization
128
+ assert user.save
129
+ assert user.active_record_organization.save(:validate => false)
130
+ end
131
+ end
113
132
  end
114
133
 
115
134
  private
@@ -89,9 +89,15 @@ class DataMapperTest < Test::Unit::TestCase
89
89
  assert object._t_save_if_dirty
90
90
  end
91
91
 
92
+ should "return true for save if valid object is not dirty" do
93
+ object = DataMapperObject.create
94
+ assert object.save
95
+ end
96
+
92
97
  should "not save the object if it is not dirty" do
93
98
  object = DataMapperObject.create
94
- assert !object._t_save_if_dirty
99
+ DataMapperObject.any_instance.stubs(:save).raises(RuntimeError.new("should not have called this"))
100
+ assert object._t_save_if_dirty
95
101
  end
96
102
 
97
103
  should "be able to successfully determine the id type" do
@@ -99,9 +99,15 @@ class MongoMapperTest < Test::Unit::TestCase
99
99
  assert object._t_save_if_dirty
100
100
  end
101
101
 
102
+ should "return true for save if valid object is not dirty" do
103
+ object = MongoMapperObject.create
104
+ assert object.save
105
+ end
106
+
102
107
  should "not save the object if it is not dirty" do
103
108
  object = MongoMapperObject.create
104
- assert !object._t_save_if_dirty
109
+ MongoMapperObject.any_instance.stubs(:save).raises(RuntimeError.new("should not have called this"))
110
+ assert object._t_save_if_dirty
105
111
  end
106
112
  end
107
113
 
@@ -100,9 +100,15 @@ require_mongoid do
100
100
  assert object._t_save_if_dirty
101
101
  end
102
102
 
103
+ should "return true for save if valid object is not dirty" do
104
+ object = MongoidObject.create
105
+ assert object.save
106
+ end
107
+
103
108
  should "not save the object if it is not dirty" do
104
109
  object = MongoidObject.create
105
- assert !object._t_save_if_dirty
110
+ MongoidObject.any_instance.stubs(:save).raises(RuntimeError.new("should not have called this"))
111
+ assert object._t_save_if_dirty
106
112
  end
107
113
  end
108
114
 
@@ -139,9 +139,15 @@ if ENV['LONG'] == 'true'
139
139
  assert object._t_save_if_dirty
140
140
  end
141
141
 
142
+ should "return true for save if valid object is not dirty" do
143
+ object = RippleObject.create
144
+ assert object.save
145
+ end
146
+
142
147
  should "not save the object if it is not dirty" do
143
148
  object = RippleObject.create
144
- assert !object._t_save_if_dirty
149
+ RippleObject.any_instance.stubs(:save).raises(RuntimeError.new("should not have called this"))
150
+ assert object._t_save_if_dirty
145
151
  end
146
152
  end
147
153
 
@@ -99,9 +99,15 @@ class SequelTest < Test::Unit::TestCase
99
99
  assert object._t_save_if_dirty
100
100
  end
101
101
 
102
+ should "return true for save if valid object is not dirty" do
103
+ object = SequelObject.create
104
+ assert object.save
105
+ end
106
+
102
107
  should "not save the object if it is not dirty" do
103
108
  object = SequelObject.create
104
- assert !object._t_save_if_dirty
109
+ SequelObject.any_instance.stubs(:save).raises(RuntimeError.new("should not have called this"))
110
+ assert object._t_save_if_dirty
105
111
  end
106
112
 
107
113
  should "be able to successfully determine the id type" do
@@ -101,9 +101,15 @@ require_toystore do
101
101
  assert object._t_save_if_dirty
102
102
  end
103
103
 
104
+ should "return true for save if valid object is not dirty" do
105
+ object = ToystoreObject.create
106
+ assert object.save
107
+ end
108
+
104
109
  should "not save the object if it is not dirty" do
105
110
  object = ToystoreObject.create
106
- assert !object._t_save_if_dirty
111
+ ToystoreObject.any_instance.stubs(:save).raises(RuntimeError.new("should not have called this"))
112
+ assert object._t_save_if_dirty
107
113
  end
108
114
  end
109
115
 
@@ -35,7 +35,7 @@ def setup_fixtures
35
35
  filename =~ /.*\/(.*)\.rb/
36
36
  clazz = Kernel.const_get($1.camelcase)
37
37
  if clazz.respond_to?(:delete_all)
38
- clazz.delete_all
38
+ clazz.delete_all rescue true
39
39
  elsif clazz.respond_to?(:db)
40
40
  clazz.db["delete from #{clazz.table_name}"].delete
41
41
  elsif clazz.respond_to?(:destroy!)
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.5
4
+ version: 0.5.6
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-04-06 00:00:00.000000000Z
12
+ date: 2012-04-24 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
- requirement: &2156358940 !ruby/object:Gem::Requirement
16
+ requirement: &2166038440 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,216 +21,227 @@ dependencies:
21
21
  version: '2.3'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2156358940
24
+ version_requirements: *2166038440
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &2156355320 !ruby/object:Gem::Requirement
27
+ requirement: &2166037340 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
- - - ~>
30
+ - - ! '>='
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.0.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *2156355320
35
+ version_requirements: *2166037340
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &2156353760 !ruby/object:Gem::Requirement
38
+ requirement: &2166036260 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
- - - ~>
41
+ - - ! '>='
42
42
  - !ruby/object:Gem::Version
43
43
  version: 0.8.7
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2156353760
46
+ version_requirements: *2166036260
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rcov
49
- requirement: &2156339720 !ruby/object:Gem::Requirement
49
+ requirement: &2166035700 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
- - - ~>
52
+ - - =
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.9.9
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2156339720
57
+ version_requirements: *2166035700
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: shoulda
60
- requirement: &2156338680 !ruby/object:Gem::Requirement
60
+ requirement: &2166035160 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
- - - ~>
63
+ - - =
64
64
  - !ruby/object:Gem::Version
65
65
  version: 2.11.3
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2156338680
68
+ version_requirements: *2166035160
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: mocha
71
- requirement: &2156337580 !ruby/object:Gem::Requirement
71
+ requirement: &2166034420 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
- - - ~>
74
+ - - =
75
75
  - !ruby/object:Gem::Version
76
76
  version: 0.9.10
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *2156337580
79
+ version_requirements: *2166034420
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: yard
82
- requirement: &2156336420 !ruby/object:Gem::Requirement
82
+ requirement: &2166033900 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
- - - ~>
85
+ - - =
86
86
  - !ruby/object:Gem::Version
87
87
  version: 0.6.4
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *2156336420
90
+ version_requirements: *2166033900
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: sqlite3-ruby
93
- requirement: &2156335080 !ruby/object:Gem::Requirement
93
+ requirement: &2166026620 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
- - - ~>
96
+ - - =
97
97
  - !ruby/object:Gem::Version
98
98
  version: 1.3.1
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *2156335080
101
+ version_requirements: *2166026620
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: activerecord
104
- requirement: &2156333400 !ruby/object:Gem::Requirement
104
+ requirement: &2166025660 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
- - - ~>
107
+ - - =
108
108
  - !ruby/object:Gem::Version
109
- version: 3.0.0
109
+ version: 3.0.7
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *2156333400
112
+ version_requirements: *2166025660
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: datamapper
115
- requirement: &2156325060 !ruby/object:Gem::Requirement
115
+ requirement: &2166024660 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
- - - ~>
118
+ - - =
119
119
  - !ruby/object:Gem::Version
120
120
  version: 1.0.2
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *2156325060
123
+ version_requirements: *2166024660
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: dm-sqlite-adapter
126
- requirement: &2156316080 !ruby/object:Gem::Requirement
126
+ requirement: &2166023980 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
- - - ~>
129
+ - - =
130
130
  - !ruby/object:Gem::Version
131
131
  version: 1.0.2
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *2156316080
134
+ version_requirements: *2166023980
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: sequel
137
- requirement: &2156314280 !ruby/object:Gem::Requirement
137
+ requirement: &2166023360 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
- - - ~>
140
+ - - =
141
141
  - !ruby/object:Gem::Version
142
142
  version: 3.19.0
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *2156314280
145
+ version_requirements: *2166023360
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: mongo_mapper
148
- requirement: &2156313060 !ruby/object:Gem::Requirement
148
+ requirement: &2166022540 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
- - - ~>
151
+ - - =
152
152
  - !ruby/object:Gem::Version
153
153
  version: 0.9.0
154
154
  type: :development
155
155
  prerelease: false
156
- version_requirements: *2156313060
156
+ version_requirements: *2166022540
157
+ - !ruby/object:Gem::Dependency
158
+ name: mongo
159
+ requirement: &2166021980 !ruby/object:Gem::Requirement
160
+ none: false
161
+ requirements:
162
+ - - =
163
+ - !ruby/object:Gem::Version
164
+ version: 1.6.2
165
+ type: :development
166
+ prerelease: false
167
+ version_requirements: *2166021980
157
168
  - !ruby/object:Gem::Dependency
158
169
  name: bson_ext
159
- requirement: &2156311420 !ruby/object:Gem::Requirement
170
+ requirement: &2166021220 !ruby/object:Gem::Requirement
160
171
  none: false
161
172
  requirements:
162
- - - ~>
173
+ - - =
163
174
  - !ruby/object:Gem::Version
164
- version: 1.3.0
175
+ version: 1.6.2
165
176
  type: :development
166
177
  prerelease: false
167
- version_requirements: *2156311420
178
+ version_requirements: *2166021220
168
179
  - !ruby/object:Gem::Dependency
169
180
  name: mongoid
170
- requirement: &2156293240 !ruby/object:Gem::Requirement
181
+ requirement: &2166020340 !ruby/object:Gem::Requirement
171
182
  none: false
172
183
  requirements:
173
- - - ~>
184
+ - - =
174
185
  - !ruby/object:Gem::Version
175
186
  version: 2.0.0
176
187
  type: :development
177
188
  prerelease: false
178
- version_requirements: *2156293240
189
+ version_requirements: *2166020340
179
190
  - !ruby/object:Gem::Dependency
180
191
  name: couchrest
181
- requirement: &2156291780 !ruby/object:Gem::Requirement
192
+ requirement: &2166019620 !ruby/object:Gem::Requirement
182
193
  none: false
183
194
  requirements:
184
- - - ~>
195
+ - - =
185
196
  - !ruby/object:Gem::Version
186
- version: 1.0.0
197
+ version: 1.0.2
187
198
  type: :development
188
199
  prerelease: false
189
- version_requirements: *2156291780
200
+ version_requirements: *2166019620
190
201
  - !ruby/object:Gem::Dependency
191
202
  name: couchrest_model
192
- requirement: &2156290520 !ruby/object:Gem::Requirement
203
+ requirement: &2166018920 !ruby/object:Gem::Requirement
193
204
  none: false
194
205
  requirements:
195
- - - ~>
206
+ - - =
196
207
  - !ruby/object:Gem::Version
197
208
  version: 1.0.0
198
209
  type: :development
199
210
  prerelease: false
200
- version_requirements: *2156290520
211
+ version_requirements: *2166018920
201
212
  - !ruby/object:Gem::Dependency
202
213
  name: ripple
203
- requirement: &2156288920 !ruby/object:Gem::Requirement
214
+ requirement: &2166006820 !ruby/object:Gem::Requirement
204
215
  none: false
205
216
  requirements:
206
- - - ~>
217
+ - - =
207
218
  - !ruby/object:Gem::Version
208
219
  version: 0.9.2
209
220
  type: :development
210
221
  prerelease: false
211
- version_requirements: *2156288920
222
+ version_requirements: *2166006820
212
223
  - !ruby/object:Gem::Dependency
213
224
  name: toystore
214
- requirement: &2156286980 !ruby/object:Gem::Requirement
225
+ requirement: &2166006240 !ruby/object:Gem::Requirement
215
226
  none: false
216
227
  requirements:
217
- - - ~>
228
+ - - =
218
229
  - !ruby/object:Gem::Version
219
230
  version: 0.8.0
220
231
  type: :development
221
232
  prerelease: false
222
- version_requirements: *2156286980
233
+ version_requirements: *2166006240
223
234
  - !ruby/object:Gem::Dependency
224
235
  name: adapter-mongo
225
- requirement: &2156284020 !ruby/object:Gem::Requirement
236
+ requirement: &2166005580 !ruby/object:Gem::Requirement
226
237
  none: false
227
238
  requirements:
228
- - - ~>
239
+ - - =
229
240
  - !ruby/object:Gem::Version
230
- version: 0.5.2
241
+ version: 0.5.4
231
242
  type: :development
232
243
  prerelease: false
233
- version_requirements: *2156284020
244
+ version_requirements: *2166005580
234
245
  description: Tenacity provides a database client independent way of specifying simple
235
246
  relationships between models backed by different databases.
236
247
  email:
@@ -283,6 +294,8 @@ files:
283
294
  - test/fixtures/active_record_nut.rb
284
295
  - test/fixtures/active_record_object.rb
285
296
  - test/fixtures/active_record_object_with_string_id.rb
297
+ - test/fixtures/active_record_organization.rb
298
+ - test/fixtures/active_record_user.rb
286
299
  - test/fixtures/couch_rest_door.rb
287
300
  - test/fixtures/couch_rest_has_many_target.rb
288
301
  - test/fixtures/couch_rest_has_one_target.rb
@@ -307,6 +320,7 @@ files:
307
320
  - test/fixtures/mongo_mapper_vent.rb
308
321
  - test/fixtures/mongo_mapper_wheel.rb
309
322
  - test/fixtures/mongo_mapper_windows.rb
323
+ - test/fixtures/mongoid_campus_hub.rb
310
324
  - test/fixtures/mongoid_has_many_target.rb
311
325
  - test/fixtures/mongoid_has_one_target.rb
312
326
  - test/fixtures/mongoid_object.rb
@@ -353,7 +367,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
353
367
  version: '0'
354
368
  segments:
355
369
  - 0
356
- hash: 3771239550566841949
370
+ hash: -2311103628650336274
357
371
  required_rubygems_version: !ruby/object:Gem::Requirement
358
372
  none: false
359
373
  requirements: