mongomatic 0.7.3 → 0.8.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +145 -0
- data/Gemfile +18 -0
- data/Gemfile.lock +46 -0
- data/README.rdoc +12 -22
- data/Rakefile +52 -0
- data/VERSION +1 -0
- data/lib/mongomatic.rb +4 -15
- data/lib/mongomatic/base.rb +10 -1
- data/mongomatic.gemspec +117 -0
- metadata +99 -49
data/CHANGELOG
ADDED
@@ -0,0 +1,145 @@
|
|
1
|
+
= 0.9.pre
|
2
|
+
|
3
|
+
Internal:
|
4
|
+
* Updated development dependencies and Jeweler definitions (jsmestad)
|
5
|
+
|
6
|
+
= 0.8.1
|
7
|
+
* Add Mongomatic::Base#insert and Mongomatic::Base#insert! (jsmestad)
|
8
|
+
|
9
|
+
= 0.8.0
|
10
|
+
* Change default collection name to MyClass => my_class (jsmestad)
|
11
|
+
* Dropped explicit support for Rails 2.x's ActiveSupport library (jsmestad)
|
12
|
+
|
13
|
+
= 0.7.3
|
14
|
+
* transaction() can now take a hash with :scope
|
15
|
+
|
16
|
+
= 0.7.2
|
17
|
+
* Mongomatic::TransactionLock
|
18
|
+
|
19
|
+
= 0.7.0
|
20
|
+
* Observable models and Mongomatic::Observer
|
21
|
+
* Mongomatic::Errors#any?
|
22
|
+
* Mongomatic::Errors#count
|
23
|
+
* Mongomatic::Base#delete (thanks mkaito)
|
24
|
+
|
25
|
+
= 0.6.4
|
26
|
+
|
27
|
+
* Added typed_field feature. See tests. Docs coming soon.
|
28
|
+
|
29
|
+
= 0.6.3
|
30
|
+
|
31
|
+
* Switched to minitest
|
32
|
+
|
33
|
+
= 0.6.2
|
34
|
+
|
35
|
+
* Added {:raise => true} option to all persistence methods.
|
36
|
+
|
37
|
+
= 0.6.0
|
38
|
+
|
39
|
+
!! THE ERROR CLASS HAS BEEN REWORKED IN THIS VERSION.
|
40
|
+
!! DO NOT EXPECT YOUR UPGRADE TO BE SEAMLESS. NOTHING /SHOULD/
|
41
|
+
!! BREAK BUT YOU SHOULD TEST THOROUGHLY.
|
42
|
+
|
43
|
+
* Added methods to bring ActiveModel compliancy
|
44
|
+
|
45
|
+
* Pulled in do_callback fix (no more NoMethodError catching)
|
46
|
+
|
47
|
+
* Relaxed restrictions on dependencies
|
48
|
+
|
49
|
+
* Reworked the Error class to mimic the ActiveModel style errors.
|
50
|
+
|
51
|
+
= 0.5.8
|
52
|
+
|
53
|
+
* Update dependencies to most recent ruby mongo driver (1.1)
|
54
|
+
|
55
|
+
= 0.5.6
|
56
|
+
|
57
|
+
* Allow modifiers to receive update options.
|
58
|
+
|
59
|
+
= 0.5.5
|
60
|
+
|
61
|
+
* Array() doesn't play nice with BSON::ObjectId so added a create_array method
|
62
|
+
|
63
|
+
= 0.5.4
|
64
|
+
|
65
|
+
* has_key?(...) now takes MongoDB style queries for embedded docs ("address.city")
|
66
|
+
|
67
|
+
* Document hash is now an MHash which is a subclass of HashWithIndifferentAccess. All keys are now strings.
|
68
|
+
|
69
|
+
* Added value_for_key(...) method to quickly get the value of embedded docs
|
70
|
+
|
71
|
+
= 0.5.3
|
72
|
+
|
73
|
+
* JRuby support! Thanks http://github.com/eedrummer
|
74
|
+
|
75
|
+
* Remove bson_ext from the gem dependencies and require statement - this isn't needed for Mongomatic to work properly. If it is present, it will be loaded without needing a require statement.
|
76
|
+
|
77
|
+
* Changes to Mongomatic::Cursor - changed the proxying method to use method_missing instead of adding methods when the object is created. Works well in JRuby and MRI.
|
78
|
+
|
79
|
+
= 0.5.2
|
80
|
+
|
81
|
+
* callbacks can be private/protected methods now
|
82
|
+
|
83
|
+
= 0.5.1
|
84
|
+
|
85
|
+
* errors.on bug fixes
|
86
|
+
|
87
|
+
* Support for mongo 1.0.8 and deprecation of ObjectID for ObjectId
|
88
|
+
|
89
|
+
= 0.5.0
|
90
|
+
|
91
|
+
* Added errors.on method to more easily fetch error messages for specific fields
|
92
|
+
|
93
|
+
* Added Mongomatic::Base.drop method and before_drop / after_drop callbacks.
|
94
|
+
|
95
|
+
= 0.4.1
|
96
|
+
|
97
|
+
* Fix some bugs with the simulated modifiers so that they work properly with subdocuments.
|
98
|
+
|
99
|
+
= 0.4.0 (Yanked)
|
100
|
+
|
101
|
+
* Added bang! methods for all modifiers. Modifiers now also simulate the change rather
|
102
|
+
than doing a full reload of the document after each operation.
|
103
|
+
|
104
|
+
* Expectation helper no longer wraps an error message that is already an array in
|
105
|
+
another array.
|
106
|
+
|
107
|
+
= 0.3.2
|
108
|
+
|
109
|
+
* Added empty? method to collections and cursors
|
110
|
+
|
111
|
+
= 0.3.1
|
112
|
+
|
113
|
+
* Expectations moved under the 'Expectations' module
|
114
|
+
|
115
|
+
= 0.3.0
|
116
|
+
|
117
|
+
* Mongomatic::Expectations
|
118
|
+
|
119
|
+
= 0.2.0
|
120
|
+
|
121
|
+
* Removed validatable and replaced with new simple validation method
|
122
|
+
|
123
|
+
= 0.1.31
|
124
|
+
|
125
|
+
* Changed _safe methods like insert_safe to be bang methods like insert!
|
126
|
+
|
127
|
+
= 0.1.3
|
128
|
+
|
129
|
+
* Fixed issues with using a custom id
|
130
|
+
|
131
|
+
= 0.1.2
|
132
|
+
|
133
|
+
* Added insert_safe, remove_safe, update_safe
|
134
|
+
|
135
|
+
= 0.1.1
|
136
|
+
|
137
|
+
* Fix bug with Ruby 1.8.x
|
138
|
+
|
139
|
+
= 0.1.0
|
140
|
+
|
141
|
+
* No more Mongomatic.settings, instead you now supply a Mongo::DB object to Mongomatic.db
|
142
|
+
|
143
|
+
= 0.0.7
|
144
|
+
|
145
|
+
* added "merge" method for merging a hash with @doc.
|
data/Gemfile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
gem "activesupport", ">= 3.0.0"
|
5
|
+
gem "mongo", ">= 1.2.4"
|
6
|
+
gem "bson", ">= 1.2.4"
|
7
|
+
gem "i18n", ">= 0.5.0"
|
8
|
+
|
9
|
+
# Add dependencies to develop your gem here.
|
10
|
+
# Include everything needed to run rake, tests, features, etc.
|
11
|
+
group :development do
|
12
|
+
gem "minitest", ">= 0"
|
13
|
+
gem "bundler", "~> 1.0.11"
|
14
|
+
gem "jeweler", "~> 1.5.2"
|
15
|
+
gem "rcov", ">= 0"
|
16
|
+
gem (RUBY_VERSION =~ /^1\.9/ ? "ruby-debug19" : "ruby-debug")
|
17
|
+
gem "yard", "~> 0.6.5"
|
18
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activesupport (3.0.6)
|
5
|
+
archive-tar-minitar (0.5.2)
|
6
|
+
bson (1.3.0)
|
7
|
+
columnize (0.3.2)
|
8
|
+
git (1.2.5)
|
9
|
+
i18n (0.5.0)
|
10
|
+
jeweler (1.5.2)
|
11
|
+
bundler (~> 1.0.0)
|
12
|
+
git (>= 1.2.5)
|
13
|
+
rake
|
14
|
+
linecache19 (0.5.12)
|
15
|
+
ruby_core_source (>= 0.1.4)
|
16
|
+
minitest (2.0.2)
|
17
|
+
mongo (1.3.0)
|
18
|
+
bson (>= 1.3.0)
|
19
|
+
rake (0.8.7)
|
20
|
+
rcov (0.9.9)
|
21
|
+
ruby-debug-base19 (0.11.25)
|
22
|
+
columnize (>= 0.3.1)
|
23
|
+
linecache19 (>= 0.5.11)
|
24
|
+
ruby_core_source (>= 0.1.4)
|
25
|
+
ruby-debug19 (0.11.6)
|
26
|
+
columnize (>= 0.3.1)
|
27
|
+
linecache19 (>= 0.5.11)
|
28
|
+
ruby-debug-base19 (>= 0.11.19)
|
29
|
+
ruby_core_source (0.1.5)
|
30
|
+
archive-tar-minitar (>= 0.5.2)
|
31
|
+
yard (0.6.6)
|
32
|
+
|
33
|
+
PLATFORMS
|
34
|
+
ruby
|
35
|
+
|
36
|
+
DEPENDENCIES
|
37
|
+
activesupport (>= 3.0.0)
|
38
|
+
bson (>= 1.2.4)
|
39
|
+
bundler (~> 1.0.11)
|
40
|
+
i18n (>= 0.5.0)
|
41
|
+
jeweler (~> 1.5.2)
|
42
|
+
minitest
|
43
|
+
mongo (>= 1.2.4)
|
44
|
+
rcov
|
45
|
+
ruby-debug19
|
46
|
+
yard (~> 0.6.5)
|
data/README.rdoc
CHANGED
@@ -2,25 +2,25 @@
|
|
2
2
|
|
3
3
|
Mongomatic allows you to map your Ruby objects to Mongo documents. It is designed to be fast and simple.
|
4
4
|
|
5
|
-
|
5
|
+
=== Release Notes
|
6
6
|
|
7
|
-
|
8
|
-
!! DO NOT EXPECT YOUR UPGRADE TO BE SEAMLESS. NOTHING /SHOULD/
|
9
|
-
!! BREAK BUT YOU SHOULD TEST THOROUGHLY.
|
7
|
+
This project follows semantic versioning as detailed here (http://semver.org). This means that minor version bumps (0.x => 0.y) can break compatibility. Please see the CHANGELOG for upgrade notes.
|
10
8
|
|
11
|
-
|
9
|
+
=== Note on Patches/Pull Requests
|
12
10
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
11
|
+
* Fork the project.
|
12
|
+
* Make your feature addition or bug fix.
|
13
|
+
* Add tests for it. This is important so I don't break it in a
|
14
|
+
future version unintentionally.
|
15
|
+
* Commit just the modifications, do not mess with Rakefile, VERSION, or CHANGELOG.
|
16
|
+
* Add a separate commit with modifications to the CHANGELOG file
|
17
|
+
* Send me a pull request. Bonus points for branches.
|
18
18
|
|
19
19
|
== What's different about Mongomatic?
|
20
20
|
|
21
|
-
* Follows
|
21
|
+
* Follows MongoDB idioms wherever possible.
|
22
22
|
* Only strives to do "just enough" and never too much.
|
23
|
-
* When possible, we defer to
|
23
|
+
* When possible, we defer to MongoDB. For example, there's no Mongomatic query API, instead you use the same query hash syntax you would with the Ruby MongoDB driver.
|
24
24
|
* No complex relationship management: if you want to model relationships then add your own finder methods.
|
25
25
|
* Minimal dependencies.
|
26
26
|
|
@@ -230,16 +230,6 @@ You can add your own observers to CollectionName using CollectionName.add_observ
|
|
230
230
|
|
231
231
|
It is worth noting that you should be careful the operations you perform on the instance of your class passed to the observer callbacks. Calling operations that invoke callbacks can result in an infinite loop if improperly structured.
|
232
232
|
|
233
|
-
== Note on Patches/Pull Requests
|
234
|
-
|
235
|
-
* Fork the project.
|
236
|
-
* Make your feature addition or bug fix.
|
237
|
-
* Add tests for it. This is important so I don't break it in a
|
238
|
-
future version unintentionally.
|
239
|
-
* Commit, do not mess with rakefile, version, or history.
|
240
|
-
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
241
|
-
* Send me a pull request. Bonus points for topic branches.
|
242
|
-
|
243
233
|
== Copyright
|
244
234
|
|
245
235
|
Copyright (c) 2010 Ben Myles. See LICENSE for details.
|
data/Rakefile
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "mongomatic"
|
8
|
+
gem.summary = %Q{Mongomatic is a modular Ruby object mapper for Mongo}
|
9
|
+
gem.description = %Q{Mongomatic is a modular Ruby object mapper for Mongo}
|
10
|
+
gem.email = "ben.myles@gmail.com"
|
11
|
+
gem.homepage = "http://mongomatic.com/"
|
12
|
+
gem.authors = ["Ben Myles", "Justin Smestad"]
|
13
|
+
gem.license = "MIT"
|
14
|
+
end
|
15
|
+
Jeweler::RubygemsDotOrgTasks.new
|
16
|
+
rescue LoadError
|
17
|
+
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
18
|
+
end
|
19
|
+
|
20
|
+
require 'rake/testtask'
|
21
|
+
Rake::TestTask.new(:test) do |test|
|
22
|
+
test.libs << 'lib' << 'test'
|
23
|
+
test.pattern = 'test/**/test_*.rb'
|
24
|
+
test.verbose = true
|
25
|
+
end
|
26
|
+
|
27
|
+
begin
|
28
|
+
require 'rcov/rcovtask'
|
29
|
+
Rcov::RcovTask.new do |test|
|
30
|
+
test.libs << 'test'
|
31
|
+
test.pattern = 'test/**/test_*.rb'
|
32
|
+
test.verbose = true
|
33
|
+
end
|
34
|
+
rescue LoadError
|
35
|
+
task :rcov do
|
36
|
+
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
task :test
|
41
|
+
|
42
|
+
task :default => :test
|
43
|
+
|
44
|
+
require 'rake/rdoctask'
|
45
|
+
Rake::RDocTask.new do |rdoc|
|
46
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
47
|
+
|
48
|
+
rdoc.rdoc_dir = 'rdoc'
|
49
|
+
rdoc.title = "mongomatic #{version}"
|
50
|
+
rdoc.rdoc_files.include('README*')
|
51
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
52
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.8.1.1
|
data/lib/mongomatic.rb
CHANGED
@@ -1,19 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
gem "activesupport", ">= 2.3.5"
|
1
|
+
require 'bson'
|
2
|
+
require 'mongo'
|
4
3
|
|
5
|
-
require
|
6
|
-
require
|
7
|
-
|
8
|
-
require 'active_support/version'
|
9
|
-
|
10
|
-
if ActiveSupport::VERSION::MAJOR == 3
|
11
|
-
gem 'i18n', '>= 0.4.1'
|
12
|
-
require 'active_support/core_ext/object/blank' # newer versions of active_support (>= 3.0)
|
13
|
-
require 'active_support/core_ext/hash' # newer versions of active_support (>= 3.0)
|
14
|
-
else
|
15
|
-
require 'active_support'
|
16
|
-
end
|
4
|
+
require 'active_support/core_ext/object/blank'
|
5
|
+
require 'active_support/core_ext/hash'
|
17
6
|
|
18
7
|
module Mongomatic
|
19
8
|
class << self
|
data/lib/mongomatic/base.rb
CHANGED
@@ -21,7 +21,7 @@ module Mongomatic
|
|
21
21
|
|
22
22
|
# Override this method on your model if you want to use a different collection name
|
23
23
|
def collection_name
|
24
|
-
self.to_s
|
24
|
+
self.to_s.tableize
|
25
25
|
end
|
26
26
|
|
27
27
|
# Return the raw MongoDB collection for this model
|
@@ -75,6 +75,15 @@ module Mongomatic
|
|
75
75
|
return false unless respond_to?(meth, true)
|
76
76
|
send(meth)
|
77
77
|
end
|
78
|
+
|
79
|
+
def insert(doc_hash, opts={})
|
80
|
+
d = new(doc_hash)
|
81
|
+
d.insert(opts)
|
82
|
+
end
|
83
|
+
|
84
|
+
def insert!(doc_hash, opts={})
|
85
|
+
insert(doc_hash, opts.merge(:safe => true))
|
86
|
+
end
|
78
87
|
end
|
79
88
|
|
80
89
|
attr_accessor :removed, :is_new, :errors
|
data/mongomatic.gemspec
ADDED
@@ -0,0 +1,117 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{mongomatic}
|
8
|
+
s.version = "0.8.1.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Ben Myles", "Justin Smestad"]
|
12
|
+
s.date = %q{2011-04-06}
|
13
|
+
s.description = %q{Mongomatic is a modular Ruby object mapper for Mongo}
|
14
|
+
s.email = %q{ben.myles@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
"CHANGELOG",
|
21
|
+
"Gemfile",
|
22
|
+
"Gemfile.lock",
|
23
|
+
"LICENSE",
|
24
|
+
"README.rdoc",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION",
|
27
|
+
"lib/mongomatic.rb",
|
28
|
+
"lib/mongomatic/active_model_compliancy.rb",
|
29
|
+
"lib/mongomatic/base.rb",
|
30
|
+
"lib/mongomatic/cursor.rb",
|
31
|
+
"lib/mongomatic/errors.rb",
|
32
|
+
"lib/mongomatic/exceptions.rb",
|
33
|
+
"lib/mongomatic/expectations.rb",
|
34
|
+
"lib/mongomatic/expectations/be_reference.rb",
|
35
|
+
"lib/mongomatic/expectations/expected.rb",
|
36
|
+
"lib/mongomatic/expectations/is_number.rb",
|
37
|
+
"lib/mongomatic/expectations/match.rb",
|
38
|
+
"lib/mongomatic/expectations/of_length.rb",
|
39
|
+
"lib/mongomatic/expectations/present.rb",
|
40
|
+
"lib/mongomatic/m_hash.rb",
|
41
|
+
"lib/mongomatic/modifiers.rb",
|
42
|
+
"lib/mongomatic/observable.rb",
|
43
|
+
"lib/mongomatic/observer.rb",
|
44
|
+
"lib/mongomatic/transaction_lock.rb",
|
45
|
+
"lib/mongomatic/type_converters.rb",
|
46
|
+
"lib/mongomatic/typed_fields.rb",
|
47
|
+
"lib/mongomatic/util.rb",
|
48
|
+
"mongomatic.gemspec",
|
49
|
+
"test/helper.rb",
|
50
|
+
"test/test_exceptions.rb",
|
51
|
+
"test/test_find.rb",
|
52
|
+
"test/test_misc.rb",
|
53
|
+
"test/test_modifiers.rb",
|
54
|
+
"test/test_observable.rb",
|
55
|
+
"test/test_persistence.rb",
|
56
|
+
"test/test_transaction_lock.rb",
|
57
|
+
"test/test_typed_fields.rb",
|
58
|
+
"test/test_validations.rb"
|
59
|
+
]
|
60
|
+
s.homepage = %q{http://mongomatic.com/}
|
61
|
+
s.licenses = ["MIT"]
|
62
|
+
s.require_paths = ["lib"]
|
63
|
+
s.rubygems_version = %q{1.7.2}
|
64
|
+
s.summary = %q{Mongomatic is a modular Ruby object mapper for Mongo}
|
65
|
+
s.test_files = [
|
66
|
+
"test/helper.rb",
|
67
|
+
"test/test_exceptions.rb",
|
68
|
+
"test/test_find.rb",
|
69
|
+
"test/test_misc.rb",
|
70
|
+
"test/test_modifiers.rb",
|
71
|
+
"test/test_observable.rb",
|
72
|
+
"test/test_persistence.rb",
|
73
|
+
"test/test_transaction_lock.rb",
|
74
|
+
"test/test_typed_fields.rb",
|
75
|
+
"test/test_validations.rb"
|
76
|
+
]
|
77
|
+
|
78
|
+
if s.respond_to? :specification_version then
|
79
|
+
s.specification_version = 3
|
80
|
+
|
81
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
82
|
+
s.add_runtime_dependency(%q<activesupport>, [">= 3.0.0"])
|
83
|
+
s.add_runtime_dependency(%q<mongo>, [">= 1.2.4"])
|
84
|
+
s.add_runtime_dependency(%q<bson>, [">= 1.2.4"])
|
85
|
+
s.add_runtime_dependency(%q<i18n>, [">= 0.5.0"])
|
86
|
+
s.add_development_dependency(%q<minitest>, [">= 0"])
|
87
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.11"])
|
88
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
89
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
90
|
+
s.add_development_dependency(%q<ruby-debug19>, [">= 0"])
|
91
|
+
s.add_development_dependency(%q<yard>, ["~> 0.6.5"])
|
92
|
+
else
|
93
|
+
s.add_dependency(%q<activesupport>, [">= 3.0.0"])
|
94
|
+
s.add_dependency(%q<mongo>, [">= 1.2.4"])
|
95
|
+
s.add_dependency(%q<bson>, [">= 1.2.4"])
|
96
|
+
s.add_dependency(%q<i18n>, [">= 0.5.0"])
|
97
|
+
s.add_dependency(%q<minitest>, [">= 0"])
|
98
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.11"])
|
99
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
100
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
101
|
+
s.add_dependency(%q<ruby-debug19>, [">= 0"])
|
102
|
+
s.add_dependency(%q<yard>, ["~> 0.6.5"])
|
103
|
+
end
|
104
|
+
else
|
105
|
+
s.add_dependency(%q<activesupport>, [">= 3.0.0"])
|
106
|
+
s.add_dependency(%q<mongo>, [">= 1.2.4"])
|
107
|
+
s.add_dependency(%q<bson>, [">= 1.2.4"])
|
108
|
+
s.add_dependency(%q<i18n>, [">= 0.5.0"])
|
109
|
+
s.add_dependency(%q<minitest>, [">= 0"])
|
110
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.11"])
|
111
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
112
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
113
|
+
s.add_dependency(%q<ruby-debug19>, [">= 0"])
|
114
|
+
s.add_dependency(%q<yard>, ["~> 0.6.5"])
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
metadata
CHANGED
@@ -1,80 +1,129 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongomatic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 7
|
8
|
-
- 3
|
9
|
-
version: 0.7.3
|
4
|
+
prerelease:
|
5
|
+
version: 0.8.1.1
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- Ben Myles
|
9
|
+
- Justin Smestad
|
13
10
|
autorequire:
|
14
11
|
bindir: bin
|
15
12
|
cert_chain: []
|
16
13
|
|
17
|
-
date:
|
18
|
-
default_executable:
|
14
|
+
date: 2011-04-06 00:00:00 Z
|
19
15
|
dependencies:
|
20
16
|
- !ruby/object:Gem::Dependency
|
21
|
-
name:
|
22
|
-
prerelease: false
|
17
|
+
name: activesupport
|
23
18
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
19
|
none: false
|
25
20
|
requirements:
|
26
|
-
- -
|
21
|
+
- - ">="
|
27
22
|
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
version: "2.0"
|
32
|
-
type: :development
|
23
|
+
version: 3.0.0
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
33
26
|
version_requirements: *id001
|
34
27
|
- !ruby/object:Gem::Dependency
|
35
|
-
name:
|
36
|
-
prerelease: false
|
28
|
+
name: mongo
|
37
29
|
requirement: &id002 !ruby/object:Gem::Requirement
|
38
30
|
none: false
|
39
31
|
requirements:
|
40
|
-
- -
|
32
|
+
- - ">="
|
41
33
|
- !ruby/object:Gem::Version
|
42
|
-
|
43
|
-
- 1
|
44
|
-
- 1
|
45
|
-
version: "1.1"
|
34
|
+
version: 1.2.4
|
46
35
|
type: :runtime
|
36
|
+
prerelease: false
|
47
37
|
version_requirements: *id002
|
48
38
|
- !ruby/object:Gem::Dependency
|
49
|
-
name:
|
50
|
-
prerelease: false
|
39
|
+
name: bson
|
51
40
|
requirement: &id003 !ruby/object:Gem::Requirement
|
52
41
|
none: false
|
53
42
|
requirements:
|
54
|
-
- -
|
43
|
+
- - ">="
|
55
44
|
- !ruby/object:Gem::Version
|
56
|
-
|
57
|
-
- 1
|
58
|
-
- 1
|
59
|
-
version: "1.1"
|
45
|
+
version: 1.2.4
|
60
46
|
type: :runtime
|
47
|
+
prerelease: false
|
61
48
|
version_requirements: *id003
|
62
49
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
64
|
-
prerelease: false
|
50
|
+
name: i18n
|
65
51
|
requirement: &id004 !ruby/object:Gem::Requirement
|
66
52
|
none: false
|
67
53
|
requirements:
|
68
54
|
- - ">="
|
69
55
|
- !ruby/object:Gem::Version
|
70
|
-
|
71
|
-
- 2
|
72
|
-
- 3
|
73
|
-
- 5
|
74
|
-
version: 2.3.5
|
56
|
+
version: 0.5.0
|
75
57
|
type: :runtime
|
58
|
+
prerelease: false
|
76
59
|
version_requirements: *id004
|
77
|
-
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: minitest
|
62
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: "0"
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: *id005
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: bundler
|
73
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ~>
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 1.0.11
|
79
|
+
type: :development
|
80
|
+
prerelease: false
|
81
|
+
version_requirements: *id006
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: jeweler
|
84
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.5.2
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: *id007
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: rcov
|
95
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
96
|
+
none: false
|
97
|
+
requirements:
|
98
|
+
- - ">="
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: "0"
|
101
|
+
type: :development
|
102
|
+
prerelease: false
|
103
|
+
version_requirements: *id008
|
104
|
+
- !ruby/object:Gem::Dependency
|
105
|
+
name: ruby-debug19
|
106
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: "0"
|
112
|
+
type: :development
|
113
|
+
prerelease: false
|
114
|
+
version_requirements: *id009
|
115
|
+
- !ruby/object:Gem::Dependency
|
116
|
+
name: yard
|
117
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
118
|
+
none: false
|
119
|
+
requirements:
|
120
|
+
- - ~>
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: 0.6.5
|
123
|
+
type: :development
|
124
|
+
prerelease: false
|
125
|
+
version_requirements: *id010
|
126
|
+
description: Mongomatic is a modular Ruby object mapper for Mongo
|
78
127
|
email: ben.myles@gmail.com
|
79
128
|
executables: []
|
80
129
|
|
@@ -84,6 +133,13 @@ extra_rdoc_files:
|
|
84
133
|
- LICENSE
|
85
134
|
- README.rdoc
|
86
135
|
files:
|
136
|
+
- CHANGELOG
|
137
|
+
- Gemfile
|
138
|
+
- Gemfile.lock
|
139
|
+
- LICENSE
|
140
|
+
- README.rdoc
|
141
|
+
- Rakefile
|
142
|
+
- VERSION
|
87
143
|
- lib/mongomatic.rb
|
88
144
|
- lib/mongomatic/active_model_compliancy.rb
|
89
145
|
- lib/mongomatic/base.rb
|
@@ -105,8 +161,7 @@ files:
|
|
105
161
|
- lib/mongomatic/type_converters.rb
|
106
162
|
- lib/mongomatic/typed_fields.rb
|
107
163
|
- lib/mongomatic/util.rb
|
108
|
-
-
|
109
|
-
- README.rdoc
|
164
|
+
- mongomatic.gemspec
|
110
165
|
- test/helper.rb
|
111
166
|
- test/test_exceptions.rb
|
112
167
|
- test/test_find.rb
|
@@ -117,10 +172,9 @@ files:
|
|
117
172
|
- test/test_transaction_lock.rb
|
118
173
|
- test/test_typed_fields.rb
|
119
174
|
- test/test_validations.rb
|
120
|
-
has_rdoc: true
|
121
175
|
homepage: http://mongomatic.com/
|
122
|
-
licenses:
|
123
|
-
|
176
|
+
licenses:
|
177
|
+
- MIT
|
124
178
|
post_install_message:
|
125
179
|
rdoc_options: []
|
126
180
|
|
@@ -131,24 +185,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
131
185
|
requirements:
|
132
186
|
- - ">="
|
133
187
|
- !ruby/object:Gem::Version
|
134
|
-
segments:
|
135
|
-
- 0
|
136
188
|
version: "0"
|
137
189
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
190
|
none: false
|
139
191
|
requirements:
|
140
192
|
- - ">="
|
141
193
|
- !ruby/object:Gem::Version
|
142
|
-
segments:
|
143
|
-
- 0
|
144
194
|
version: "0"
|
145
195
|
requirements: []
|
146
196
|
|
147
197
|
rubyforge_project:
|
148
|
-
rubygems_version: 1.
|
198
|
+
rubygems_version: 1.7.2
|
149
199
|
signing_key:
|
150
200
|
specification_version: 3
|
151
|
-
summary: Mongomatic is a
|
201
|
+
summary: Mongomatic is a modular Ruby object mapper for Mongo
|
152
202
|
test_files:
|
153
203
|
- test/helper.rb
|
154
204
|
- test/test_exceptions.rb
|