arc-furnace 0.1.29 → 0.1.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arc-furnace/passthrough_sink.rb +8 -1
- data/lib/arc-furnace/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2faf523ade797107093de338836f4cf729280b6
|
4
|
+
data.tar.gz: d44a2695905ba74e5ff6dde9900c093fec51698a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56f4db95b3f40082f98ceaa065f42267b2ba09cb62eba19a18df1a908f1fd95a7ee36ead23e9be508ed1e09f85ac501cf7cb1707212cfa279908ae54d9032975
|
7
|
+
data.tar.gz: aaa3aaf2b622b2846b887c3f1cd67a014d14c48bc7ce27d7cd354c9b530307c8eb72c8db9e49fa4efda8950173c6ec82b1b187194597991c1623dc2d1e6c9d1c
|
@@ -1,11 +1,18 @@
|
|
1
1
|
module ArcFurnace
|
2
2
|
class PassthroughSink < Sink
|
3
3
|
|
4
|
+
attr_reader :collection
|
5
|
+
|
4
6
|
def initialize(options = {})
|
7
|
+
@collection = Set.new
|
8
|
+
end
|
9
|
+
|
10
|
+
def finalize
|
11
|
+
collection.to_a
|
5
12
|
end
|
6
13
|
|
7
14
|
def row(object)
|
8
|
-
object
|
15
|
+
collection << object
|
9
16
|
end
|
10
17
|
|
11
18
|
end
|
data/lib/arc-furnace/version.rb
CHANGED