tigris/open-uri-cached — Issue #5: open-uri-cached uses YAML without requiring it
Author: cabo
Created: 2012-01-06 14:39:10+00:00
State: open

#!/opt/local/bin/ruby1.9
require 'open-uri/cached'

a = open("http://www.google.com")
p a

__END__

/opt/local/lib/ruby1.9/gems/1.9.1/gems/open-uri-cached-0.0.4/lib/open-uri/cached.rb:88:in `block in set': uninitialized constant Class::YAML (NameError)
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/open-uri-cached-0.0.4/lib/open-uri/cached.rb:88:in `open'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/open-uri-cached-0.0.4/lib/open-uri/cached.rb:88:in `set'
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/open-uri-cached-0.0.4/lib/open-uri/cached.rb:9:in `open_uri'
from /opt/local/lib/ruby1.9/1.9.1/open-uri.rb:677:in `open'
from /opt/local/lib/ruby1.9/1.9.1/open-uri.rb:33:in `open'
from openuri-cached-testcase.rb:4:in `

'