arc-furnace 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ddf02e39df88f030eaa1f02618454af0915adb8
4
- data.tar.gz: cf08e1ff2e0744c3bfb278ba1a673b92403468ef
3
+ metadata.gz: 9df3a73be9dcc9895ac020fa90b19107913098a9
4
+ data.tar.gz: c1cb5a2361519f5fbeaf559573cd8218888b2ac3
5
5
  SHA512:
6
- metadata.gz: fb37ff1cfee0910462cdcf1bcacfdda0420766ccd1626b1829b5958eec7a4825bb140c922d66b7769bdaa7389f17e533fc33832705d37c15229db04e66a3485e
7
- data.tar.gz: f93278f6ffd3c89bc77bb34993180cc6b1d04ddc0f1e2dcc71640fb0561ca723010d56a731a2fe3f9a118c9dbd337bdcf883932ae6b6376242334d70b1c6c18a
6
+ metadata.gz: fdcbef6297c18f2860a5c4e25ba30cfef1c2f60fb2b70cc801dd23d27b06c9692ba09ecb8721c57ae7929ab9d9d146fc3bd18d71dab6dcc83cea28049ca3327c
7
+ data.tar.gz: 1d357cd76b76ab5f2982c5afb6a094892472eca16919dd34c13c959d1623bdc3dd93ed32549ebd9d8215b6fcd3a109dd61a3f9065989c3a8c2bd4a79ec3d131e
@@ -17,6 +17,11 @@ module ArcFurnace
17
17
  hash.each(&block)
18
18
  end
19
19
 
20
+ # Called at the end of processing all rows; do any clean-up or state saving here.
21
+ def finalize
22
+
23
+ end
24
+
20
25
  def prepare
21
26
  loop do
22
27
  break if source.empty?
@@ -127,6 +127,7 @@ module ArcFurnace
127
127
  while (row = sink_source.row)
128
128
  sink_node.row(row)
129
129
  end
130
+ intermediates_map.each { |_, instance| instance.finalize }
130
131
  sink_node.finalize
131
132
  end
132
133
 
@@ -17,6 +17,11 @@ module ArcFurnace
17
17
  result
18
18
  end
19
19
 
20
+ # Called at the end of processing, do any clean-up or state-saving here.
21
+ def finalize
22
+
23
+ end
24
+
20
25
  # Is this source empty?
21
26
  def empty?
22
27
  raise 'Unimplemented'
@@ -1,3 +1,3 @@
1
1
  module ArcFurnace
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arc-furnace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Spangenberger
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2015-10-24 00:00:00.000000000 Z
12
+ date: 2015-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: msgpack