mongomodel 0.2.8 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1 +1,3 @@
1
1
  .bundle
2
+ Gemfile.lock
3
+ pkg/*
data/Gemfile CHANGED
@@ -1,11 +1,4 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "activemodel", "~> 3.0.0"
4
- gem "activesupport", "~> 3.0.0"
5
- gem "tzinfo"
6
-
7
- gem "mongo", '= 1.0.7'
8
- gem "bson", '= 1.0.7'
3
+ gemspec
9
4
  gem "bson_ext", '= 1.0.7'
10
-
11
- gem "rspec"
data/README.md CHANGED
@@ -16,6 +16,22 @@ For performance, you should probably also install the BSON C extensions:
16
16
  gem install bson_ext
17
17
 
18
18
 
19
+ Using with Rails 3
20
+ ==================
21
+
22
+ Setup config/mongomodel.yml:
23
+
24
+ rails generate mongo_model:config DATABASENAME
25
+
26
+ Generating a model/document:
27
+
28
+ rails generate model Article title:string body:string published_at:time approved:boolean
29
+
30
+ Generating an embedded document:
31
+
32
+ rails generate model Chapter title:string body:string -E
33
+
34
+
19
35
  Sample Usage
20
36
  ============
21
37
 
data/Rakefile CHANGED
@@ -33,26 +33,5 @@ Rake::RDocTask.new(:doc) do |rdoc|
33
33
  rdoc.rdoc_files.include('lib')
34
34
  end
35
35
 
36
- begin
37
- require 'jeweler'
38
- require File.dirname(__FILE__) + "/lib/mongomodel/version"
39
-
40
- Jeweler::Tasks.new do |gem|
41
- gem.name = "mongomodel"
42
- gem.summary = "MongoDB ORM for Ruby/Rails"
43
- gem.description = "MongoModel is a MongoDB ORM for Ruby/Rails similar to ActiveRecord and DataMapper."
44
- gem.email = "sam@sampohlenz.com"
45
- gem.homepage = "http://www.mongomodel.org"
46
- gem.authors = ["Sam Pohlenz"]
47
- gem.version = MongoModel::VERSION
48
-
49
- gem.add_dependency('activesupport', '~> 3.0.0')
50
- gem.add_dependency('activemodel', '~> 3.0.0')
51
- gem.add_dependency('mongo', '~> 1.0.7')
52
- gem.add_development_dependency('rspec', '>= 1.3.0')
53
- end
54
-
55
- Jeweler::GemcutterTasks.new
56
- rescue LoadError
57
- STDERR.puts "Jeweler not available. Install it with: gem install jeweler"
58
- end
36
+ require 'bundler'
37
+ Bundler::GemHelper.install_tasks
@@ -2,15 +2,8 @@
2
2
 
3
3
  puts "Loading MongoModel sandbox..."
4
4
 
5
- begin
6
- # Try to require the preresolved locked set of gems.
7
- require File.expand_path('../../.bundle/environment', __FILE__)
8
- rescue LoadError
9
- # Fall back on doing an unlocked resolve at runtime.
10
- require "rubygems"
11
- require "bundler"
12
- Bundler.setup
13
- end
5
+ require "rubygems"
6
+ require "bundler/setup"
14
7
 
15
8
  $LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib')
16
9
 
@@ -5,11 +5,12 @@ require 'mongo'
5
5
 
6
6
  require 'mongomodel/support/core_extensions'
7
7
  require 'mongomodel/support/exceptions'
8
- require 'mongomodel/version'
9
8
 
10
9
  require 'active_support/core_ext/module/attribute_accessors'
11
10
 
12
11
  module MongoModel
12
+ autoload :VERSION, 'mongomodel/version'
13
+
13
14
  autoload :Document, 'mongomodel/document'
14
15
  autoload :EmbeddedDocument, 'mongomodel/embedded_document'
15
16
 
@@ -1,5 +1,12 @@
1
1
  module MongoModel
2
2
  class Railtie < Rails::Railtie
3
+
4
+ config.generators.orm :mongo_model, :migration => false
5
+
6
+ rake_tasks do
7
+ load "mongomodel/tasks/database.rake"
8
+ end
9
+
3
10
  initializer "mongomodel.logger" do
4
11
  MongoModel.logger ||= ::Rails.logger
5
12
  end
@@ -0,0 +1,63 @@
1
+ namespace :db do
2
+ unless Rake::Task.task_defined?("db:drop")
3
+ desc 'Drops all the collections for the database for the current Rails.env'
4
+ task :drop => :environment do
5
+ MongoModel.database.collections.each do |coll|
6
+ coll.drop unless coll.name =~ /(.*\.)?system\..*/
7
+ end
8
+ end
9
+ end
10
+
11
+ unless Rake::Task.task_defined?("db:seed")
12
+ # if another ORM has defined db:seed, don't run it twice.
13
+ desc 'Load the seed data from db/seeds.rb'
14
+ task :seed => :environment do
15
+ seed_file = File.join(Rails.root, 'db', 'seeds.rb')
16
+ load(seed_file) if File.exist?(seed_file)
17
+ end
18
+ end
19
+
20
+ unless Rake::Task.task_defined?("db:setup")
21
+ desc 'Create the database, and initialize with the seed data'
22
+ task :setup => [ 'db:create', 'db:create_indexes', 'db:seed' ]
23
+ end
24
+
25
+ unless Rake::Task.task_defined?("db:reseed")
26
+ desc 'Delete data and seed'
27
+ task :reseed => [ 'db:drop', 'db:seed' ]
28
+ end
29
+
30
+ unless Rake::Task.task_defined?("db:create")
31
+ task :create => :environment do
32
+ # noop
33
+ end
34
+ end
35
+
36
+ unless Rake::Task.task_defined?("db:migrate")
37
+ task :migrate => :environment do
38
+ # noop
39
+ end
40
+ end
41
+
42
+ unless Rake::Task.task_defined?("db:schema:load")
43
+ namespace :schema do
44
+ task :load do
45
+ # noop
46
+ end
47
+ end
48
+ end
49
+
50
+ unless Rake::Task.task_defined?("db:test:prepare")
51
+ namespace :test do
52
+ task :prepare do
53
+ # noop
54
+ end
55
+ end
56
+ end
57
+
58
+ unless Rake::Task.task_defined?("db:create_indexes")
59
+ task :create_indexes do
60
+ # noop
61
+ end
62
+ end
63
+ end
@@ -1,3 +1,3 @@
1
1
  module MongoModel
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
@@ -1,241 +1,26 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
1
  # -*- encoding: utf-8 -*-
