ext/mkrf_conf.rb in localjob-0.0.2 vs ext/mkrf_conf.rb in localjob-0.1.0
- old
+ new
@@ -1,17 +1,4 @@
-require 'rubygems'
-require 'rubygems/command.rb'
-require 'rubygems/dependency_installer.rb'
-begin
- Gem::Command.build_args = ARGV
-rescue NoMethodError
-end
+require 'rubygems/dependency_installer'
-inst = Gem::DependencyInstaller.new
-
-begin
- if RUBY_PLATFORM =~ /linux/
- inst.install "posix-mqueue", "0.0.7"
- end
-rescue
- exit(1)
-end
+gem = Gem::DependencyInstaller.new
+gem.install "posix-mqueue", "0.0.7" if RUBY_PLATFORM =~ /linux/