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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c2fab1687f90a2b495f2ca153cae25500376235
4
- data.tar.gz: 0b7790f2bc3a79d74fee7f994cc22fd5755c77ac
3
+ metadata.gz: d7a9d71a306f8b1c7b42a3b5d7b0ea31d8bdab38
4
+ data.tar.gz: c33ff90d26cea31552a1b95903ca7d63194e934f
5
5
  SHA512:
6
- metadata.gz: 7ac8b5d4307d0f952e634d6657626b974406e74d9b17189628470f99325024ea739ae177845c8ae269478e5c9e0059b04142591361fb910daed05a4e36809621
7
- data.tar.gz: dfbf64df9dbd954040831ed0d2b4433d4a9958e39bb42dadc2b5e5c8a239b2606d238da130355da29f15a2b91970075a86562c5e783e7d8394064b24bf9f3766
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.2: add "--daemon" option;
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
 
@@ -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__
@@ -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 $2; then
24
+ if $4; then
18
25
  export RAILS_ENV=production
19
- exec "$SELFDIR/lib/ruby/bin/ruby" -rbundler/setup "bin/rails" server
26
+ $SELFDIR/lib/ruby/bin/ruby -rbundler/setup "bin/rails" server
20
27
  else
21
- exec "$SELFDIR/lib/ruby/bin/ruby" -rbundler/setup "$1" $ARGV
28
+ $SELFDIR/lib/ruby/bin/ruby -rbundler/setup "$3" $ARGV
22
29
  fi
23
30
  else
24
- exec "$SELFDIR/lib/ruby/bin/ruby" "$1"
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
@@ -1,3 +1,3 @@
1
1
  module Rb2exe
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rb2exe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Loureiro