ext/mkrf_conf.rb in trace_tree-0.2.17 vs ext/mkrf_conf.rb in trace_tree-0.2.18
- old
+ new
@@ -9,17 +9,20 @@
#of Ruby the user has installed
installer = Gem::DependencyInstaller.new
begin
if RUBY_VERSION < "2.2.2"
- installer.install "activesupport", "< 5.0"
+ installer.install "activesupport", "< 5.0.0"
+ elsif RUBY_VERSION < "2.5.0"
+ installer.install "activesupport", "< 6.0.0"
else
installer.install "activesupport"
end
-rescue
- #Exit with a non-zero value to let rubygems something went wrong
- exit(1)
+rescue => e
+ puts e.message, e.backtrace
+ #Exit with a non-zero value to let rubygems something went wrong
+ exit(1)
end
#If this was C, rubygems would attempt to run make
#Since this is Ruby, rubygems will attempt to run rake
#If it doesn't find and successfully run a rakefile, it errors out