Closed neerajnagi closed 10 years ago
I can't reproduce this. I've tried on both Ruby 2.0 and Ruby 2.1. Perhaps your version of libyaml is too old?
I am getting this same error. I reverted back to ruby 1.9.3 and still got the same issue.
ok, I'm finally able to reproduce this. Looking into it.
Ok, I found the problem.
According to this Github issue discussion Psych#safe_load
was introduced in Psych version 2.0.0. But it doesn't actually show up until Psych version 2.0.1.
I'm fixing this by updating sippy_cup's requirement to use Psych 2.0.1 as a minimum. I'll publish a fixed gem shortly.
Fixed in version 0.4.0
[root@ip-172-31-22-46 ~]# sippy_cup -r test.yml /usr/local/rvm/gems/ruby-2.0.0-p247/gems/sippy_cup-0.3.0/lib/sippy_cup/scenario.rb:47:in'
from_manifest': undefined method
safe_load' for Psych:Module (NoMethodError) from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/sippy_cup-0.3.0/bin/sippy_cup:62:in<top (required)>' from /usr/local/rvm/gems/ruby-2.0.0-p247/bin/sippy_cup:23:in
load' from /usr/local/rvm/gems/ruby-2.0.0-p247/bin/sippy_cup:23:in<main>' from /usr/local/rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in
eval' from /usr/local/rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper:14:in `