tubes 0.1.17 → 0.1.18

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.
Files changed (2) hide show
  1. data/lib/tubes.rb +4 -4
  2. metadata +3 -3
data/lib/tubes.rb CHANGED
@@ -1,4 +1,4 @@
1
- require 'json'
1
+ require 'yaml'
2
2
  require 'monitor'
3
3
 
4
4
  class Tube
@@ -81,7 +81,7 @@ class Tube
81
81
  output_file = segment_cache segment
82
82
  if output_file && File.exists?(output_file)
83
83
  self.puts "Skipping: #{@order}-#{@invocations}-#{segment.name}"
84
- output = JSON.load(File.read(output_file))["data"]
84
+ output = YAML.load(File.read(output_file))["data"]
85
85
 
86
86
  if serial?
87
87
  @output = output
@@ -215,7 +215,7 @@ class Tube
215
215
 
216
216
  if output_file
217
217
  File.open(output_file, "w") do |f|
218
- f.write({:data => output}.to_json)
218
+ f.write({:data => output}.to_yaml)
219
219
  end
220
220
  end
221
221
 
@@ -230,7 +230,7 @@ class Tube
230
230
 
231
231
 
232
232
  def segment_cache(segment)
233
- File.join(@dir, "#{description(segment.class)}.json") if segment.dir
233
+ File.join(@dir, "#{description(segment.class)}.yaml") if segment.dir
234
234
  end
235
235
 
236
236
 
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.17
4
+ version: 0.1.18
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-12-04 00:00:00.000000000 Z
12
+ date: 2012-12-12 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.
@@ -39,7 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
39
39
  version: '0'
40
40
  requirements: []
41
41
  rubyforge_project:
42
- rubygems_version: 1.8.24
42
+ rubygems_version: 1.8.17
43
43
  signing_key:
44
44
  specification_version: 3
45
45
  summary: Tubes