mongomapper-sweatshop 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/mongomapper_sweatshop.rb +2 -1
- data/spec/mongo-sweatshop/mongo_mapper_spec.rb +31 -0
- metadata +4 -3
data/README.md
CHANGED
|
@@ -8,7 +8,7 @@ https://github.com/datamapper/dm-sweatshop/ shamelessly rewritten for mongo_mapp
|
|
|
8
8
|
* mongo_mapper
|
|
9
9
|
|
|
10
10
|
#### Installation: (Gemfile)
|
|
11
|
-
gem "
|
|
11
|
+
gem "mongomapper-sweatshop", require: 'mongomapper_sweatshop'
|
|
12
12
|
|
|
13
13
|
####Usage:
|
|
14
14
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.3
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
describe MongoMapperSweatShop do
|
|
4
|
+
|
|
5
|
+
context "embedded document inclusion" do
|
|
6
|
+
subject do
|
|
7
|
+
class Foo
|
|
8
|
+
include MongoMapper::EmbeddedDocument
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
%w(fix gen make).each do |method|
|
|
13
|
+
it do
|
|
14
|
+
should respond_to(method.to_sym)
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
context "document inclusion" do
|
|
20
|
+
subject do
|
|
21
|
+
class Foo
|
|
22
|
+
include MongoMapper::Document
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
%w(fix gen make).each do |method|
|
|
26
|
+
it do
|
|
27
|
+
should respond_to(method.to_sym)
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mongomapper-sweatshop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-11-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: mongo_mapper
|
|
@@ -172,6 +172,7 @@ files:
|
|
|
172
172
|
- lib/mongomapper_sweatshop.rb
|
|
173
173
|
- mongomapper-sweatshop.gemspec
|
|
174
174
|
- spec/mongo-sweatshop/model_spec.rb
|
|
175
|
+
- spec/mongo-sweatshop/mongo_mapper_spec.rb
|
|
175
176
|
- spec/mongo-sweatshop/sweatshop_spec.rb
|
|
176
177
|
- spec/spec_helper.rb
|
|
177
178
|
homepage: http://github.com/lamp/mongomapper_sweatshop
|
|
@@ -188,7 +189,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
188
189
|
version: '0'
|
|
189
190
|
segments:
|
|
190
191
|
- 0
|
|
191
|
-
hash:
|
|
192
|
+
hash: 2775162461812053175
|
|
192
193
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
194
|
none: false
|
|
194
195
|
requirements:
|