consort 0.0.3 → 0.1.0.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDJkNmNjYjhjODY0ZmM3M2M1YTg5ODFhZDU1NDJlODhiODY1Y2U2NQ==
4
+ OWQwYmI3YmJlN2E2OWU3NTkwZmUyZDM3NDE0M2UwMDViYzBjNjI0OA==
5
5
  data.tar.gz: !binary |-
6
- OGY3MGYwYThlMGRmZjczMjY0ZTQ2MjFiZmZkYzY2NjNlOWM4YWM5Yw==
6
+ NzZmOTNmMmQ2Y2E3OTFjN2I4Yzk4MDg1ZmNiMmE2YTZkODIyNmEzZg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YzRkNTA2ZmE5Yzc4ZmVkNTU5ZDE3ZmIzNTk4MmUwNmQwMDZkNDU0MmI4MjMx
10
- NmZkMWYwMmQyM2Y3OWE5MjE4Y2JjMTY2ZGUzZTNiYjRiN2U5Y2I1YmZmNDdk
11
- MjVjNmI2NDA4MzUyOTgzZmU5NTU0OGJhMjc1YWY2MWRlOWQyNTk=
9
+ ZmQwOTFlZDQxNzIzODM2MmVlNjYxZTk4MGFjM2U4M2MxOThkMmFkN2Y0OWVl
10
+ MWYzZTM2MzYyNzNiMGI2ODA4M2EyZmU4OWJkOTYzNzQ1ZTNjMWNmZjBhNmNj
11
+ Nzc4OWFjMWY4MjE5YTQyNDk5NjRmNDliYzJhOGNkM2Y2Y2U1NDk=
12
12
  data.tar.gz: !binary |-
13
- MDkyYmU4MTk0ODc3OWYzZjk5NGM2ZGI4N2UxNTIwZGVlZmE1MWM4NTc2ZjA5
14
- ZTZlOGI3Mzg5MzI0OWYwMDVkZWU3Yzg3MTY0ODE4ZDI2ZTIxMWRlZTczODhj
15
- ODMyY2ZmNTc5ODMyZDkzOTk1NTU3OTMzMmU2YWIxYTA0YjAzYjA=
13
+ ZTU5ZTRiM2Q5MTExM2MzMWNhZDUxMWMyMGNmOTllYWJhYzU4ODAyZTY4MzI0
14
+ Njg0NWZjZjM0Y2Q4NTRkMTQ3YWEwNTAzMDEzNTcyMGRiMGVmY2NiNGFhMGVj
15
+ NjQ2Y2NkNzAyZDIzZTk1MTk5YmIwZDYzNGI5MWY2ZDAyZTFjMTQ=
@@ -1,6 +1,17 @@
1
+ ## master
2
+
3
+ * Nothing yet!
4
+
5
+ ## 0.1.0pre1
6
+
7
+ * Added support for Rails/ActiveSupport 3.1.
8
+ * Added support for Rails/ActiveSupport 4.
9
+ * Added MongoMapper support.
10
+ * Removed dependencies on ActiveRecord and Mongoid. Bridges are now autoloaded based on what's available in the environment.
11
+
1
12
  ## 0.0.3
2
13
 
3
- * Restructured modules. Now in format `Consort::FromORM::ToORM`.
14
+ * Restructured modules. Now in format `Consort::FromORM::ToORM`, e.g. `Consort::ActiveRecord::Mongoid`.
4
15
  * Travis now tests against Rails 3.1.12, 3.2.13, 4.0.0.
5
16
 
6
17
  ## 0.0.2
data/README.md CHANGED
@@ -83,7 +83,7 @@ There are several things Consort doesn't (currently) do, either because I haven'
83
83
  seen them used when mixing object mappers, or because they may have horrible
84
84
  unintended consequences.
85
85
 
86
- This doesn't mean Consort **shouldn't** do them; if you have a use case for a
86
+ This doesn't mean Consort *shouldn't* do them; if you have a use case for a
87
87
  missing feature, feel free to implement it and send a pull request, or create an
88
88
  issue with a feature request.
89
89
 
@@ -24,13 +24,15 @@ Gem::Specification.new do |spec|
24
24
  spec.add_development_dependency "activesupport", "~> 3.2"
25
25
  spec.add_development_dependency "activerecord", "~> 3.2"
