summaryrefslogtreecommitdiff
path: root/ext/psych/lib/psych.rb
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-18 04:38:37 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-18 04:38:37 +0000
commitdc22968239d57dddbfb5ef33ff07d013e7518611 (patch)
tree2da9454b6890037a3ca05abbb7e297a12417d05d /ext/psych/lib/psych.rb
parentd95cb162340c4b769397569b1e0760d226c054f6 (diff)
* ext/psych/lib/psych.rb: define a new BadAlias error class.
* ext/psych/lib/psych/visitors/to_ruby.rb: raise an exception when deserializing an alias that does not exist. * test/psych/test_merge_keys.rb: corresponding test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/psych/lib/psych.rb')
-rw-r--r--ext/psych/lib/psych.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/psych/lib/psych.rb b/ext/psych/lib/psych.rb
index 31d73c1f03..8a4d63a49c 100644
--- a/ext/psych/lib/psych.rb
+++ b/ext/psych/lib/psych.rb
@@ -98,6 +98,9 @@ module Psych
class Exception < RuntimeError
end
+ class BadAlias < Exception
+ end
+
autoload :Stream, 'psych/stream'
###