mr_mongo 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.md +5 -0
- data/lib/mr_mongo/map_reduce.rb +1 -0
- data/lib/mr_mongo/version.rb +1 -1
- data/spec/unit/lib/mr_mongo/map_reduce_spec.rb +8 -0
- metadata +4 -4
data/ChangeLog.md
CHANGED
data/lib/mr_mongo/map_reduce.rb
CHANGED
@@ -16,6 +16,7 @@ module MrMongo
|
|
16
16
|
options[:finalize] = @finalize if defined?(@finalize)
|
17
17
|
options[:out] = @out if defined?(@out)
|
18
18
|
options[:verbose] = @verbose if defined?(@verbose)
|
19
|
+
options[:scope] = @scope if defined?(@scope)
|
19
20
|
|
20
21
|
options[:raw] = true if defined?(@out) and @out.is_a?(::Hash) and @out[:inline]
|
21
22
|
|
data/lib/mr_mongo/version.rb
CHANGED
@@ -16,6 +16,14 @@ module MrMongo
|
|
16
16
|
it { should eq({query: {foo: "bar"}, limit: 50, verbose: true}) }
|
17
17
|
end
|
18
18
|
|
19
|
+
context 'scope is set' do
|
20
|
+
before do
|
21
|
+
map_reduce.scope = {'foo' => 'bar'}
|
22
|
+
end
|
23
|
+
|
24
|
+
it { should eq({scope: {'foo' => 'bar'}}) }
|
25
|
+
end
|
26
|
+
|
19
27
|
context 'out is inline' do
|
20
28
|
before do
|
21
29
|
map_reduce.out = {inline: true}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mr_mongo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
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: 2013-04-
|
12
|
+
date: 2013-04-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mongo
|
@@ -234,7 +234,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
234
234
|
version: '0'
|
235
235
|
segments:
|
236
236
|
- 0
|
237
|
-
hash:
|
237
|
+
hash: -6559955
|
238
238
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
239
239
|
none: false
|
240
240
|
requirements:
|
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
243
|
version: '0'
|
244
244
|
segments:
|
245
245
|
- 0
|
246
|
-
hash:
|
246
|
+
hash: -6559955
|
247
247
|
requirements: []
|
248
248
|
rubyforge_project:
|
249
249
|
rubygems_version: 1.8.23
|