Skip to content

Commit

Permalink
[Truffle] Shim yaml as not implemented.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Apr 23, 2015
1 parent 4d464dc commit aef1340
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions lib/ruby/truffle/shims/yaml.rb
@@ -0,0 +1,29 @@
# Copyright (c) 2015 Oracle and/or its affiliates. All rights reserved. This
# code is released under a tri EPL/GPL/LGPL license. You can use it,
# redistribute it and/or modify it under the terms of the:
#
# Eclipse Public License version 1.0
# GNU General Public License version 2
# GNU Lesser General Public License version 2.1

module YAML

def load(string)
raise "YAML.load not implemented"
end
module_function :load

def dump(object)
raise "YAML.dump not implemented"
end
module_function :dump

end

class Object

def to_yaml
raise "Object#to_yaml not implemented"
end

end
1 change: 1 addition & 0 deletions spec/truffle/truffle.mspec
Expand Up @@ -104,6 +104,7 @@ class MSpecScript
"spec/ruby/library/time",
"spec/ruby/library/tmpdir",
"spec/ruby/library/uri",
"spec/ruby/library/yaml",

# Load issues with 'delegate'.
"^spec/ruby/library/delegate/delegate_class/instance_method_spec.rb",
Expand Down

0 comments on commit aef1340

Please sign in to comment.