mongoloid 3.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in mongoloid.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009-2012 Durran Jordan
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,85 @@
1
+ Mongoloid [![Build Status](https://secure.travis-ci.org/mongoid/mongoid.png?branch=master&.png)](http://travis-ci.org/mongoid/mongoid)
2
+ ========
3
+
4
+ Mongoloid is an ODM (Object-Document-Mapper) framework for MongoDB in Ruby.
5
+
6
+ Simple Usage Example
7
+ --------------------
8
+
9
+ Just include `Mongoloid::Document` to your classes and you are done!
10
+
11
+ ```ruby
12
+ class Artist
13
+ include Mongoloid::Document
14
+ field :name, type: String
15
+ embeds_many :instruments
16
+ end
17
+
18
+ class Instrument
19
+ include Mongoloid::Document
20
+ field :name, type: String
21
+ embedded_in :artist
22
+ end
23
+
24
+ syd = Artist.where(name: "Syd Vicious").between(age: 18..25).first
25
+ syd.instruments.create(name: "Bass")
26
+ syd.with(database: "bands", session: "backup").save!
27
+ ```
28
+
29
+ Project Tracking
30
+ ----------------
31
+
32
+ * [Mongoloid Google Group](http://groups.google.com/group/mongoid)
33
+ * [Mongoloid Website and Documentation](http://mongoid.org)
34
+ * [Mongoloid Code Climate](https://codeclimate.com/github/mongoid/mongoid)
35
+
36
+ Compatibility
37
+ -------------
38
+
39
+ Mongoloid is tested against MRI 1.9.3, 2.0.0, and JRuby (1.9).
40
+
41
+ Documentation
42
+ -------------
43
+
44
+ Please see the new Mongoloid website for up-to-date documentation:
45
+ [mongoid.org](http://mongoid.org)
46
+
47
+ Donating
48
+ --------
49
+
50
+ [Support Mongoloid at Pledgie](http://www.pledgie.com/campaigns/7757)
51
+
52
+ <a href='http://www.pledgie.com/campaigns/7757'>
53
+ <img alt='Click here to lend your support to: Mongoloid and make a donation at www.pledgie.com !' src='http://www.pledgie.com/campaigns/7757.png?skin_name=chrome' border='0'/>
54
+ </a>
55
+
56
+ [![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=durran&url=http://github.com/mongoid&title=mongoid&language=&tags=github&category=software)
57
+
58
+ License
59
+ -------
60
+
61
+ Copyright (c) 2009-2012 Durran Jordan
62
+
63
+ Permission is hereby granted, free of charge, to any person obtaining
64
+ a copy of this software and associated documentation files (the
65
+ "Software"), to deal in the Software without restriction, including
66
+ without limitation the rights to use, copy, modify, merge, publish,
67
+ distribute, sublicense, and/or sell copies of the Software, and to
68
+ permit persons to whom the Software is furnished to do so, subject to
69
+ the following conditions:
70
+
71
+ The above copyright notice and this permission notice shall be
72
+ included in all copies or substantial portions of the Software.
73
+
74
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
75
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
76
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
77
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
78
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
79
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
80
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
81
+
82
+ Credits
83
+ -------
84
+
85
+ Durran Jordan: durran at gmail dot com
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
@@ -0,0 +1,3 @@
1
+ require "mongoid"
2
+
3
+ Mongoloid = Mongoid
@@ -0,0 +1,19 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/mongoloid', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["DevCavalo"]
6
+ gem.email = ["devcavalo@gmail.com"]
7
+ gem.description = %q{Renaming mongoid to a more appropriate name}
8
+ gem.summary = %q{Renaming mongoid to a more appropriate name}
9
+ gem.homepage = "https://github.com/devcavalo/mongloid"
10
+
11
+ gem.files = `git ls-files`.split($\)
12
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
+ gem.name = "mongoloid"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = Mongoloid::VERSION
17
+
18
+ gem.add_dependency "mongoid"
19
+ end
metadata ADDED
@@ -0,0 +1,69 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mongoloid
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.5
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - DevCavalo
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-08-31 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: mongoid
16
+ requirement: &2159683280 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *2159683280
25
+ description: Renaming mongoid to a more appropriate name
26
+ email:
27
+ - devcavalo@gmail.com
28
+ executables: []
29
+ extensions: []
30
+ extra_rdoc_files: []
31
+ files:
32
+ - .gitignore
33
+ - Gemfile
34
+ - LICENSE
35
+ - README.md
36
+ - Rakefile
37
+ - lib/mongoloid.rb
38
+ - mongoloid.gemspec
39
+ homepage: https://github.com/devcavalo/mongloid
40
+ licenses: []
41
+ post_install_message:
42
+ rdoc_options: []
43
+ require_paths:
44
+ - lib
45
+ required_ruby_version: !ruby/object:Gem::Requirement
46
+ none: false
47
+ requirements:
48
+ - - ! '>='
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ segments:
52
+ - 0
53
+ hash: -309538007869414116
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ! '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ segments:
61
+ - 0
62
+ hash: -309538007869414116
63
+ requirements: []
64
+ rubyforge_project:
65
+ rubygems_version: 1.8.11
66
+ signing_key:
67
+ specification_version: 3
68
+ summary: Renaming mongoid to a more appropriate name
69
+ test_files: []