no such file to load -- ruby-debug (LoadError)
Closed this issue · 6 comments
Then stop and let me debug # capybara-firebug-0.0.7/lib/capybara/firebug.rb:43 no such file to load -- ruby-debug (LoadError)
I think specifying dependencies in .gemspec will fix this
It depends on the ruby-debug gem, this should be specified in the gemspec as dependency.
BTW ruby-debug gem seems to me not compatible with Ruby 1.9.2, so I tried use a simple "sleep step" instead of the provided "stop and let me debug" step.
Given /^I sleep (\d+) seconds$/ do |sec|
sleep sec.to_i
end
Use ruby-debug19 for 1.9.X
Awesome, works
I would write a patch but I don't know how to specify a different dependecy in the gemspec depending on the Ruby version!
Use RUBY_VERSION constant
Unfortunately there is no clean way to specify a dependency in the gemspec that varies depending on the Ruby version. So you will need to add it to your Gemspec. I've added documentation to this effect to the README.