map-reduce-ruby 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/map_reduce/mapper.rb +4 -1
- data/lib/map_reduce/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5545309a188291db41e8f5fc24af45a8d983c5084f2233d735cab309921c928c
|
4
|
+
data.tar.gz: 779a839704ace3780a304bc7295c8b1f27e834253ee0544e9ff6ae21eda93753
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb577347b7e5c09dd34166e814fc0c50180b6f036fad84de3857dc93d28242be81637d5b0c7f19ea7a846c659eca0c12fcbae01cdac37c4f2bf50c6d9f8f27f6
|
7
|
+
data.tar.gz: 704b5d6a140583099c53902ceaab5af7b45c41c004f159fc215a942a4749063bf0990c2d60cde15af9663da726bab03a1258e085c0e789470150ab96caf895f7
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/map_reduce/mapper.rb
CHANGED
@@ -101,7 +101,10 @@ module MapReduce
|
|
101
101
|
|
102
102
|
@buffer.sort_by!(&:first)
|
103
103
|
|
104
|
-
|
104
|
+
chunk = @buffer
|
105
|
+
chunk = reduce_chunk(chunk, @implementation) if @implementation.respond_to?(:reduce)
|
106
|
+
|
107
|
+
chunk.each do |pair|
|
105
108
|
tempfile.puts JSON.generate(pair)
|
106
109
|
end
|
107
110
|
|
data/lib/map_reduce/version.rb
CHANGED