tubes 0.1.13 → 0.1.14
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/lib/tubes.rb +13 -1
- metadata +2 -2
data/lib/tubes.rb
CHANGED
@@ -185,7 +185,7 @@ class Tube
|
|
185
185
|
end
|
186
186
|
end
|
187
187
|
else
|
188
|
-
segment.send :run, *args
|
188
|
+
segment.send :run, *args, options
|
189
189
|
end
|
190
190
|
end
|
191
191
|
|
@@ -265,4 +265,16 @@ class Tube
|
|
265
265
|
|
266
266
|
@ended_at = Time.now
|
267
267
|
end
|
268
|
+
|
269
|
+
def set_stats(values)
|
270
|
+
@thread_lock.synchronize do
|
271
|
+
@stats[@name] = values
|
272
|
+
end
|
273
|
+
end
|
274
|
+
|
275
|
+
def get_stats
|
276
|
+
@thread_lock.synchronize do
|
277
|
+
@stats[@name]
|
278
|
+
end
|
279
|
+
end
|
268
280
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tubes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.14
|
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: 2012-11-
|
12
|
+
date: 2012-11-13 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A simple way to build a pipeline of tasks. These tasks can be configured
|
15
15
|
to run in serial, parallel or any combination thereof.
|