mr_mongo 0.1.0 → 0.1.1

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/ChangeLog.md CHANGED
@@ -1,6 +1,11 @@
1
1
  ChangeLog of Mr. Mongo
2
2
  ======================
3
3
 
4
+ 0.1.1 released 2013-04-12
5
+ -------------------------
6
+
7
+ - [Fix] Add `scope` for `MrMongo::MapReduce#to_options`
8
+
4
9
  0.1.0 released 2013-04-08
5
10
  -------------------------
6
11
 
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module MrMongo
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -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.0
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-08 00:00:00.000000000 Z
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: 1026442737
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: 1026442737
246
+ hash: -6559955
247
247
  requirements: []
248
248
  rubyforge_project:
249
249
  rubygems_version: 1.8.23