rb2exe 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/bin/decompress +2 -5
- data/bin/installer +15 -4
- data/bin/rb2exe +1 -1
- 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: d7a9d71a306f8b1c7b42a3b5d7b0ea31d8bdab38
|
4
|
+
data.tar.gz: c33ff90d26cea31552a1b95903ca7d63194e934f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67998388e1fab90974acbc9b4937db92af86a4ae12c3d8a1bb930bb4e07220cf95d5c2e4a897ef05cb9910ffe54b7939c90d4e5a860a436e8cc8efdcd7c355eb
|
7
|
+
data.tar.gz: 260e467f69324ee3ab7a63139af8514dd77b99dc15b27c6124edd10876db0338d7b4af522ba9303e2bbd5f50bc4a8111e4ff35ccf91024303edf2e55e1393086
|
data/README.md
CHANGED
@@ -15,6 +15,7 @@ rb2exe RUBY_SCRIPT [options]
|
|
15
15
|
-q, --quiet Do not run verbosely
|
16
16
|
-a, --add=FOLDER Add an entire folder (eg. "--add=.")
|
17
17
|
-o, --output=OUTPUT Output executable filename
|
18
|
+
-d --daemon Runs the app as a background task
|
18
19
|
-r, --rails Rails support
|
19
20
|
-t, --target=[osx|l32|l64|win] Target platform (binary)
|
20
21
|
-h, --help Help
|
@@ -98,7 +99,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/lourei
|
|
98
99
|
|
99
100
|
|
100
101
|
# Changelog
|
101
|
-
* 0.2.
|
102
|
+
* 0.2.3: add "--daemon" option;
|
102
103
|
* 0.2.1: add missing "bundle" requirement;
|
103
104
|
* 0.2.0: adding support to handle ARGV being passed to the ruby script (thanks @dabooze);
|
104
105
|
|
data/bin/decompress
CHANGED
@@ -9,14 +9,11 @@ tail -n+$ARCHIVE $0 | tar -xz -C $TMPDIR
|
|
9
9
|
CDIR=`pwd`
|
10
10
|
cd $TMPDIR
|
11
11
|
if __DAEMON__ ; then
|
12
|
-
./installer __RUBY_COMMAND__ __IS_RAILS__ &
|
12
|
+
./installer $CDIR $TMPDIR __RUBY_COMMAND__ __IS_RAILS__ &
|
13
13
|
else
|
14
|
-
./installer __RUBY_COMMAND__ __IS_RAILS__
|
14
|
+
./installer $CDIR $TMPDIR __RUBY_COMMAND__ __IS_RAILS__
|
15
15
|
fi
|
16
16
|
|
17
|
-
cd $CDIR
|
18
|
-
rm -rf $TMPDIR
|
19
|
-
|
20
17
|
exit 0
|
21
18
|
|
22
19
|
__ARCHIVE_BELOW__
|
data/bin/installer
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
#!/bin/bash
|
2
2
|
set -e
|
3
3
|
|
4
|
+
#####
|
5
|
+
# $1: $CDIR
|
6
|
+
# $2: $TMPDIR
|
7
|
+
# $3: __RUBY_COMMAND__
|
8
|
+
# $4: __IS_RAILS__
|
9
|
+
#####
|
10
|
+
|
4
11
|
# Figure out where this script is located.
|
5
12
|
SELFDIR="`dirname \"$0\"`"
|
6
13
|
SELFDIR="`cd \"$SELFDIR\" && pwd`"
|
@@ -14,12 +21,16 @@ then
|
|
14
21
|
unset BUNDLE_IGNORE_CONFIG
|
15
22
|
|
16
23
|
# Run the actual app using the bundled Ruby interpreter, with Bundler activated.
|
17
|
-
if $
|
24
|
+
if $4; then
|
18
25
|
export RAILS_ENV=production
|
19
|
-
|
26
|
+
$SELFDIR/lib/ruby/bin/ruby -rbundler/setup "bin/rails" server
|
20
27
|
else
|
21
|
-
|
28
|
+
$SELFDIR/lib/ruby/bin/ruby -rbundler/setup "$3" $ARGV
|
22
29
|
fi
|
23
30
|
else
|
24
|
-
|
31
|
+
$SELFDIR/lib/ruby/bin/ruby "$3"
|
25
32
|
fi
|
33
|
+
|
34
|
+
# Remove tmp directory
|
35
|
+
cd $CDIR
|
36
|
+
rm -rf $TMPDIR
|
data/bin/rb2exe
CHANGED
@@ -30,7 +30,7 @@ opt_parser = OptionParser.new do |opts|
|
|
30
30
|
opts.on("-a", "--add=FOLDER", "Add an entire folder (eg. \".\")") { |v| options[:add] = v }
|
31
31
|
opts.on("-o", "--output=OUTPUT", "Output executable filename") { |v| options[:output] = v }
|
32
32
|
opts.on("-r", "--rails", "Rails support") { |v| options[:rails] = v }
|
33
|
-
opts.on("-d", "--daemon", "Runs app as a background task") { |v| options[:daemon] = v }
|
33
|
+
opts.on("-d", "--daemon", "Runs the app as a background task") { |v| options[:daemon] = v }
|
34
34
|
opts.on("-t", "--target=[osx|l32|l64|win]", "Target platform (binary)") { |v| options[:target] = v }
|
35
35
|
opts.on("-h","--help", "Help") { puts opt_parser }
|
36
36
|
end
|
data/lib/rb2exe/version.rb
CHANGED