about summary refs log tree commit homepage
path: root/examples
diff options
authorEric Wong <e@80x24.org>2015-01-25 10:51:50 +0000
committerEric Wong <e@80x24.org>2015-01-25 10:59:51 +0000
commitead7725fa693c7dd832b22f77b32847c81a70d72 (patch)
tree44a662deec10ae6af49ea0b44ebf2d2f8793c562 /examples
parentef6dc55d9c40aaac9d1fbe5438dbaedc2ddad5e0 (diff)
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.
Diffstat (limited to 'examples')
2 files changed, 2 insertions, 2 deletions
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: !omap
   # these effects may be used in any command in this file, including targets
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: !omap
   I2: second.flac