about summary refs log tree commit homepage
path: root/lib/dtas.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dtas.rb')
-rw-r--r--lib/dtas.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/dtas.rb b/lib/dtas.rb
index 477a176..cb7c33d 100644
--- a/lib/dtas.rb
+++ b/lib/dtas.rb
@@ -25,6 +25,12 @@ module DTAS
       Fiddle.dlopen(nil)
     end
   end
+
+  # prevent breakage in Psych 4.x; we're a shell and designed to execute code
+  def self.yaml_load(buf)
+    require 'yaml'
+    YAML.respond_to?(:unsafe_load) ? YAML.unsafe_load(buf) : YAML.load(buf)
+  end
   # :startdoc:
 end