machinist_mongo 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -1,34 +1,39 @@
1
1
  h1. Machinist Mongo
2
2
 
3
- It aims to replace machinist_mongomapper to provide Machinist adapters not just for MongoMapper but for all the others MongoDB ORMs too. The MongoMapper is the only one implemented yet so fork and contribute please!
3
+ It aims to replace "machinist_mongomapper":http://github.com/yeastymobs/machinist_mongomapper to provide "Machinist":http://github.com/notahat/machinist adapters not just for "MongoMapper":http://mongomapper.com but for all the others MongoDB ORMs too. Right now it supports "Mongoid":http://mongoid.com and "MongoMapper":http://mongomapper.com, but we aim to support _all_ "mongoDB":http://www.mongodb.org/ ORMs, so If you're using something other than MongoMapper or Mongoid, please be sure to write a adapter for it.
4
4
 
5
- h2. Machinist MongoMapper
5
+ h2. Usage
6
6
 
7
- A "Machinist":http://github.com/notahat/machinist adapter for "MongoMapper":http://github.com/jnunemaker/mongomapper.
7
+ Using Machinist MongoMapper is simple. Put this in your @Gemfile@:
8
8
 
9
- h2. Usage
9
+ bc. gem 'machinist_mongo'
10
+
11
+ And run:
12
+
13
+ bc. bundle install
10
14
 
11
- Using Machinist MongoMapper is simple. Just install the gem;
15
+ Or if you’re using Rails 2.x put this in @config/environment.rb@:
12
16
 
13
- bc. gem install machinist_mongo
17
+ bc. config.gem 'machinist_mongo'
14
18
 
15
- And replace the first line of your @blueprints.rb@;
19
+ And run:
16
20
 
17
- bc. require 'machinist/active_record'
21
+ bc. rake gems:install
18
22
 
19
- with this;
23
+ Now create your @spec/blueprints.rb@ or @test/blueprints.rb@ file as you normally would, only using "Mongoid":http://mongoid.com or "MongoMapper":http://mongomapper.com instead of ActiveRecord:
20
24
 
21
- bc. require 'machinist/mongo_mapper'
25
+ bc. require 'machinist/mongo_mapper' # or mongoid
26
+ require 'sham'
22
27
 
23
- Now you can use Machinist with your Mongo database. Have fun!
28
+ Don't forget to require the new @blueprints.rb@ file in your @spec_helper@ (or @test_helper@):
24
29
 
25
- h2. Todo
30
+ bc. require File.expand_path(File.dirname(__FILE__) + "/blueprints")
26
31
 
27
- * Write a spec for EmbeddedDocument.
32
+ And you're all set. Be sure read "Machinist's README":http://github.com/notahat/machinist to find out how to create your objects and get this thing running.
28
33
 
29
34
  h2. Contributors
30
35
 
31
36
  * "Nicolas Mérouze":http://github.com/nmerouze
32
37
  * "Cyril Mougel":http://github.com/shingara
33
38
  * "Aubrey Holland":http://github.com/aub
34
- * "Jeff Kreeftmeijer":http://github.com/jeffkreeftmeijer
39
+ * "Jeff Kreeftmeijer":http://github.com/jeffkreeftmeijer
data/Rakefile CHANGED
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'rubygems'
2
3
  require 'rake'
3
4
  require 'spec/rake/spectask'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -79,5 +79,6 @@ end
79
79
 
80
80
  MongoMapper::Document.append_extensions(Machinist::Blueprints::ClassMethods)
81
81
  MongoMapper::Document.append_extensions(Machinist::MongoMapperExtensions::Document)
82
- MongoMapper::EmbeddedDocument::ClassMethods.send(:include, Machinist::Blueprints::ClassMethods)
83
- MongoMapper::EmbeddedDocument::ClassMethods.send(:include, Machinist::MongoMapperExtensions::EmbeddedDocument)
82
+
83
+ MongoMapper::EmbeddedDocument.append_extensions(Machinist::Blueprints::ClassMethods)
84
+ MongoMapper::EmbeddedDocument.append_extensions(Machinist::MongoMapperExtensions::EmbeddedDocument)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{machinist_mongo}
8
- s.version = "1.1.0"
8
+ s.version = "1.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nicolas M\303\251rouze", "Cyril Mougel"]
12
- s.date = %q{2010-03-31}
12
+ s.date = %q{2010-07-09}
13
13
  s.email = %q{nicolas.merouze@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
31
31
  s.homepage = %q{http://github.com/nmerouze/machinist_mongo}
32
32
  s.rdoc_options = ["--charset=UTF-8"]
33
33
  s.require_paths = ["lib"]
34
- s.rubygems_version = %q{1.3.6}
34
+ s.rubygems_version = %q{1.3.7}
35
35
  s.summary = %q{Machinist adapters for MongoDB ORMs}
36
36
  s.test_files = [
37
37
  "spec/mongo_mapper_spec.rb",
@@ -43,7 +43,7 @@ Gem::Specification.new do |s|
43
43
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
44
44
  s.specification_version = 3
45
45
 
46
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
46
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
47
47
  s.add_runtime_dependency(%q<machinist>, ["~> 1.0.4"])
48
48
  else
49
49
  s.add_dependency(%q<machinist>, ["~> 1.0.4"])
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: machinist_mongo
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 17
4
5
  prerelease: false
5
6
  segments:
6
7
  - 1
7
8
  - 1
8
- - 0
9
- version: 1.1.0
9
+ - 1
10
+ version: 1.1.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - "Nicolas M\xC3\xA9rouze"
@@ -15,16 +16,18 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-03-31 00:00:00 +02:00
19
+ date: 2010-07-09 00:00:00 +02:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
23
  name: machinist
23
24
  prerelease: false
24
25
  requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
25
27
  requirements:
26
28
  - - ~>
27
29
  - !ruby/object:Gem::Version
30
+ hash: 31
28
31
  segments:
29
32
  - 1
30
33
  - 0
@@ -63,23 +66,27 @@ rdoc_options:
63
66
  require_paths:
64
67
  - lib
65
68
  required_ruby_version: !ruby/object:Gem::Requirement
69
+ none: false
66
70
  requirements:
67
71
  - - ">="
68
72
  - !ruby/object:Gem::Version
73
+ hash: 3
69
74
  segments:
70
75
  - 0
71
76
  version: "0"
72
77
  required_rubygems_version: !ruby/object:Gem::Requirement
78
+ none: false
73
79
  requirements:
74
80
  - - ">="
75
81
  - !ruby/object:Gem::Version
82
+ hash: 3
76
83
  segments:
77
84
  - 0
78
85
  version: "0"
79
86
  requirements: []
80
87
 
81
88
  rubyforge_project:
82
- rubygems_version: 1.3.6
89
+ rubygems_version: 1.3.7
83
90
  signing_key:
84
91
  specification_version: 3
85
92
  summary: Machinist adapters for MongoDB ORMs