tenacity 0.5.8 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,13 @@
1
+ Version 0.6.0
2
+ -------------
3
+
4
+ * Minor enhancements
5
+
6
+ * Added support for CouchRest 1.1
7
+ * Added support for Mongoid 3.x
8
+ * Modified Mongoid extension to work with the moped MongoDB driver (artem-mindrov)
9
+ * Modified MongoMapper extension to work with the moped MongoDB driver
10
+
1
11
  Version 0.5.8
2
12
  -------------
3
13
 
@@ -113,6 +113,7 @@ See EXTEND.rdoc for information on extending Tenacity to work with other databas
113
113
 
114
114
  == Development
115
115
 
116
+ * Ruby 1.9.3 is required.
116
117
  * SQLite, MongoDB, Riak, and CouchDB must be installed, configured, and running.
117
118
  * Install the dependencies
118
119
 
data/THANKS.md CHANGED
@@ -7,6 +7,7 @@ suggesting improvements, or submitting changes.
7
7
 
8
8
  * [danielgranat](http://github.com/danielgranat)
9
9
  * [raphaelcm](http://github.com/raphaelcm)
10
+ * [artem-mindrov](https://github.com/artem-mindrov)
10
11
 
11
12
  Patches are welcome. The primary source for this software project is [on Github](http://github.com/jwood/tenacity)
12
13
 
@@ -0,0 +1,9 @@
1
+ test:
2
+ sessions:
3
+ default:
4
+ database: tenacity_test
5
+ hosts:
6
+ - localhost:27017
7
+ options:
8
+ safe: true
9
+
@@ -21,36 +21,55 @@ module Tenacity
21
21
  def <<(object)
22
22
  object._t_save_if_dirty unless @parent.id.nil?
23
23
  @target << AssociateProxy.new(object, @association)
24
+ mark_parent_dirty
24
25
  end
25
26
 
26
27
  def push(*objects)
27
28
  objects.each { |object| object._t_save_if_dirty } unless @parent.id.nil?
28
29
  proxies = objects.map { |object| AssociateProxy.new(object, @association) }
29
30
  @target.push(*proxies)
31
+ mark_parent_dirty
30
32
  end
31
33
 
32
34
  def concat(objects)
33
35
  objects.each { |object| object._t_save_if_dirty } unless @parent.id.nil?
34
36
  proxies = objects.map { |object| AssociateProxy.new(object, @association) }
35
37
  @target.concat(proxies)
38
+ mark_parent_dirty
36
39
  end
37
40
 
38
41
  def destroy_all
39
42
  remove_associates_from_parent
40
43
  @association.associate_class._t_delete(@parent._t_get_associate_ids(@association))
44
+ mark_parent_dirty
41
45
  end
42
46
 
43
47
  def delete_all
44
48
  remove_associates_from_parent
45
49
  @association.associate_class._t_delete(@parent._t_get_associate_ids(@association), false)
50
+ mark_parent_dirty
46
51
  end
47
52
 
48
53
  def inspect
49
54
  @target.inspect
50
55
  end
51
56
 
57
+ def delete(*args)
58
+ mark_parent_dirty
59
+ @target.delete(*args)
60
+ end
61
+
62
+ def clear(*args)
63
+ mark_parent_dirty
64
+ @target.clear(*args)
65
+ end
66
+
52
67
  private
53
68
 
69
+ def mark_parent_dirty
70
+ @parent._t_mark_dirty if @parent.respond_to?(:_t_mark_dirty)
71
+ end
72
+
54
73
  def remove_associates_from_parent
55
74
  @parent._t_remove_associates(@association)
56
75
  @parent._t_save_if_dirty
@@ -392,6 +392,7 @@ module Tenacity
392
392
  end
393
393
 
394
394
  define_method("#{association.name}=") do |associates|
395
+ _t_mark_dirty if respond_to?(:_t_mark_dirty)
395
396
  set_associate(association, associates) do
396
397
  set_has_many_associates(association, associates)
397
398
  end
@@ -402,6 +403,7 @@ module Tenacity
402
403
  end
403
404
 
404
405
  define_method("#{ActiveSupport::Inflector.singularize(association.name.to_s)}_ids=") do |associate_ids|
406
+ _t_mark_dirty if respond_to?(:_t_mark_dirty)
405
407
  set_has_many_associate_ids(association, associate_ids)
406
408
  end
407
409
 
@@ -83,7 +83,7 @@ module Tenacity
83
83
  docs = []
84
84
  result = database.get_bulk(_t_serialize_ids(ids))
85
85
  result['rows'].each do |row|
86
- docs << (row['doc'].nil? ? nil : create_from_database(row['doc']))
86
+ docs << (row['doc'].nil? ? nil : new(row['doc'], :directly_set_attributes => true))
87
87
  end
88
88
  docs.reject { |doc| doc.nil? }
89
89
  end
@@ -111,6 +111,7 @@ module Tenacity
111
111
  end
112
112
 
113
113
  def _t_initialize_has_many_association(association)
114
+ property :_tenacity_ddt unless self.respond_to?(:_tenacity_ddt)
114
115
  after_save { |record| record.class._t_save_associates(record, association) }
115
116
  before_destroy { |record| record._t_cleanup_has_many_association(association) }
116
117
  end
@@ -136,6 +137,12 @@ module Tenacity
136
137
  end
137
138
 
138
139
  module InstanceMethods #:nodoc:
140
+ def _t_mark_dirty
141
+ send :_tenacity_ddt_will_change!
142
+ rescue NoMethodError
143
+ # No dirty tracking support for this version of CouchRest
144
+ end
145
+
139
146
  def _t_reload
140
147
  unless self.id.nil?
141
148
  new_doc = database.get(self.id)
@@ -66,7 +66,7 @@ module Tenacity
66
66
  end
67
67
 
68
68
  def _t_find_all_ids_by_associate(property, id)
69
- results = collection.find({property => _t_serialize(id)}, {:fields => 'id'}).to_a
69
+ results = collection.find({property => _t_serialize(id)})
70
70
  results.map { |r| r['_id'] }
71
71
  end
72
72
 
@@ -56,22 +56,35 @@ module Tenacity
56
56
  end
57
57
 
58
58
  def _t_find_bulk(ids)
59
- docs = find(_t_serialize_ids(ids))
59
+ if respond_to?(:where)
60
+ ids = [ids].flatten
61
+ docs = where(:_id.in => _t_serialize_ids(ids)).all
62
+ else
63
+ docs = find(_t_serialize_ids(ids))
64
+ end
60
65
  docs.respond_to?(:each) ? docs : [docs]
61
66
  rescue ::Mongoid::Errors::DocumentNotFound
62
67
  []
63
68
  end
64
69
 
65
70
  def _t_find_first_by_associate(property, id)
66
- find(:first, :conditions => { property => _t_serialize(id) })
71
+ if respond_to?(:where)
72
+ where(property => _t_serialize(id)).first
73
+ else
74
+ first(:conditions => { property => _t_serialize(id) })
75
+ end
67
76
  end
68
77
 
69
78
  def _t_find_all_by_associate(property, id)
70
- find(:all, :conditions => { property => _t_serialize(id) })
79
+ if respond_to?(:where)
80
+ where(property => _t_serialize(id)).all
81
+ else
82
+ all(:conditions => { property => _t_serialize(id) })
83
+ end
71
84
  end
72
85
 
73
86
  def _t_find_all_ids_by_associate(property, id)
74
- results = collection.find({property => _t_serialize(id)}, {:fields => 'id'}).to_a
87
+ results = collection.find(property => _t_serialize(id))
75
88
  results.map { |r| r['_id'] }
76
89
  end
77
90
 
@@ -1,3 +1,3 @@
1
1
  module Tenacity
2
- VERSION = "0.5.8"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -26,28 +26,28 @@ Gem::Specification.new do |s|
26
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.7"
29
+ s.add_development_dependency "sqlite3", "~> 1.3"
30
+ s.add_development_dependency "activerecord", "~> 3.1"
31
31
  s.add_development_dependency "datamapper", "~> 1.0.2"
32
32
  s.add_development_dependency "dm-sqlite-adapter", "~> 1.0.2"
33
33
  s.add_development_dependency "sequel", "~> 3.19.0"
34
34
 
35
35
  # MongoDB
36
- s.add_development_dependency "mongo_mapper", "~> 0.9.0"
36
+ s.add_development_dependency "mongo_mapper", "~> 0.12.0"
37
37
  s.add_development_dependency "mongo", "~> 1.6.2"
38
38
  s.add_development_dependency "bson_ext", "~> 1.6.2"
39
- s.add_development_dependency "mongoid", "~> 2.0.0"
39
+ s.add_development_dependency "mongoid", "~> 3.0"
40
40
 
41
41
  # CouchDB
42
- s.add_development_dependency "couchrest", "~> 1.0.2"
43
- s.add_development_dependency "couchrest_model", "~> 1.0.0"
42
+ s.add_development_dependency "couchrest", "~> 1.1.3"
43
+ s.add_development_dependency "couchrest_model", "~> 1.1.2"
44
44
 
45
45
  # Riak
46
- s.add_development_dependency "ripple", "~> 0.9.2"
46
+ #s.add_development_dependency "ripple", "~> 0.9.5"
47
47
 
48
48
  # Multiple
49
- s.add_development_dependency "toystore", "~> 0.8.0"
50
- s.add_development_dependency "adapter-mongo", "~> 0.5.4"
49
+ #s.add_development_dependency "toystore", "~> 0.12.0"
50
+ #s.add_development_dependency "adapter-mongo", "~> 0.7.0"
51
51
 
52
52
  s.files = `git ls-files`.split("\n")
53
53
  s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
@@ -1,5 +1,7 @@
1
1
  class ActiveRecordObjectWithStringId < ActiveRecord::Base
2
2
  include Tenacity
3
3
 
4
+ self.primary_key = 'id'
5
+
4
6
  t_has_one :mongo_mapper_object
5
7
  end
@@ -7,10 +7,10 @@ require_mongoid do
7
7
  t_belongs_to :couch_rest_object
8
8
  t_belongs_to :data_mapper_object
9
9
  t_belongs_to :mongo_mapper_object
10
- t_belongs_to :mongoid_object
11
- t_belongs_to :ripple_object
10
+ require_mongoid { t_belongs_to :mongoid_object }
11
+ require_ripple { t_belongs_to :ripple_object }
12
12
  t_belongs_to :sequel_object
13
- t_belongs_to :toystore_object
13
+ require_toystore { t_belongs_to :toystore_object }
14
14
 
15
15
  t_belongs_to :active_record_has_many_target_testable, :polymorphic => true
16
16
  t_belongs_to :couch_rest_has_many_target_testable, :polymorphic => true
@@ -7,10 +7,10 @@ require_mongoid do
7
7
  t_belongs_to :couch_rest_object
8
8
  t_belongs_to :data_mapper_object
9
9
  t_belongs_to :mongo_mapper_object
10
- t_belongs_to :mongoid_object
11
- t_belongs_to :ripple_object
10
+ require_mongoid { t_belongs_to :mongoid_object }
11
+ require_ripple { t_belongs_to :ripple_object }
12
12
  t_belongs_to :sequel_object
13
- t_belongs_to :toystore_object
13
+ require_toystore { t_belongs_to :toystore_object }
14
14
 
15
15
  t_belongs_to :active_record_has_one_target_testable, :polymorphic => true
16
16
  t_belongs_to :couch_rest_has_one_target_testable, :polymorphic => true
@@ -9,19 +9,19 @@ require_mongoid do
9
9
  t_has_one :couch_rest_has_one_target
10
10
  t_has_one :data_mapper_has_one_target
11
11
  t_has_one :mongo_mapper_has_one_target
12
- t_has_one :mongoid_has_one_target
13
- t_has_one :ripple_has_one_target
12
+ require_mongoid { t_has_one :mongoid_has_one_target }
13
+ require_ripple { t_has_one :ripple_has_one_target }
14
14
  t_has_one :sequel_has_one_target
15
- t_has_one :toystore_has_one_target
15
+ require_toystore { t_has_one :toystore_has_one_target }
16
16
 
17
17
  t_has_many :active_record_has_many_targets
18
18
  t_has_many :couch_rest_has_many_targets
19
19
  t_has_many :data_mapper_has_many_targets
20
20
  t_has_many :mongo_mapper_has_many_targets
21
- t_has_many :mongoid_has_many_targets
22
- t_has_many :ripple_has_many_targets
21
+ require_mongoid { t_has_many :mongoid_has_many_targets }
22
+ require_ripple { t_has_many :ripple_has_many_targets }
23
23
  t_has_many :sequel_has_many_targets
24
- t_has_many :toystore_has_many_targets
24
+ require_toystore { t_has_many :toystore_has_many_targets }
25
25
 
26
26
  t_has_one :active_record_has_one_target, :as => :active_record_has_one_target_testable
27
27
  t_has_one :couch_rest_has_one_target, :as => :couch_rest_has_one_target_testable
@@ -8,13 +8,7 @@ end
8
8
 
9
9
  begin
10
10
  require 'mongoid'
11
-
12
- Mongoid.configure do |config|
13
- name = "tenacity_test"
14
- host = "localhost"
15
- config.master = Mongo::Connection.new.db(name)
16
- config.persist_in_safe_mode = false
17
- end
11
+ Mongoid.load!(File.expand_path("../../../config/mongoid.yml", __FILE__), :test)
18
12
  rescue LoadError
19
13
  puts "WARNING: Mongoid could not be loaded. Skipping tests."
20
14
  end
@@ -50,12 +50,12 @@ class CouchRestTest < Test::Unit::TestCase
50
50
  end
51
51
 
52
52
  should "be able to reload an object from the database" do
53
- object = CouchRestObject.create({"abc" => "123"})
54
- assert_equal "123", object["abc"]
55
- object["abc"] = "456"
56
- assert_equal "456", object["abc"]
53
+ object = CouchRestObject.create({"prop" => "123"})
54
+ assert_equal "123", object["prop"]
55
+ object["prop"] = "456"
56
+ assert_equal "456", object["prop"]
57
57
  object._t_reload
58
- assert_equal "123", object["abc"]
58
+ assert_equal "123", object["prop"]
59
59
  end
60
60
 
61
61
  should "be able to get the ids of the objects associated with the given object" do
@@ -130,10 +130,21 @@ def foreign_key_id_for(extension, type)
130
130
  end
131
131
 
132
132
  def assert_set_equal(expecteds, actuals, message = nil)
133
+ expecteds = expecteds.map { |x| to_comparison_format(x) } if expecteds
134
+ actuals = actuals.map { |x| to_comparison_format(x) } if actuals
135
+
133
136
  assert ((expecteds && Set.new(expecteds)) == (actuals && Set.new(actuals))) || (expecteds == actuals),
134
137
  "#{expecteds.inspect} expected but was #{actuals.inspect}"
135
138
  end
136
139
 
140
+ def to_comparison_format(object)
141
+ if object.is_a?(CouchRest::Model::Base)
142
+ object.to_hash.reject { |k,v| v.nil? }
143
+ else
144
+ object
145
+ end
146
+ end
147
+
137
148
  def serialize_id(object)
138
149
  object.class._t_serialize(object.id)
139
150
  end
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.8
4
+ version: 0.6.0
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-09-14 00:00:00.000000000Z
12
+ date: 2012-11-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
- requirement: &2164621000 !ruby/object:Gem::Requirement
16
+ requirement: &70175442535580 !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: *2164621000
24
+ version_requirements: *70175442535580
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &2164619040 !ruby/object:Gem::Requirement
27
+ requirement: &70175442534900 !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: *2164619040
35
+ version_requirements: *70175442534900
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &2164617680 !ruby/object:Gem::Requirement
38
+ requirement: &70175442534320 !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: *2164617680
46
+ version_requirements: *70175442534320
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rcov
49
- requirement: &2164616700 !ruby/object:Gem::Requirement
49
+ requirement: &70175442519180 !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: *2164616700
57
+ version_requirements: *70175442519180
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: shoulda
60
- requirement: &2164615920 !ruby/object:Gem::Requirement
60
+ requirement: &70175442518540 !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: *2164615920
68
+ version_requirements: *70175442518540
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: mocha
71
- requirement: &2164615000 !ruby/object:Gem::Requirement
71
+ requirement: &70175442517860 !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: *2164615000
79
+ version_requirements: *70175442517860
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: yard
82
- requirement: &2164613880 !ruby/object:Gem::Requirement
82
+ requirement: &70175442517320 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,32 +87,32 @@ dependencies:
87
87
  version: 0.6.4
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *2164613880
90
+ version_requirements: *70175442517320
91
91
  - !ruby/object:Gem::Dependency
92
- name: sqlite3-ruby
93
- requirement: &2164612840 !ruby/object:Gem::Requirement
92
+ name: sqlite3
93
+ requirement: &70175442516800 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
97
97
  - !ruby/object:Gem::Version
98
- version: 1.3.1
98
+ version: '1.3'
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *2164612840
101
+ version_requirements: *70175442516800
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: activerecord
104
- requirement: &2164612100 !ruby/object:Gem::Requirement
104
+ requirement: &70175442516160 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
108
108
  - !ruby/object:Gem::Version
109
- version: 3.0.7
109
+ version: '3.1'
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *2164612100
112
+ version_requirements: *70175442516160
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: datamapper
115
- requirement: &2164610860 !ruby/object:Gem::Requirement
115
+ requirement: &70175442515520 !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: *2164610860
123
+ version_requirements: *70175442515520
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: dm-sqlite-adapter
126
- requirement: &2164609900 !ruby/object:Gem::Requirement
126
+ requirement: &70175442514920 !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: *2164609900
134
+ version_requirements: *70175442514920
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: sequel
137
- requirement: &2164592020 !ruby/object:Gem::Requirement
137
+ requirement: &70175442514340 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ~>
@@ -142,21 +142,21 @@ dependencies:
142
142
  version: 3.19.0
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *2164592020
145
+ version_requirements: *70175442514340
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: mongo_mapper
148
- requirement: &2164590500 !ruby/object:Gem::Requirement
148
+ requirement: &70175442513820 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ~>
152
152
  - !ruby/object:Gem::Version
153
- version: 0.9.0
153
+ version: 0.12.0
154
154
  type: :development
155
155
  prerelease: false
156
- version_requirements: *2164590500
156
+ version_requirements: *70175442513820
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: mongo
159
- requirement: &2164589080 !ruby/object:Gem::Requirement
159
+ requirement: &70175442513300 !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: *2164589080
167
+ version_requirements: *70175442513300
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: bson_ext
170
- requirement: &2164588400 !ruby/object:Gem::Requirement
170
+ requirement: &70175442512720 !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
173
173
  - - ~>
@@ -175,73 +175,40 @@ dependencies:
175
175
  version: 1.6.2
176
176
  type: :development
177
177
  prerelease: false
178
- version_requirements: *2164588400
178
+ version_requirements: *70175442512720
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: mongoid
181
- requirement: &2164587660 !ruby/object:Gem::Requirement
181
+ requirement: &70175442512120 !ruby/object:Gem::Requirement
182
182
  none: false
183
183
  requirements:
184
184
  - - ~>
185
185
  - !ruby/object:Gem::Version
186
- version: 2.0.0
186
+ version: '3.0'
187
187
  type: :development
188
188
  prerelease: false
189
- version_requirements: *2164587660
189
+ version_requirements: *70175442512120
190
190
  - !ruby/object:Gem::Dependency
191
191
  name: couchrest
192
- requirement: &2164586720 !ruby/object:Gem::Requirement
192
+ requirement: &70175442511640 !ruby/object:Gem::Requirement
193
193
  none: false
194
194
  requirements:
195
195
  - - ~>
196
196
  - !ruby/object:Gem::Version
197
- version: 1.0.2
197
+ version: 1.1.3
198
198
  type: :development
199
199
  prerelease: false
200
- version_requirements: *2164586720
200
+ version_requirements: *70175442511640
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: couchrest_model
203
- requirement: &2164585900 !ruby/object:Gem::Requirement
204
- none: false
205
- requirements:
206
- - - ~>
207
- - !ruby/object:Gem::Version
208
- version: 1.0.0
209
- type: :development
210
- prerelease: false
211
- version_requirements: *2164585900
212
- - !ruby/object:Gem::Dependency
213
- name: ripple
214
- requirement: &2164585300 !ruby/object:Gem::Requirement
215
- none: false
216
- requirements:
217
- - - ~>
218
- - !ruby/object:Gem::Version
219
- version: 0.9.2
220
- type: :development
221
- prerelease: false
222
- version_requirements: *2164585300
223
- - !ruby/object:Gem::Dependency
224
- name: toystore
225
- requirement: &2164584560 !ruby/object:Gem::Requirement
226
- none: false
227
- requirements:
228
- - - ~>
229
- - !ruby/object:Gem::Version
230
- version: 0.8.0
231
- type: :development
232
- prerelease: false
233
- version_requirements: *2164584560
234
- - !ruby/object:Gem::Dependency
235
- name: adapter-mongo
236
- requirement: &2164583800 !ruby/object:Gem::Requirement
203
+ requirement: &70175442509840 !ruby/object:Gem::Requirement
237
204
  none: false
238
205
  requirements:
239
206
  - - ~>
240
207
  - !ruby/object:Gem::Version
241
- version: 0.5.4
208
+ version: 1.1.2
242
209
  type: :development
243
210
  prerelease: false
244
- version_requirements: *2164583800
211
+ version_requirements: *70175442509840
245
212
  description: Tenacity provides a database client independent way of specifying simple
246
213
  relationships between models backed by different databases.
247
214
  email:
@@ -258,6 +225,7 @@ files:
258
225
  - README.rdoc
259
226
  - Rakefile
260
227
  - THANKS.md
228
+ - config/mongoid.yml
261
229
  - lib/tenacity.rb
262
230
  - lib/tenacity/associate_proxy.rb
263
231
  - lib/tenacity/associates_proxy.rb
@@ -367,7 +335,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
367
335
  version: '0'
368
336
  segments:
369
337
  - 0
370
- hash: -3919623905616374807
338
+ hash: 2472715654198248663
371
339
  required_rubygems_version: !ruby/object:Gem::Requirement
372
340
  none: false
373
341
  requirements:
@@ -376,7 +344,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
376
344
  version: 1.3.6
377
345
  requirements: []
378
346
  rubyforge_project: tenacity
379
- rubygems_version: 1.8.10
347
+ rubygems_version: 1.8.15
380
348
  signing_key:
381
349
  specification_version: 3
382
350
  summary: A database client independent way of specifying simple relationships between