26
26
  spec.add_development_dependency "mongoid", "~> 3.1"
27
+ spec.add_development_dependency "mongo_mapper", "~> 0.12"
27
28
  spec.add_development_dependency "simplecov"
28
29
  spec.add_development_dependency "coveralls"
29
30
  spec.add_development_dependency "sqlite3"
30
31
  spec.add_development_dependency "pry"
31
32
  spec.add_development_dependency "combustion"
33
+ spec.add_development_dependency "bson_ext"
32
34
 
33
- spec.add_runtime_dependency "activesupport", "~> 3.2"
34
- spec.add_runtime_dependency "activerecord", "~> 3.2"
35
- spec.add_runtime_dependency "mongoid", "~> 3.1"
35
+ spec.add_runtime_dependency "activesupport", ['>= 3.1', '< 4.1']
36
+ # spec.add_runtime_dependency "activerecord", "~> 3.2"
37
+ # spec.add_runtime_dependency "mongoid", "~> 3.1"
36
38
  end
@@ -6,6 +6,8 @@ gem "minitest", "~> 4.7"
6
6
  gem "activesupport", "~> 3.1.12"
7
7
  gem "activerecord", "~> 3.1.12"
8
8
  gem "mongoid", "~> 3.0.0"
9
+ gem "mongo_mapper", "~> 0.12.0"
10
+ gem "bson_ext"
9
11
  gem "coveralls"
10
12
  gem "sqlite3"
11
13
  gem "pry"
@@ -5,7 +5,9 @@ gem "rake"
5
5
  gem "minitest", "~> 4.7"
6
6
  gem "activesupport", "~> 4.0.0"
7
7
  gem "activerecord", "~> 4.0.0"
8
- gem "mongoid", :git => 'https://github.com/mongoid/mongoid.git'
8
+ gem "mongoid", :git => 'https://github.com/mongoid/mongoid.git'
9
+ gem "mongo_mapper", :git => 'https://github.com/jnunemaker/mongomapper.git'
10
+ gem "bson_ext"
9
11
  gem "coveralls"
10
12
  gem "sqlite3"
11
13
  gem "pry"
@@ -1,7 +1,16 @@
1
1
  require 'consort/version'
2
2
 
3
- require 'active_record'
4
- require 'mongoid'
3
+ #require 'active_record'
4
+ #require 'mongoid'
5
5
 
6
- require 'consort/active_record/mongoid'
7
- require 'consort/mongoid/active_record'
6
+ if defined?(ActiveRecord::Base) && defined?(Mongoid::Document)
7
+ require 'consort/active_record/mongoid'
8
+ require 'consort/mongoid/active_record'
9
+ end
10
+
11
+ if defined?(ActiveRecord::Base) && defined?(MongoMapper::Document)
12
+ require 'consort/active_record/mongo_mapper'
13
+ require 'consort/mongo_mapper/active_record'
14
+ end
15
+
16
+ #if defined?(ActiveRecord::Base) && defined?()
@@ -0,0 +1,76 @@
1
+ module Consort
2
+ ##
3
+ # Defines methods on ActiveRecord objects for creating MongoMapper
4
+ # relationships and accessing those related objects.
5
+ module ActiveRecord
6
+ module MongoMapper
7
+ extend ActiveSupport::Concern
8
+
9
+ module ClassMethods
10
+ # Defines a `has_one` relationship with a MongoMapper object.
11
+ # @param klass [Symbol]
12
+ # @example
13
+ # has_one_mongo_mapper :dolphin
14
+ def has_one_mongo_mapper(klass)
15
+ class_eval <<-CODE
16
+ def #{klass}
17
+ #{klass.to_s.classify}.where(#{name.foreign_key}: id)
18
+ end
19
+ CODE
20
+ end
21
+
22
+ # Defines a `has_many` relationship with a MongoMapper object.
23
+ # @param klass [Symbol]
24
+ # @example
25
+ # has_many_mongo_mapper :unicorns
26
+ # @since 0.0.2
27
+ def has_many_mongo_mapper(klass)
28
+ class_eval <<-CODE
29
+ def #{klass}
30
+ #{klass.to_s.classify}.where(#{name.foreign_key}: id)
31
+ end
32
+ CODE
33
+ end
34
+
35
+ # @deprecated Use {#has_many_mongo_mapper} instead. Will be removed soon.
36
+ def has_many_mongo_mappers(klass)
37
+ ActiveSupport::Deprecation.warn 'This method will be removed in 3 releases. Please use the singular has_many_mongo_mapper instead.'
38
+ has_many_mongo_mapper(klass)
39
+ end
40
+
41
+ # Defines a `belongs_to` relationship with a MongoMapper object.
42
+ # An appropriate foreign key column (of type String) must exist on your model.
43
+ # @param klass [Symbol]
44
+ # @example Migration
45
+ # class AddMongoMapperFKeyToNarwhals < ActiveRecord::Migration
46
+ # def change
47
+ # add_column :narwhals, :pod_id, :string
48
+ # end
49
+ # end
50
+ # @example Model
51
+ # class Narwhal < ActiveRecord::Base
52
+ # belongs_to_mongo_mapper :pod
53
+ # end
54
+ def belongs_to_mongo_mapper(klass)
55
+ class_eval <<-CODE
56
+ def #{klass}
57
+ #{klass.to_s.classify}.where(id: #{klass.to_s.foreign_key})
58
+ end
59
+ CODE
60
+ end
61
+
62
+ # Allows easy validation of whether ActiveRecord to MongoMapper bridge is loaded.
63
+ # @return [Boolean] `true` if bridge is loaded
64
+ def active_record_consorts_with_mongo_mapper?
65
+ true
66
+ end
67
+ end
68
+ end
69
+ end
70
+ end
71
+
72
+ #if defined?(ActiveRecord::Base)
73
+ class ActiveRecord::Base
74
+ include Consort::ActiveRecord::MongoMapper
75
+ end
76
+ #end
@@ -1,6 +1,6 @@
1
1
  module Consort
