about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-01-02 05:51:46 +0000
committerEric Wong <e@80x24.org>2016-01-02 05:51:46 +0000
commitc601778792f6ee1ff9116d763030034c0f642dd5 (patch)
tree238a5429192aeb6843808166929f41680cde48a3
parent7fe23510d3326d273cabac84c52809dacca73eca (diff)
downloaddtas-c601778792f6ee1ff9116d763030034c0f642dd5.tar.gz
It's easier to leave numerics unquoted in YAML; so automatically
stringify comments comming from the YAML file.
-rw-r--r--lib/dtas/source/splitfx.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/dtas/source/splitfx.rb b/lib/dtas/source/splitfx.rb
index fad165f..3d416c3 100644
--- a/lib/dtas/source/splitfx.rb
+++ b/lib/dtas/source/splitfx.rb
@@ -55,7 +55,10 @@ class DTAS::Source::SplitFX < DTAS::Source::Sox # :nodoc:
   end
 
   def __load_comments
-    @ymlhash["comments"] || @sox.__load_comments
+    if c = @ymlhash["comments"]
+      return c.each { |k,v| c[k] = v.to_s }
+    end
+    @sox.__load_comments
   end
 
   def command_string