From c601778792f6ee1ff9116d763030034c0f642dd5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 2 Jan 2016 05:51:46 +0000 Subject: source/splitfx: stringify comments It's easier to leave numerics unquoted in YAML; so automatically stringify comments comming from the YAML file. --- lib/dtas/source/splitfx.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3-24-ge0c7