ext/mkrf_conf.rb in puppet-resource_api-0.1.0 vs ext/mkrf_conf.rb in puppet-resource_api-0.2.0
- old
+ new
@@ -9,10 +9,10 @@
inst = Gem::DependencyInstaller.new
begin
if RbConfig::CONFIG['host_os'] =~ %r{mswin|msys|mingw32}i
inst.install 'childprocess', '~> 0.7'
end
-rescue # rubocop:disable Lint/RescueWithoutErrorClass
+rescue StandardError
exit(1)
end
f = File.open(File.join(File.dirname(__FILE__), 'Rakefile'), 'w') # create dummy rakefile to indicate success
f.write("task :default\n")