2
2
  ##
3
- # Defines methods on ActiveRecord objects for creating NoSQL
3
+ # Defines methods on ActiveRecord objects for creating Mongoid
4
4
  # relationships and accessing those related objects.
5
5
  module ActiveRecord
6
6
  module Mongoid
@@ -32,9 +32,9 @@ module Consort
32
32
  CODE
33
33
  end
34
34
 
35
- # @deprecated Use {#has_many_mongoid} instead. Will be removed in 1.0.0.
35
+ # @deprecated Use {#has_many_mongoid} instead. Will be removed soon.
36
36
  def has_many_mongoids(klass)
37
- ActiveSupport::Deprecation.warn 'Please use the singular has_many_mongoid instead.'
37
+ ActiveSupport::Deprecation.warn 'This method will be removed in 3 releases. Please use the singular has_many_mongoid instead.'
38
38
  has_many_mongoid(klass)
39
39
  end
40
40
 
@@ -0,0 +1,62 @@
1
+ module Consort
2
+ module MongoMapper
3
+ module ActiveRecord
4
+ extend ActiveSupport::Concern
5
+
6
+ module ClassMethods
7
+ # Defines a `has_one` relationship with an ActiveRecord object.
8
+ # @param klass [Symbol]
9
+ # @example
10
+ # has_one_active_record :dolphin
11
+ def has_one_active_record(klass)
12
+ class_eval <<-CODE
13
+ def #{klass}
14
+ #{klass.to_s.classify}.where(#{name.foreign_key}: id)
15
+ end
16
+ CODE
17
+ end
18
+
19
+ # Defines a `has_many` relationship with an ActiveRecord object.
20
+ # @param klass [Symbol]
21
+ # @example
22
+ # has_many_active_record :unicorns
23
+ # @since 0.0.2
24
+ def has_many_active_record(klass)
25
+ class_eval <<-CODE
26
+ def #{klass}
27
+ #{klass.to_s.classify}.where(#{name.foreign_key}: id)
28
+ end
29
+ CODE
30
+ end
31
+
32
+ # Defines a `belongs_to` relationship with an ActiveRecord object.
33
+ # An appropriate foreign key key must exist on your model.
34
+ # @param klass [Symbol]
35
+ # @example
36
+ # class Narwhal
37
+ # include MongoMapper::Document
38
+ #
39
+ # belongs_to_active_record :pod
40
+ # key :pod_id, Integer
41
+ # end
42
+ def belongs_to_active_record(klass)
43
+ class_eval <<-CODE
44
+ def #{klass}
45
+ #{klass.to_s.classify}.where(id: #{klass.to_s.foreign_key})
46
+ end
47
+ CODE
48
+ end
49
+
50
+ # Allows easy validation of whether MongoMapper to ActiveRecord bridge is loaded.
51
+ # @return [Boolean] `true` if bridge is loaded
52
+ def mongo_mapper_consorts_with_active_record?
53
+ true
54
+ end
55
+ end
56
+ end
57
+ end
58
+ end
59
+
60
+ module MongoMapper::Document
61
+ include Consort::MongoMapper::ActiveRecord
62
+ end
@@ -29,9 +29,9 @@ module Consort
29
29
  CODE
