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/tfx.sample.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/tfx.sample.yml') 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