rb2exe 0.1.29 → 0.1.38
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +12 -27
- data/lib/rb2exe/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62dd1e7fde3babb4f6ba0ed3bed081725055c03e
|
4
|
+
data.tar.gz: 5333332ce4bcba162c5dabfc65651146d0ac71dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaf3344a11bb3c68c9bdef15dd6cdd2dd9c572a77eb7c7ef65e08dc65e116ac956302866d6237f287cc68f67381e4f42a2fff1340733a00d68b3d14be05c7588
|
7
|
+
data.tar.gz: 6d4720d8f81e0a26fae51b2e15a2d447f6c9cd9592847c3a01408936eddfa6d25ec2ca85db0b4b7c8ddb48e3f22f4a16115f717f7de61fb7ac7a952b93501b2d
|
data/Rakefile
CHANGED
@@ -2,33 +2,18 @@ require "bundler/gem_tasks"
|
|
2
2
|
|
3
3
|
module Bundler
|
4
4
|
class GemHelper
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
# raise "Couldn't install gem, run `gem install #{built_gem_path}' for more detailed output" unless out[/Successfully installed/]
|
18
|
-
# Bundler.ui.confirm "#{name} (#{version}) installed."
|
19
|
-
# end
|
20
|
-
#
|
21
|
-
# def install_tasks
|
22
|
-
# end
|
23
|
-
def install_tasks(opts = {})
|
24
|
-
Bundler.ui.error 'bp'
|
25
|
-
raise 'bp'
|
26
|
-
new(opts[:dir], opts[:name]).install
|
5
|
+
def install_gem(built_gem_path = nil, local = false)
|
6
|
+
path = File.expand_path(File.dirname(__FILE__))
|
7
|
+
path = path.gsub('/', '\/').strip
|
8
|
+
`sed -i -e "s/__RB2EXE_GEM_PATH__/#{path}/g" #{Dir.pwd}/bin/rb2exe`
|
9
|
+
`ln -s #{Dir.pwd}/bin/rb2exe #{Dir.pwd}/../../../bin/rb2exe`
|
10
|
+
`ln -s #{Dir.pwd}/bin/rb2exe /usr/local/bin/`
|
11
|
+
# `sudo ln -s #{Dir.pwd}/bin/rb2exe /usr/local/bin/`
|
12
|
+
|
13
|
+
built_gem_path ||= build_gem
|
14
|
+
out, _ = sh_with_code("gem install '#{built_gem_path}'#{" --local" if local}")
|
15
|
+
raise "Couldn't install gem, run `gem install #{built_gem_path}' for more detailed output" unless out[/Successfully installed/]
|
16
|
+
Bundler.ui.confirm "#{name} (#{version}) installed."
|
27
17
|
end
|
28
18
|
end
|
29
19
|
end
|
30
|
-
|
31
|
-
# task :default => :spec do
|
32
|
-
# Bundler.ui.error 'bp'
|
33
|
-
# raise 'bp'
|
34
|
-
# end
|
data/lib/rb2exe/version.rb
CHANGED