2
+ require File.expand_path("../lib/mongomodel/version", __FILE__)
5
3
 
6
4
  Gem::Specification.new do |s|
7
- s.name = %q{mongomodel}
8
- s.version = "0.2.8"
5
+ s.name = "mongomodel"
6
+ s.version = MongoModel::VERSION
7
+ s.platform = Gem::Platform::RUBY
8
+ s.authors = ["Sam Pohlenz"]
9
+ s.email = ["sam@sampohlenz.com"]
10
+ s.homepage = "http://www.mongomodel.org"
11
+ s.summary = "MongoDB ORM for Ruby/Rails"
12
+ s.description = "MongoModel is a MongoDB ORM for Ruby/Rails similar to ActiveRecord and DataMapper."
9
13
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Sam Pohlenz"]
12
- s.date = %q{2010-09-06}
13
- s.default_executable = %q{console}
14
- s.description = %q{MongoModel is a MongoDB ORM for Ruby/Rails similar to ActiveRecord and DataMapper.}
15
- s.email = %q{sam@sampohlenz.com}
16
- s.executables = ["console"]
17
- s.extra_rdoc_files = [
18
- "LICENSE",
19
- "README.md"
20
- ]
21
- s.files = [
22
- ".gitignore",
23
- "Gemfile",
24
- "LICENSE",
25
- "README.md",
26
- "Rakefile",
27
- "autotest/discover.rb",
28
- "bin/console",
29
- "lib/mongomodel.rb",
30
- "lib/mongomodel/attributes/dirty.rb",
31
- "lib/mongomodel/attributes/mongo.rb",
32
- "lib/mongomodel/attributes/store.rb",
33
- "lib/mongomodel/attributes/typecasting.rb",
34
- "lib/mongomodel/concerns/abstract_class.rb",
35
- "lib/mongomodel/concerns/activemodel.rb",
36
- "lib/mongomodel/concerns/associations.rb",
37
- "lib/mongomodel/concerns/associations/base/association.rb",
38
- "lib/mongomodel/concerns/associations/base/definition.rb",
39
- "lib/mongomodel/concerns/associations/base/proxy.rb",
40
- "lib/mongomodel/concerns/associations/belongs_to.rb",
41
- "lib/mongomodel/concerns/associations/has_many_by_foreign_key.rb",
42
- "lib/mongomodel/concerns/associations/has_many_by_ids.rb",
43
- "lib/mongomodel/concerns/attribute_methods.rb",
44
- "lib/mongomodel/concerns/attribute_methods/before_type_cast.rb",
45
- "lib/mongomodel/concerns/attribute_methods/dirty.rb",
46
- "lib/mongomodel/concerns/attribute_methods/protected.rb",
47
- "lib/mongomodel/concerns/attribute_methods/query.rb",
48
- "lib/mongomodel/concerns/attribute_methods/read.rb",
49
- "lib/mongomodel/concerns/attribute_methods/write.rb",
50
- "lib/mongomodel/concerns/attributes.rb",
51
- "lib/mongomodel/concerns/callbacks.rb",
52
- "lib/mongomodel/concerns/document_parent.rb",
53
- "lib/mongomodel/concerns/logging.rb",
54
- "lib/mongomodel/concerns/pretty_inspect.rb",
55
- "lib/mongomodel/concerns/properties.rb",
56
- "lib/mongomodel/concerns/record_status.rb",
57
- "lib/mongomodel/concerns/serialization.rb",
58
- "lib/mongomodel/concerns/timestamps.rb",
59
- "lib/mongomodel/concerns/translation.rb",
60
- "lib/mongomodel/concerns/validations.rb",
61
- "lib/mongomodel/concerns/validations/associated.rb",
62
- "lib/mongomodel/document.rb",
63
- "lib/mongomodel/document/callbacks.rb",
64
- "lib/mongomodel/document/dynamic_finders.rb",
65
- "lib/mongomodel/document/indexes.rb",
66
- "lib/mongomodel/document/optimistic_locking.rb",
67
- "lib/mongomodel/document/persistence.rb",
68
- "lib/mongomodel/document/scopes.rb",
69
- "lib/mongomodel/document/validations.rb",
70
- "lib/mongomodel/document/validations/uniqueness.rb",
71
- "lib/mongomodel/embedded_document.rb",
72
- "lib/mongomodel/locale/en.yml",
73
- "lib/mongomodel/railtie.rb",
74
- "lib/mongomodel/support/collection.rb",
75
- "lib/mongomodel/support/configuration.rb",
76
- "lib/mongomodel/support/core_extensions.rb",
77
- "lib/mongomodel/support/dynamic_finder.rb",
78
- "lib/mongomodel/support/exceptions.rb",
79
- "lib/mongomodel/support/map.rb",
80
- "lib/mongomodel/support/mongo_operator.rb",
81
- "lib/mongomodel/support/mongo_options.rb",
82
- "lib/mongomodel/support/mongo_order.rb",
83
- "lib/mongomodel/support/reference.rb",
84
- "lib/mongomodel/support/scope.rb",
85
- "lib/mongomodel/support/scope/dynamic_finders.rb",
86
- "lib/mongomodel/support/scope/finder_methods.rb",
87
- "lib/mongomodel/support/scope/query_methods.rb",
88
- "lib/mongomodel/support/scope/spawn_methods.rb",
89
- "lib/mongomodel/support/types.rb",
90
- "lib/mongomodel/support/types/array.rb",
91
- "lib/mongomodel/support/types/boolean.rb",
92
- "lib/mongomodel/support/types/custom.rb",
93
- "lib/mongomodel/support/types/date.rb",
94
- "lib/mongomodel/support/types/float.rb",
95
- "lib/mongomodel/support/types/hash.rb",
96
- "lib/mongomodel/support/types/integer.rb",
97
- "lib/mongomodel/support/types/object.rb",
98
- "lib/mongomodel/support/types/set.rb",
99
- "lib/mongomodel/support/types/string.rb",
100
- "lib/mongomodel/support/types/symbol.rb",
101
- "lib/mongomodel/support/types/time.rb",
102
- "lib/mongomodel/version.rb",
103
- "lib/rails/generators/mongo_model/config/config_generator.rb",
104
- "lib/rails/generators/mongo_model/config/templates/mongomodel.yml",
105
- "lib/rails/generators/mongo_model/model/model_generator.rb",
106
- "lib/rails/generators/mongo_model/model/templates/model.rb",
107
- "mongomodel.gemspec",
108
- "spec/mongomodel/attributes/store_spec.rb",
109
- "spec/mongomodel/concerns/activemodel_spec.rb",
110
- "spec/mongomodel/concerns/associations/belongs_to_spec.rb",
111
- "spec/mongomodel/concerns/associations/has_many_by_foreign_key_spec.rb",
112
- "spec/mongomodel/concerns/associations/has_many_by_ids_spec.rb",
113
- "spec/mongomodel/concerns/attribute_methods/before_type_cast_spec.rb",
114
- "spec/mongomodel/concerns/attribute_methods/dirty_spec.rb",
115
- "spec/mongomodel/concerns/attribute_methods/protected_spec.rb",
116
- "spec/mongomodel/concerns/attribute_methods/query_spec.rb",
117
- "spec/mongomodel/concerns/attribute_methods/read_spec.rb",
118
- "spec/mongomodel/concerns/attribute_methods/write_spec.rb",
119
- "spec/mongomodel/concerns/attributes_spec.rb",
120
- "spec/mongomodel/concerns/callbacks_spec.rb",
121
- "spec/mongomodel/concerns/logging_spec.rb",
122
- "spec/mongomodel/concerns/pretty_inspect_spec.rb",
123
- "spec/mongomodel/concerns/properties_spec.rb",
124
- "spec/mongomodel/concerns/serialization/json_serialization_spec.rb",
125
- "spec/mongomodel/concerns/timestamps_spec.rb",
126
- "spec/mongomodel/concerns/translation_spec.rb",
127
- "spec/mongomodel/concerns/validations_spec.rb",
128
- "spec/mongomodel/document/callbacks_spec.rb",
129
- "spec/mongomodel/document/dynamic_finders_spec.rb",
130
- "spec/mongomodel/document/finders_spec.rb",
131
- "spec/mongomodel/document/indexes_spec.rb",
132
- "spec/mongomodel/document/optimistic_locking_spec.rb",
133
- "spec/mongomodel/document/persistence_spec.rb",
134
- "spec/mongomodel/document/scopes_spec.rb",
135
- "spec/mongomodel/document/validations/uniqueness_spec.rb",
136
- "spec/mongomodel/document/validations_spec.rb",
137
- "spec/mongomodel/document_spec.rb",
138
- "spec/mongomodel/embedded_document_spec.rb",
139
- "spec/mongomodel/mongomodel_spec.rb",
140
- "spec/mongomodel/support/collection_spec.rb",
141
- "spec/mongomodel/support/map_spec.rb",
142
- "spec/mongomodel/support/mongo_operator_spec.rb",
143
- "spec/mongomodel/support/mongo_options_spec.rb",
144
- "spec/mongomodel/support/mongo_order_spec.rb",
145
- "spec/mongomodel/support/property_spec.rb",
146
- "spec/mongomodel/support/scope_spec.rb",
147
- "spec/spec.opts",
148
- "spec/spec_helper.rb",
149
- "spec/specdoc.opts",
150
- "spec/support/callbacks.rb",
151
- "spec/support/helpers/define_class.rb",
152
- "spec/support/helpers/document_finder_stubs.rb",
153
- "spec/support/helpers/specs_for.rb",
154
- "spec/support/matchers/be_a_subclass_of.rb",
155
- "spec/support/matchers/be_truthy.rb",
156
- "spec/support/matchers/find_with.rb",
157
- "spec/support/matchers/respond_to_boolean.rb",
158
- "spec/support/matchers/run_callbacks.rb",
159
- "spec/support/models.rb"
160
- ]
161
- s.homepage = %q{http://www.mongomodel.org}
162
- s.rdoc_options = ["--charset=UTF-8"]
163
- s.require_paths = ["lib"]
164
- s.rubygems_version = %q{1.3.7}
165
- s.summary = %q{MongoDB ORM for Ruby/Rails}
166
- s.test_files = [
167
- "spec/mongomodel/attributes/store_spec.rb",
168
- "spec/mongomodel/concerns/activemodel_spec.rb",
169
- "spec/mongomodel/concerns/associations/belongs_to_spec.rb",
170
- "spec/mongomodel/concerns/associations/has_many_by_foreign_key_spec.rb",
171
- "spec/mongomodel/concerns/associations/has_many_by_ids_spec.rb",
172
- "spec/mongomodel/concerns/attribute_methods/before_type_cast_spec.rb",
173
- "spec/mongomodel/concerns/attribute_methods/dirty_spec.rb",
174
- "spec/mongomodel/concerns/attribute_methods/protected_spec.rb",
175
- "spec/mongomodel/concerns/attribute_methods/query_spec.rb",
176
- "spec/mongomodel/concerns/attribute_methods/read_spec.rb",
177
- "spec/mongomodel/concerns/attribute_methods/write_spec.rb",
178
- "spec/mongomodel/concerns/attributes_spec.rb",
179
- "spec/mongomodel/concerns/callbacks_spec.rb",
180
- "spec/mongomodel/concerns/logging_spec.rb",
181
- "spec/mongomodel/concerns/pretty_inspect_spec.rb",
182
- "spec/mongomodel/concerns/properties_spec.rb",
183
- "spec/mongomodel/concerns/serialization/json_serialization_spec.rb",
184
- "spec/mongomodel/concerns/timestamps_spec.rb",
185
- "spec/mongomodel/concerns/translation_spec.rb",
186
- "spec/mongomodel/concerns/validations_spec.rb",
187
- "spec/mongomodel/document/callbacks_spec.rb",
188
- "spec/mongomodel/document/dynamic_finders_spec.rb",
189
- "spec/mongomodel/document/finders_spec.rb",
190
- "spec/mongomodel/document/indexes_spec.rb",
191
- "spec/mongomodel/document/optimistic_locking_spec.rb",
192
- "spec/mongomodel/document/persistence_spec.rb",
193
- "spec/mongomodel/document/scopes_spec.rb",
194
- "spec/mongomodel/document/validations/uniqueness_spec.rb",
195
- "spec/mongomodel/document/validations_spec.rb",
196
- "spec/mongomodel/document_spec.rb",
197
- "spec/mongomodel/embedded_document_spec.rb",
198
- "spec/mongomodel/mongomodel_spec.rb",
199
- "spec/mongomodel/support/collection_spec.rb",
200
- "spec/mongomodel/support/map_spec.rb",
201
- "spec/mongomodel/support/mongo_operator_spec.rb",
202
- "spec/mongomodel/support/mongo_options_spec.rb",
203
- "spec/mongomodel/support/mongo_order_spec.rb",
204
- "spec/mongomodel/support/property_spec.rb",
205
- "spec/mongomodel/support/scope_spec.rb",
206
- "spec/spec_helper.rb",
207
- "spec/support/callbacks.rb",
208
- "spec/support/helpers/define_class.rb",
209
- "spec/support/helpers/document_finder_stubs.rb",
210
- "spec/support/helpers/specs_for.rb",
211
- "spec/support/matchers/be_a_subclass_of.rb",
212
- "spec/support/matchers/be_truthy.rb",
213
- "spec/support/matchers/find_with.rb",
214
- "spec/support/matchers/respond_to_boolean.rb",
215
- "spec/support/matchers/run_callbacks.rb",
216
- "spec/support/models.rb"
217
- ]
14
+ s.required_rubygems_version = ">= 1.3.6"
15
+ s.rubyforge_project = "mongomodel"
16
+
17
+ s.add_dependency "activesupport", "~> 3.0.0"
18
+ s.add_dependency "activemodel", "~> 3.0.0"
19
+ s.add_dependency "mongo", "~> 1.0.7"
218
20
 
219
- if s.respond_to? :specification_version then
220
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
221
- s.specification_version = 3
21
+ s.add_development_dependency "bundler", ">= 1.0.0"
22
+ s.add_development_dependency "rspec", "= 1.3.0"
222
23
 
223
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
224
- s.add_runtime_dependency(%q<activesupport>, ["~> 3.0.0"])
225
- s.add_runtime_dependency(%q<activemodel>, ["~> 3.0.0"])
226
- s.add_runtime_dependency(%q<mongo>, ["~> 1.0.7"])
227
- s.add_development_dependency(%q<rspec>, [">= 1.3.0"])
228
- else
229
- s.add_dependency(%q<activesupport>, ["~> 3.0.0"])
230
- s.add_dependency(%q<activemodel>, ["~> 3.0.0"])
231
- s.add_dependency(%q<mongo>, ["~> 1.0.7"])
232
- s.add_dependency(%q<rspec>, [">= 1.3.0"])
233
- end
234
- else
235
- s.add_dependency(%q<activesupport>, ["~> 3.0.0"])
236
- s.add_dependency(%q<activemodel>, ["~> 3.0.0"])
237
- s.add_dependency(%q<mongo>, ["~> 1.0.7"])
238
- s.add_dependency(%q<rspec>, [">= 1.3.0"])
239
- end
24
+ s.files = `git ls-files`.split("\n")
25
+ s.require_path = 'lib'
240
26
  end
241
-
@@ -1,13 +1,5 @@
1
- begin
2
- # Try to require the preresolved locked set of gems.
3
- require File.expand_path('../../.bundle/environment', __FILE__)
4
- rescue LoadError
5
- # Fall back on doing an unlocked resolve at runtime.
6
- require "rubygems"
7
- require "bundler"
8
- Bundler.setup
9
- end
10
-
1
+ require 'rubygems'
2
+ require 'bundler/setup'
11
3
  require 'spec'
12
4
 
13
5
  # Require MongoModel library
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongomodel
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 2
9
- - 8
10
- version: 0.2.8
8
+ - 9
9
+ version: 0.2.9
11
10
  platform: ruby
12
11
  authors:
13
12
  - Sam Pohlenz
@@ -15,8 +14,8 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-09-06 00:00:00 +09:30
19
- default_executable: console
17
+ date: 2010-09-28 00:00:00 +09:30
18
+ default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: activesupport
@@ -26,7 +25,6 @@ dependencies:
26
25
  requirements:
27
26
  - - ~>
28
27
  - !ruby/object:Gem::Version
29
- hash: 7
30
28
  segments:
31
29
  - 3
32
30
  - 0
@@ -42,7 +40,6 @@ dependencies:
42
40
  requirements:
43
41
  - - ~>
44
42
  - !ruby/object:Gem::Version
45
- hash: 7
46
43
  segments:
47
44
  - 3
48
45
  - 0
@@ -58,7 +55,6 @@ dependencies:
58
55
  requirements:
59
56
  - - ~>
60
57
  - !ruby/object:Gem::Version
61
- hash: 25
62
58
  segments:
63
59
  - 1
64
60
  - 0
@@ -67,30 +63,44 @@ dependencies:
67
63
  type: :runtime
68
64
  version_requirements: *id003
69
65
  - !ruby/object:Gem::Dependency
70
- name: rspec
66
+ name: bundler
71
67
  prerelease: false
72
68
  requirement: &id004 !ruby/object:Gem::Requirement
73
69
  none: false
74
70
  requirements:
75
71
  - - ">="
76
72
  - !ruby/object:Gem::Version
77
- hash: 27
73
+ segments:
74
+ - 1
75
+ - 0
76
+ - 0
77
+ version: 1.0.0
78
+ type: :development
79
+ version_requirements: *id004
80
+ - !ruby/object:Gem::Dependency
81
+ name: rspec
82
+ prerelease: false
83
+ requirement: &id005 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - "="
87
+ - !ruby/object:Gem::Version
78
88
  segments:
79
89
  - 1
80
90
  - 3
81
91
  - 0
82
92
  version: 1.3.0
83
93
  type: :development
84
- version_requirements: *id004
94
+ version_requirements: *id005
85
95
  description: MongoModel is a MongoDB ORM for Ruby/Rails similar to ActiveRecord and DataMapper.
86
- email: sam@sampohlenz.com
87
- executables:
88
- - console
96
+ email:
97
+ - sam@sampohlenz.com
98
+ executables: []
99
+
89
100
  extensions: []
90
101
 
91
- extra_rdoc_files:
92
- - LICENSE
93
- - README.md
102
+ extra_rdoc_files: []
103
+
94
104
  files:
95
105
  - .gitignore
96
106
  - Gemfile
@@ -172,6 +182,7 @@ files:
172
182
  - lib/mongomodel/support/types/string.rb
173
183
  - lib/mongomodel/support/types/symbol.rb
174
184
  - lib/mongomodel/support/types/time.rb
185
+ - lib/mongomodel/tasks/database.rake
175
186
  - lib/mongomodel/version.rb
176
187
  - lib/rails/generators/mongo_model/config/config_generator.rb
177
188
  - lib/rails/generators/mongo_model/config/templates/mongomodel.yml
@@ -235,8 +246,8 @@ homepage: http://www.mongomodel.org
235
246
  licenses: []
236
247
 
237
248
  post_install_message:
238
- rdoc_options:
239
- - --charset=UTF-8
249
+ rdoc_options: []
250
+
240
251
  require_paths:
241
252
  - lib
242
253
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -244,7 +255,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
244
255
  requirements:
245
256
  - - ">="
246
257
  - !ruby/object:Gem::Version
247
- hash: 3
248
258
  segments:
249
259
  - 0
250
260
  version: "0"
@@ -253,65 +263,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
253
263
  requirements:
254
264
  - - ">="
255
265
  - !ruby/object:Gem::Version
256
- hash: 3
257
266
  segments:
258
- - 0
259
- version: "0"
267
+ - 1
268
+ - 3
269
+ - 6
270
+ version: 1.3.6
260
271
  requirements: []
261
272
 
262
- rubyforge_project:
273
+ rubyforge_project: mongomodel
263
274
  rubygems_version: 1.3.7
264
275
  signing_key:
265
276
  specification_version: 3
266
277
  summary: MongoDB ORM for Ruby/Rails
267
- test_files:
268
- - spec/mongomodel/attributes/store_spec.rb
269
- - spec/mongomodel/concerns/activemodel_spec.rb
270
- - spec/mongomodel/concerns/associations/belongs_to_spec.rb
271
- - spec/mongomodel/concerns/associations/has_many_by_foreign_key_spec.rb
272
- - spec/mongomodel/concerns/associations/has_many_by_ids_spec.rb
273
- - spec/mongomodel/concerns/attribute_methods/before_type_cast_spec.rb
274
- - spec/mongomodel/concerns/attribute_methods/dirty_spec.rb
275
- - spec/mongomodel/concerns/attribute_methods/protected_spec.rb
276
- - spec/mongomodel/concerns/attribute_methods/query_spec.rb
277
- - spec/mongomodel/concerns/attribute_methods/read_spec.rb
278
- - spec/mongomodel/concerns/attribute_methods/write_spec.rb
279
- - spec/mongomodel/concerns/attributes_spec.rb
280
- - spec/mongomodel/concerns/callbacks_spec.rb
281
- - spec/mongomodel/concerns/logging_spec.rb
282
- - spec/mongomodel/concerns/pretty_inspect_spec.rb
283
- - spec/mongomodel/concerns/properties_spec.rb
284
- - spec/mongomodel/concerns/serialization/json_serialization_spec.rb
285
- - spec/mongomodel/concerns/timestamps_spec.rb
286
- - spec/mongomodel/concerns/translation_spec.rb
287
- - spec/mongomodel/concerns/validations_spec.rb
288
- - spec/mongomodel/document/callbacks_spec.rb
289
- - spec/mongomodel/document/dynamic_finders_spec.rb
290
- - spec/mongomodel/document/finders_spec.rb
291
- - spec/mongomodel/document/indexes_spec.rb
292
- - spec/mongomodel/document/optimistic_locking_spec.rb
293
- - spec/mongomodel/document/persistence_spec.rb
294
- - spec/mongomodel/document/scopes_spec.rb
295
- - spec/mongomodel/document/validations/uniqueness_spec.rb
296
- - spec/mongomodel/document/validations_spec.rb
297
- - spec/mongomodel/document_spec.rb
298
- - spec/mongomodel/embedded_document_spec.rb
299
- - spec/mongomodel/mongomodel_spec.rb
300
- - spec/mongomodel/support/collection_spec.rb
301
- - spec/mongomodel/support/map_spec.rb
302
- - spec/mongomodel/support/mongo_operator_spec.rb
303
- - spec/mongomodel/support/mongo_options_spec.rb
304
- - spec/mongomodel/support/mongo_order_spec.rb
305
- - spec/mongomodel/support/property_spec.rb
306
- - spec/mongomodel/support/scope_spec.rb
307
- - spec/spec_helper.rb
308
- - spec/support/callbacks.rb
309
- - spec/support/helpers/define_class.rb
310
- - spec/support/helpers/document_finder_stubs.rb
311
- - spec/support/helpers/specs_for.rb
312
- - spec/support/matchers/be_a_subclass_of.rb
313
- - spec/support/matchers/be_truthy.rb
314
- - spec/support/matchers/find_with.rb
315
- - spec/support/matchers/respond_to_boolean.rb
316
- - spec/support/matchers/run_callbacks.rb
317
- - spec/support/models.rb
278
+ test_files: []
279
+