30
30
  end
31
31
 
32
- # @deprecated Use {#has_many_active_record} instead. Will be removed in 1.0.0.
32
+ # @deprecated Use {#has_many_active_record} instead. Will be removed soon.
33
33
  def has_many_active_records(klass)
34
- ActiveSupport::Deprecation.warn 'Please use the singular has_many_active_record instead.'
34
+ ActiveSupport::Deprecation.warn 'This method will be removed in 3 releases. Please use the singular has_many_active_record instead.'
35
35
  has_many_active_record(klass)
36
36
  end
37
37
 
@@ -1,3 +1,3 @@
1
1
  module Consort
2
- VERSION = "0.0.3"
2
+ VERSION = "0.1.0.pre"
3
3
  end
@@ -20,5 +20,20 @@ ActiveRecord::Schema.define(:version => 0) do
20
20
  t.column :common_name, :string
21
21
  t.column :scientific_name, :string
22
22
  end
23
+
24
+ create_table :pinnipeds, force: true do |t|
25
+ t.column :flippy_sea_creature_id, :integer
26
+ end
23
27
 
28
+ #
29
+ create_table :liquids, force: true do |t|
30
+ end
31
+
32
+ create_table :chemical_compositions, force: true do |t|
33
+ t.column :beverage_id, :integer
34
+ end
35
+
36
+ create_table :flavors, force: true do |t|
37
+ t.column :beverage_id, :integer
38
+ end
24
39
  end
@@ -1,4 +1,4 @@
1
- # Testing of AR bindings with light testing of reverses
1
+ # Testing of AR bindings with light testing of Mongoid reverses
2
2
  class Ungulate < ActiveRecord::Base
3
3
  has_one_mongoid :mango
4
4
  has_many_mongoid :bongos
@@ -28,7 +28,69 @@ class Congo
28
28
  field :village_name, type: String
29
29
  end
30
30
 
31
+ # -----------------------------------------------------------------------------
32
+ # ActiveRecord <-> MongoMapper
33
+ # -----------------------------------------------------------------------------
34
+
35
+ class FlippySeaCreature
36
+ include MongoMapper::Document
37
+ has_many_active_record :pinnipeds
38
+
39
+ key :flippers, Integer
40
+ end
41
+
42
+ class Pinniped < ActiveRecord::Base
43
+ has_many_mongo_mapper :seals
44
+ has_one_mongo_mapper :walrus
45
+ belongs_to_mongo_mapper :flippy_sea_creature
46
+ end
47
+
48
+ class Seal
49
+ include MongoMapper::Document
50
+ belongs_to_active_record :pinniped
51
+ key :pinniped_id, Integer
52
+
53
+ key :name, String
54
+ key :hairiness, Integer
55
+ end
56
+
57
+ class SeaLion
58
+ include MongoMapper::Document
59
+ belongs_to_active_record :pinniped
60
+ end
61
+
62
+ class Walrus
63
+ include MongoMapper::Document
64
+ belongs_to_active_record :pinniped
65
+ key :pinniped_id, Integer
66
+
67
+ key :tusk_length, Integer
68
+ end
69
+
70
+
71
+ class Liquid < ActiveRecord::Base
72
+ has_many_mongo_mapper :beverages
73
+ end
74
+
75
+ class Beverage
76
+ include MongoMapper::Document
77
+ belongs_to_active_record :liquid
78
+ has_one_active_record :chemical_composition
79
+ has_many_active_record :flavors
80
+ end
81
+
82
+ class ChemicalComposition < ActiveRecord::Base
83
+ belongs_to_mongo_mapper :beverage
84
+ end
85
+
86
+ class Flavor < ActiveRecord::Base
87
+ belongs_to_mongo_mapper :beverage
88
+ end
89
+
90
+
91
+ # -----------------------------------------------------------------------------
31
92
  # Testing of Mongoid bindings with light testing of reverses
