lib/source_position.rb in source_position-0.1.0 vs lib/source_position.rb in source_position-0.2.0
- old
+ new
@@ -1,7 +1,12 @@
if RUBY_VERSION < '1.9'
unless defined?(RUBY_ENGINE) && RUBY_ENGINE =~ /rbx/
- require 'ruby18_source_location'
+ begin
+ require 'ruby18_source_location'
+ rescue LoadError
+ raise 'Could not load the ruby18_source_location gem.
+Install it with `gem install ruby18_source_location`'
+ end
end
end
require "source_position/version"
require "source_position/rbx_source_location"