Sha256: 97bc691deba104b82a13c06b7316c24759f0fa4bc0bf0f09d0cc1f184c2153d5
Contents?: true
Size: 1003 Bytes
Versions: 1
Compression:
Stored size: 1003 Bytes
Contents
require "bundler/gem_tasks" module Bundler class GemHelper def install_gem(built_gem_path = nil, local = false) path = File.expand_path(File.dirname(__FILE__)) path = path.gsub('/', '\/').strip `sed -i -e "s/__RB2EXE_GEM_PATH__/#{path}/g" #{Dir.pwd}/bin/rb2exe` `ln -s #{Dir.pwd}/bin/rb2exe #{Dir.pwd}/../../../bin/rb2exe` `ln -s #{Dir.pwd}/bin/rb2exe /usr/local/bin/` # `sudo ln -s #{Dir.pwd}/bin/rb2exe /usr/local/bin/` built_gem_path ||= build_gem out, _ = sh_with_code("gem install '#{built_gem_path}'#{" --local" if local}") raise "Couldn't install gem, run `gem install #{built_gem_path}' for more detailed output" unless out[/Successfully installed/] Bundler.ui.confirm "#{name} (#{version}) installed." end end end task :default => :spec do `sed -i -e "s/__RB2EXE_GEM_PATH__/HEHEHE/g" #{Dir.pwd}/bin/rb2exe` end Gem.post_install do |installer| `sed -i -e "s/__RB2EXE_GEM_PATH__/HEHEHE/g" #{Dir.pwd}/bin/rb2exe` end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rb2exe-0.1.40 | Rakefile |