consort 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZGMxYWFhZGUyYTA3OGYyMGYxMTUzZjJhOGQ2MTY4ZDY2ZmJkNmQyYg==
5
+ data.tar.gz: !binary |-
6
+ NDQ1YTE1YWY5NTE5YTI2YmZmNGFjZDVmNWEzZGQ5ZjlhZGFkMmRmMg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ NWY3MjMzNWFjZmQ2ZDQ2ZjQ0ZjdiODY4MzIxNmEyN2QxODU4YmM0NzFmNGZl
10
+ ZmVlNWVhNjgyNmYxZDliYzEzNmZjYTI0OGM3YWE1YWVlNTYwZWU0NTliMWIz
11
+ MTA5YWZhMWU4NTE4YTAyOWE5NGQ3YzNmOWU2MjU2YWQ4NWJkNmI=
12
+ data.tar.gz: !binary |-
13
+ NmY5N2JlODYyNzc2ZWYzZDZjZWFmNDRiNWQ3MmNkMDllOTEyMTBmMTljZTAw
14
+ MDNhMDFiNzU2ZTkwNTI1ZDk2ZThmOTE5ZGY4NTc3MGFlYmEzNTczNDU2ZjEz
15
+ YmRjYThlOWRhYTg5NWZlNzI2ODAwZjdiMjg2NWViODk1NzRiNmY=
@@ -0,0 +1,18 @@
1
+ .DS_Store
2
+ *.gem
3
+ *.rbc
4
+ .bundle
5
+ .config
6
+ .yardoc
7
+ Gemfile.lock
8
+ InstalledFiles
9
+ _yardoc
10
+ coverage
11
+ doc/
12
+ lib/bundler/man
13
+ pkg
14
+ rdoc
15
+ spec/reports
16
+ test/tmp
17
+ test/version_tmp
18
+ tmp
@@ -0,0 +1,7 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ # - jruby-19mode
6
+ - rbx-19mode
7
+ # - ruby-head
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## 0.0.1
4
+
5
+ * Initial feature-barren version!
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in consort.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2013 Colin Mattson
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Colin Mattson
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,79 @@
1
+ # Consort
2
+
3
+ [![Build Status](https://travis-ci.org/cmattson/consort.png?branch=master)](https://travis-ci.org/cmattson/consort)
4
+ [![Coverage Status](https://coveralls.io/repos/cmattson/consort/badge.png)](https://coveralls.io/r/cmattson/consort)
5
+ [![Code Climate](https://codeclimate.com/github/cmattson/consort.png)](https://codeclimate.com/github/cmattson/consort)
6
+
7
+ Mixing ActiveRecord and other ORMs like Mongoid? Need relationships between those data layers? Really hate either implementing a bunch of accessors or copy-pasting the same metaprogramming over and over again?
8
+
9
+ Use Consort! Built around a simple modification to standard ActiveRecord association syntax, Consort allows you to more easily retrieve data from cross-ORM single-to-single and single-to-many associations without writing or recycling code.
10
+
11
+ ## Installation
12
+
13
+ Add this line to your application's Gemfile:
14
+
15
+ gem 'consort'
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install consort
24
+
25
+ ## Requirements
26
+
27
+ Ruby 1.9.3 or 2.0.0. Alternate VMs compatible with these versions should also work.
28
+
29
+ Ruby 1.8 is not supported.
30
+
31
+ ### Rails Compatibility
32
+
33
+ As Mongoid, most other NoSQL adapters, and many other gems are tied to Rails 3.2, master and version 1.0 are targeting Rails 3.2. Consort has not been tested against earlier Rails 3 versions; if you're stuck on an earlier version, let me know how it works for you.
34
+
35
+ Rails 4 support is planned.
36
+
37
+ ## Usage
38
+
39
+ Consort allows basic relationships to be defined between ActiveRecord and other ORM layers. Simply add `_[ORM_TYPE]` to what you'd normally use. `active_record` and `mongoid` are currently supported.
40
+
41
+ On an ActiveRecord model, you can define relationships with Mongoid:
42
+ ```ruby
43
+ class Airframe < ActiveRecord::Base
44
+ belongs_to_mongoid :manufacturer
45
+ has_one_mongoid :powerplant
46
+ has_many_mongoids :variants
47
+ end
48
+ ```
49
+
50
+ On a Mongoid model, you can define relationships with ActiveRecord:
51
+ ```ruby
52
+ class Airframe
53
+ include Mongoid::Document
54
+ belongs_to_active_record :manufacturer
55
+ has_one_active_record :powerplant
56
+ has_many_active_records :variants
57
+ end
58
+ ```
59
+
60
+ *Nota bene:* Consort currently provides only basic association accessors. It does not implement callbacks. Consort also does not currently implement many-to-many associations. I've rarely run into a situation where cross-ORM many-to-many associations make sense, and implementing them would require making opinionated decisions I don't care to make without community input. If this is something you frequently find yourself needing, you'll have to implement it yourself. (Pull requests and feedback are welcome.)
61
+
62
+ ## Contributing
63
+
64
+ 1. Fork it
65
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
66
+ 3. No, seriously, create a branch. Call it `ravenous-monkey` for all I care, but create a branch.
67
+ 4. Commit your changes (`git commit -am 'Add some feature'`)
68
+ 5. Push to the branch (`git push origin my-new-feature`)
69
+ 6. Create new Pull Request
70
+
71
+ Make sure you include tests! Tests are good. Tests are required. All hail tests.
72
+
73
+ Consort tests are built with Minitest; beyond that, I'm flexible. `Minitest::Unit` and `Minitest::Spec` are both fine.
74
+
75
+ For more details, see CONTRIBUTING.md.
76
+
77
+ ## Author
78
+
79
+ [Colin Mattson](https://github.com/cmattson)
@@ -0,0 +1,10 @@
1
+ #require 'bundler/gem_tasks'
2
+ require 'rake/testtask'
3
+
4
+ Rake::TestTask.new do |t|
5
+ t.libs << "test"
6
+ t.test_files = FileList['test/test*.rb']
7
+ t.verbose = true
8
+ end
9
+
10
+ task :default => :test
@@ -0,0 +1,35 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'consort/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "consort"
8
+ spec.version = Consort::VERSION
9
+ spec.authors = ["Colin Mattson"]
10
+ spec.email = ["colinm@pixelcloud.us"]
11
+ spec.description = %q{Consort allows you to define relationships between various ORMs and access them similarly to ActiveRecord associations.}
12
+ spec.summary = %q{Ease integration between ActiveRecord and NoSQL solutions.}
13
+ spec.homepage = "https://github.com/cmattson/consort"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "minitest"
24
+ spec.add_development_dependency "activerecord", "~> 3.2"
25
+ spec.add_development_dependency "activesupport","~> 3.2"
26
+ spec.add_development_dependency "mongoid", "~> 3.1"
27
+ spec.add_development_dependency "coveralls"
28
+ spec.add_development_dependency "sqlite3"
29
+ spec.add_development_dependency "pry"
30
+ spec.add_development_dependency 'combustion'
31
+
32
+ spec.add_runtime_dependency "activesupport", "~> 3.2"
33
+ spec.add_runtime_dependency "activerecord", "~> 3.2"
34
+ spec.add_runtime_dependency "mongoid", "~> 3.1"
35
+ end
@@ -0,0 +1,6 @@
1
+ require 'consort/version'
2
+
3
+ require 'active_record'
4
+
5
+ require 'consort/active_record'
6
+ require 'consort/mongoid'
@@ -0,0 +1,43 @@
1
+ module Consort
2
+ ##
3
+ # Defines instance methods on ActiveRecord objects for defining NoSQL
4
+ # relationships and accessing those related objects.
5
+ module ActiveRecord
6
+ extend ActiveSupport::Concern
7
+
8
+ module ClassMethods
9
+ def has_one_mongoid(klass)
10
+ class_eval <<-CODE
11
+ def #{klass}
12
+ #{klass.to_s.classify}.where(#{name.foreign_key}: id)
13
+ end
14
+ CODE
15
+ end
16
+
17
+ def has_many_mongoids(klass)
18
+ class_eval <<-CODE
19
+ def #{klass}
20
+ #{klass.to_s.classify}.where(#{name.foreign_key}: id)
21
+ end
22
+ CODE
23
+ end
24
+
25
+ def belongs_to_mongoid(klass)
26
+ class_eval <<-CODE
27
+ def #{klass}
28
+ #{klass.to_s.classify}.where(id: #{klass.to_s.foreign_key})
29
+ end
30
+ CODE
31
+ end
32
+
33
+ def active_record_consorts_with_mongoid?
34
+ true
35
+ end
36
+ end
37
+
38
+ end
39
+ end
40
+
41
+ class ActiveRecord::Base
42
+ include Consort::ActiveRecord
43
+ end
@@ -0,0 +1,40 @@
1
+ module Consort
2
+ module Mongoid
3
+ extend ActiveSupport::Concern
4
+
5
+ module ClassMethods
6
+ def has_one_active_record(klass)
7
+ class_eval <<-CODE
8
+ def #{klass}
9
+ #{klass.to_s.classify}.where(#{name.foreign_key}: id)
10
+ end
11
+ CODE
12
+ end
13
+
14
+ def has_many_active_records(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
+ def belongs_to_active_record(klass)
23
+ class_eval <<-CODE
24
+ def #{klass}
25
+ #{klass.to_s.classify}.where(id: #{klass.to_s.foreign_key})
26
+ end
27
+ CODE
28
+ end
29
+
30
+ def mongoid_consorts_with_active_record?
31
+ true
32
+ end
33
+ end
34
+
35
+ end
36
+ end
37
+
38
+ module Mongoid::Document
39
+ include Consort::Mongoid
40
+ end
@@ -0,0 +1,3 @@
1
+ module Consort
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,6 @@
1
+ sqlite3:
2
+ adapter: <%= "jdbc" if defined? JRUBY_VERSION %>sqlite3
3
+ database: awesome_nested_set.sqlite3.db
4
+ sqlite3mem:
5
+ adapter: <%= "jdbc" if defined? JRUBY_VERSION %>sqlite3
6
+ database: ":memory:"
@@ -0,0 +1,24 @@
1
+ ActiveRecord::Schema.define(:version => 0) do
2
+
3
+ create_table :ungulates, :force => true do |t|
4
+ t.column :name, :string
5
+ t.column :congo_id, :string
6
+ end
7
+
8
+ create_table :tongues, :force => true do |t|
9
+ t.column :camel_id, :string
10
+ t.column :slimy, :boolean
11
+ end
12
+
13
+ create_table :humps, :force => true do |t|
14
+ t.column :camel_id, :string
15
+ t.column :number, :integer
16
+ t.column :size_mm, :integer
17
+ end
18
+
19
+ create_table :species, :force => true do |t|
20
+ t.column :common_name, :string
21
+ t.column :scientific_name, :string
22
+ end
23
+
24
+ end
@@ -0,0 +1,51 @@
1
+ # Testing of AR bindings with light testing of reverses
2
+ class Ungulate < ActiveRecord::Base
3
+ has_one_mongoid :mango
4
+ has_many_mongoids :bongos
5
+ belongs_to_mongoid :congo
6
+ end
7
+
8
+ class Mango
9
+ include Mongoid::Document
10
+ belongs_to_active_record :ungulate
11
+
12
+ field :ripeness, type: Integer
13
+ field :ar_instance_id, type: Integer
14
+ end
15
+
16
+ class Bongo
17
+ include Mongoid::Document
18
+ belongs_to_active_record :ungulate
19
+
20
+ field :diameter, type: Integer
21
+ field :number, type: Integer
22
+ end
23
+
24
+ class Congo
25
+ include Mongoid::Document
26
+ has_one_active_record :ungulate
27
+
28
+ field :village_name, type: String
29
+ end
30
+
31
+ # Testing of Mongoid bindings with light testing of reverses
32
+ class Camel
33
+ include Mongoid::Document
34
+ has_one_active_record :tongue
35
+ has_many_active_records :humps
36
+ belongs_to_active_record :species
37
+
38
+ field :name, type: String
39
+ end
40
+
41
+ class Tongue < ActiveRecord::Base
42
+ belongs_to_mongoid :camel
43
+ end
44
+
45
+ class Hump < ActiveRecord::Base
46
+ belongs_to_mongoid :camel
47
+ end
48
+
49
+ class Species < ActiveRecord::Base
50
+ has_many_mongoids :camels
51
+ end
@@ -0,0 +1,40 @@
1
+ require 'minitest/autorun'
2
+
3
+ class TestActiveRecord < Minitest::Test
4
+ def setup
5
+ #@ungulate = Ungulate.new
6
+ end
7
+
8
+ def test_active_record_has_one_mongoid_defined
9
+ assert_equal "method", defined? ActiveRecord::Base.has_one_mongoid
10
+ assert_equal true, ActiveRecord::Base.respond_to?('has_one_mongoid')
11
+ end
12
+
13
+ def test_active_record_has_many_mongoids_defined
14
+ assert_equal "method", defined? ActiveRecord::Base.has_many_mongoids
15
+ assert_equal true, ActiveRecord::Base.respond_to?('has_many_mongoids')
16
+ end
17
+
18
+ def test_active_record_belongs_to_mongoid_defined
19
+ assert_equal "method", defined? ActiveRecord::Base.belongs_to_mongoid
20
+ assert_equal true, ActiveRecord::Base.respond_to?('belongs_to_mongoid')
21
+ end
22
+
23
+ def test_has_one_mongoid
24
+ @u = Ungulate.new
25
+ assert_equal true, @u.respond_to?('mango')
26
+ assert_equal false, @u.respond_to?('mangos')
27
+ end
28
+
29
+ def test_has_many_mongoids
30
+ @u = Ungulate.new
31
+ assert_equal true, @u.respond_to?('bongos')
32
+ assert_equal false, @u.respond_to?('bongo')
33
+ end
34
+
35
+ def test_belongs_to_mongoid
36
+ @u = Ungulate.new
37
+ assert_equal true, @u.respond_to?('congo')
38
+ assert_equal false, @u.respond_to?('congos')
39
+ end
40
+ end
@@ -0,0 +1,35 @@
1
+ plugin_test_dir = File.dirname(__FILE__)
2
+
3
+ require 'rubygems'
4
+ require 'bundler/setup'
5
+ require 'pry'
6
+
7
+ require 'combustion'
8
+
9
+ require 'minitest/autorun'
10
+ require 'minitest/unit'
11
+ require 'minitest/spec'
12
+ require 'minitest/pride'
13
+ require 'minitest/benchmark' if ENV['BENCH']
14
+
15
+ require 'coveralls'
16
+ Coveralls.wear!
17
+
18
+ require 'active_record'
19
+ require 'mongoid'
20
+
21
+ require 'consort'
22
+
23
+ require 'yaml'
24
+ require 'erb'
25
+ ActiveRecord::Base.configurations = YAML::load(ERB.new(IO.read(plugin_test_dir + "/db/database.yml")).result)
26
+ ActiveRecord::Base.establish_connection(ENV["DB"] ||= "sqlite3mem")
27
+ ActiveRecord::Migration.verbose = false
28
+
29
+ require 'combustion/database'
30
+ Combustion::Database.create_database(ActiveRecord::Base.configurations[ENV["DB"]])
31
+ load(File.join(plugin_test_dir, "db", "schema.rb"))
32
+
33
+
34
+ require 'models'
35
+
@@ -0,0 +1,36 @@
1
+ require 'minitest/autorun'
2
+
3
+ class TestMongoid < Minitest::Test
4
+ def setup
5
+ end
6
+
7
+ def test_mongoid_has_one_active_record_defined
8
+ assert_equal true, Camel.respond_to?(:has_one_active_record)
9
+ end
10
+
11
+ def test_mongoid_has_many_active_records_defined
12
+ assert_equal true, Camel.respond_to?(:has_many_active_records)
13
+ end
14
+
15
+ def test_mongoid_belongs_to_active_record_defined
16
+ assert_equal true, Camel.respond_to?(:belongs_to_active_record)
17
+ end
18
+
19
+ def test_has_one_active_record
20
+ @c = Camel.new
21
+ assert_equal true, @c.respond_to?('tongue')
22
+ assert_equal false, @c.respond_to?('tongues')
23
+ end
24
+
25
+ def test_has_many_active_records
26
+ @c = Camel.new
27
+ assert_equal true, @c.respond_to?('humps')
28
+ assert_equal false, @c.respond_to?('hump')
29
+ end
30
+
31
+ def test_belongs_to_active_record
32
+ @c = Camel.new
33
+ assert_equal true, @c.respond_to?('species')
34
+ end
35
+
36
+ end
metadata ADDED
@@ -0,0 +1,252 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: consort
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Colin Mattson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-07-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: activerecord
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '3.2'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '3.2'
69
+ - !ruby/object:Gem::Dependency
70
+ name: activesupport
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '3.2'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '3.2'
83
+ - !ruby/object:Gem::Dependency
84
+ name: mongoid
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: '3.1'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: '3.1'
97
+ - !ruby/object:Gem::Dependency
98
+ name: coveralls
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ! '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: sqlite3
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ! '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: pry
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ! '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: combustion
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ! '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ! '>='
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: activesupport
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ~>
158
+ - !ruby/object:Gem::Version
159
+ version: '3.2'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ~>
165
+ - !ruby/object:Gem::Version
166
+ version: '3.2'
167
+ - !ruby/object:Gem::Dependency
168
+ name: activerecord
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: mongoid
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ~>
186
+ - !ruby/object:Gem::Version
187
+ version: '3.1'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ~>
193
+ - !ruby/object:Gem::Version
194
+ version: '3.1'
195
+ description: Consort allows you to define relationships between various ORMs and access
196
+ them similarly to ActiveRecord associations.
197
+ email:
198
+ - colinm@pixelcloud.us
199
+ executables: []
200
+ extensions: []
201
+ extra_rdoc_files: []
202
+ files:
203
+ - .gitignore
204
+ - .travis.yml
205
+ - CHANGELOG.md
206
+ - Gemfile
207
+ - LICENSE
208
+ - LICENSE.txt
209
+ - README.md
210
+ - Rakefile
211
+ - consort.gemspec
212
+ - lib/consort.rb
213
+ - lib/consort/active_record.rb
214
+ - lib/consort/mongoid.rb
215
+ - lib/consort/version.rb
216
+ - test/db/database.yml
217
+ - test/db/schema.rb
218
+ - test/models.rb
219
+ - test/test_active_record.rb
220
+ - test/test_helper.rb
221
+ - test/test_mongoid.rb
222
+ homepage: https://github.com/cmattson/consort
223
+ licenses:
224
+ - MIT
225
+ metadata: {}
226
+ post_install_message:
227
+ rdoc_options: []
228
+ require_paths:
229
+ - lib
230
+ required_ruby_version: !ruby/object:Gem::Requirement
231
+ requirements:
232
+ - - ! '>='
233
+ - !ruby/object:Gem::Version
234
+ version: '0'
235
+ required_rubygems_version: !ruby/object:Gem::Requirement
236
+ requirements:
237
+ - - ! '>='
238
+ - !ruby/object:Gem::Version
239
+ version: '0'
240
+ requirements: []
241
+ rubyforge_project:
242
+ rubygems_version: 2.0.5
243
+ signing_key:
244
+ specification_version: 4
245
+ summary: Ease integration between ActiveRecord and NoSQL solutions.
246
+ test_files:
247
+ - test/db/database.yml
248
+ - test/db/schema.rb
249
+ - test/models.rb
250
+ - test/test_active_record.rb
251
+ - test/test_helper.rb
252
+ - test/test_mongoid.rb