From ead7725fa693c7dd832b22f77b32847c81a70d72 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 25 Jan 2015 10:51:50 +0000 Subject: use omap (ordered map) for env hashes While the Ruby Hash class is ordered in 1.9+, the YAML specifications do not specify hashes as ordered by default. Thus we must explicitly declare ordering via !omap for interopability with non-Ruby tools. This makes the YAML output of dtas-sourcedit and dtas-sinkedit slightly more verbose Users of dtas-splitfx are also encouraged to declare !omap when creating their YAML files for interoperability. Ordering env is important because any implementation of built-in variable expansion is dependent on it. --- examples/splitfx.sample.yml | 2 +- examples/tfx.sample.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/splitfx.sample.yml b/examples/splitfx.sample.yml index d7ee06b..bbd224b 100644 --- a/examples/splitfx.sample.yml +++ b/examples/splitfx.sample.yml @@ -11,7 +11,7 @@ comments: # the sox command for dtas-player playback, there is no need to # specify this as it is the default: # command: exec sox "$INFILE" $SOXFMT - $TRIMFX $RGFX $FX -env: +env: !omap PATH: $PATH # these effects may be used in any command in this file, including targets SOX_OPTS: $SOX_OPTS -R diff --git a/examples/tfx.sample.yml b/examples/tfx.sample.yml index 2cbfbbc..205a0a1 100644 --- a/examples/tfx.sample.yml +++ b/examples/tfx.sample.yml @@ -4,7 +4,7 @@ # test_trimfx.rb relies on this. --- infile: foo.flac -env: +env: !omap PATH: $PATH SOX_OPTS: $SOX_OPTS -R I2: second.flac -- cgit v1.2.3-24-ge0c7