93
+ # -----------------------------------------------------------------------------
32
94
  class Camel
33
95
  include Mongoid::Document
34
96
  has_one_active_record :tongue
@@ -24,8 +24,9 @@ require 'minitest/spec'
24
24
  require 'minitest/pride'
25
25
  require 'minitest/benchmark' if ENV['BENCH']
26
26
 
27
- # require 'active_record'
28
- # require 'mongoid'
27
+ require 'active_record'
28
+ require 'mongoid'
29
+ require 'mongo_mapper'
29
30
 
30
31
  require 'consort'
31
32
 
@@ -0,0 +1,87 @@
1
+ require 'minitest/autorun'
2
+
3
+ class TestMongoMapper < MiniTest::Unit::TestCase
4
+ def setup
5
+ # MongoMapper.database = 'test_consort'
6
+ end
7
+
8
+ # ---------------------------------------------------------------------------
9
+ # MongoMapper object has ActiveRecord associations
10
+ # ---------------------------------------------------------------------------
11
+ def test_mongo_mapper_belongs_to_active_record_defined
12
+ assert Beverage.respond_to?(:has_one_active_record)
13
+ end
14
+
15
+ def test_mongo_mapper_has_one_active_record_defined
16
+ assert Beverage.respond_to?(:has_one_active_record)
17
+ end
18
+
19
+ def test_mongo_mapper_has_many_active_record_defined
20
+ assert Beverage.respond_to?(:has_many_active_record)
21
+ end
22
+
23
+ def test_mongo_mapper_has_one_active_record
24
+ b = Beverage.new
25
+ assert b.respond_to? :chemical_composition
26
+ refute b.respond_to? :chemical_compositions
27
+ end
28
+
29
+ def test_mongo_mapper_has_many_active_record
30
+ b = Beverage.new
31
+ assert b.respond_to? :flavors
32
+ refute b.respond_to? :flavor
33
+ end
34
+
35
+ def test_mongo_mapper_belongs_to_active_record
36
+ b = Beverage.new
37
+ assert b.respond_to? :liquid
38
+ refute b.respond_to? :liquids
39
+ end
40
+
41
+ def test_mongo_mapper_implements_consorts
42
+ assert Beverage.respond_to?('mongo_mapper_consorts_with_active_record?')
43
+ assert Beverage.mongo_mapper_consorts_with_active_record?
44
+ end
45
+
46
+ # ---------------------------------------------------------------------------
47
+ # ActiveRecord object has MongoMapper associations
48
+ # ---------------------------------------------------------------------------
49
+
50
+ def test_active_record_has_one_mongo_mapper_defined
51
+ assert_equal 'method', defined? ActiveRecord::Base.has_one_mongo_mapper
52
+ assert_equal true, ActiveRecord::Base.respond_to?('has_one_mongo_mapper')
53
+ end
54
+
55
+ def test_active_record_has_many_mongo_mapper_defined
56
+ assert_equal 'method', defined? ActiveRecord::Base.has_many_mongo_mapper
57
+ assert_equal true, ActiveRecord::Base.respond_to?('has_many_mongo_mapper')
58
+ end
59
+
60
+ def test_active_record_belongs_to_mongo_mapper_defined
61
+ assert_equal 'method', defined? ActiveRecord::Base.belongs_to_mongo_mapper
62
+ assert_equal true, ActiveRecord::Base.respond_to?('belongs_to_mongo_mapper')
63
+ end
64
+
65
+ def test_active_record_has_one_mongo_mapper
66
+ p = Pinniped.new
67
+ assert p.respond_to? :walrus
68
+ refute p.respond_to? :walruses
69
+ end
70
+
71
+ def test_active_record_has_many_mongo_mapper
72
+ p = Pinniped.new
73
+ assert p.respond_to? :seals
74
+ refute p.respond_to? :seal
75
+ end
76
+
77
+ def test_active_record_belongs_to_mongo_mapper
78
+ p = Pinniped.new
79
+ assert p.respond_to? :flippy_sea_creature
80
+ refute p.respond_to? :flippy_sea_creatures
81
+ end
82
+
83
+ def test_active_record_implements_consorts
84
+ assert ActiveRecord::Base.respond_to?('active_record_consorts_with_mongo_mapper?')
85
+ assert ActiveRecord::Base.active_record_consorts_with_mongo_mapper?
86
+ end
87
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: consort
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin Mattson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-24 00:00:00.000000000 Z
11
+ date: 2013-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ~>
95
95
  - !ruby/object:Gem::Version
