extconf.rb in saber-1.2.2 vs extconf.rb in saber-1.2.3

- old
+ new

@@ -1,11 +1,20 @@ #!/usr/bin/env ruby require "fileutils" require "mkmf" bindir = File.expand_path("../bin", __FILE__) -gem_home = Process.pid == 0 ? Gem.dir : Gem.user_dir + +gem_home = if Gem.dir.match(%~/(\.rvm|\.rbenv)/~) + Gem.dir + elsif Process.pid == 0 + Gem.dir + else + Gem.user_dir + end dist_bindir = ENV["GEM_BINDIR"] || Gem.bindir(gem_home) + +p Gem.dir, Gem.user_dir FileUtils.install File.join(bindir, "saber-drb_add"), dist_bindir FileUtils.install File.join(bindir, "saber.bib"), dist_bindir FileUtils.install File.join(bindir, "saber.bb"), dist_bindir FileUtils.install File.join(bindir, "saber.stp"), dist_bindir