96
96
  version: '3.1'
97
+ - !ruby/object:Gem::Dependency
98
+ name: mongo_mapper
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ~>
102
+ - !ruby/object:Gem::Version
103
+ version: '0.12'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: '0.12'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: simplecov
99
113
  requirement: !ruby/object:Gem::Requirement
@@ -165,47 +179,39 @@ dependencies:
165
179
  - !ruby/object:Gem::Version
166
180
  version: '0'
167
181
  - !ruby/object:Gem::Dependency
168
- name: activesupport
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - ~>
172
- - !ruby/object:Gem::Version
173
- version: '3.2'
174
- type: :runtime
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - ~>
179
- - !ruby/object:Gem::Version
180
- version: '3.2'
181
- - !ruby/object:Gem::Dependency
182
- name: activerecord
182
+ name: bson_ext
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - ~>
185
+ - - ! '>='
186
186
  - !ruby/object:Gem::Version
187
- version: '3.2'
188
- type: :runtime
187
+ version: '0'
188
+ type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - ~>
192
+ - - ! '>='
193
193
  - !ruby/object:Gem::Version
194
- version: '3.2'
194
+ version: '0'
195
195
  - !ruby/object:Gem::Dependency
196
- name: mongoid
196
+ name: activesupport
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - ~>
199
+ - - ! '>='
200
200
  - !ruby/object:Gem::Version
201
201
  version: '3.1'
202
+ - - <
203
+ - !ruby/object:Gem::Version
204
+ version: '4.1'
202
205
  type: :runtime
203
206
  prerelease: false
204
207
  version_requirements: !ruby/object:Gem::Requirement
205
208
  requirements:
206
- - - ~>
209
+ - - ! '>='
207
210
  - !ruby/object:Gem::Version
208
211
  version: '3.1'
212
+ - - <
213
+ - !ruby/object:Gem::Version
214
+ version: '4.1'
209
215
  description: Consort allows you to define relationships between various ORM/ODMs and
210
216
  access them similarly to ActiveRecord associations.
211
217
  email:
@@ -226,7 +232,9 @@ files:
226
232
  - gemfiles/Gemfile.rails-3.1.x
227
233
  - gemfiles/Gemfile.rails-4.0.x
228
234
  - lib/consort.rb
235
+ - lib/consort/active_record/mongo_mapper.rb
229
236
  - lib/consort/active_record/mongoid.rb
237
+ - lib/consort/mongo_mapper/active_record.rb
230
238
  - lib/consort/mongoid/active_record.rb
231
239
  - lib/consort/version.rb
232
240
  - test/db/database.yml
@@ -234,6 +242,7 @@ files:
234
242
  - test/models.rb
235
243
  - test/test_active_record.rb
236
244
  - test/test_helper.rb
245
+ - test/test_mongo_mapper.rb
237
246
  - test/test_mongoid.rb
238
247
  homepage: https://github.com/cmattson/consort
239
248
  licenses:
@@ -250,12 +259,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
250
259
  version: '0'
251
260
  required_rubygems_version: !ruby/object:Gem::Requirement
252
261
  requirements:
253
- - - ! '>='
262
+ - - ! '>'
254
263
  - !ruby/object:Gem::Version
255
- version: '0'
264
+ version: 1.3.1
256
265
  requirements: []
257
266
  rubyforge_project:
258
- rubygems_version: 2.0.5
267
+ rubygems_version: 2.0.6
259
268
  signing_key:
260
269
  specification_version: 4
261
270
  summary: Ease integration between ActiveRecord and NoSQL solutions.
@@ -265,5 +274,6 @@ test_files:
265
274
  - test/models.rb
266
275
  - test/test_active_record.rb
267
276
  - test/test_helper.rb
277
+ - test/test_mongo_mapper.rb
268
278
  - test/test_mongoid.rb
269
279
  has_rdoc: