rb2exe 0.1.51 → 0.1.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54bbffb3c98e55997b29d93a442bf722d125af4b
4
- data.tar.gz: fbe710220958776d73d59e2a040f23394c215a03
3
+ metadata.gz: f5f59bb0f8fd023da658424046900dd01764d678
4
+ data.tar.gz: 8a4b810ade4be8f202bfb45530b631f1b26f82be
5
5
  SHA512:
6
- metadata.gz: 2bf5471b66c2d1ca171ae169d4f462d4a170fd2c6acfc750d44785ace3c7a0fa34f9b775bc6170f42c18271d540b0fe55d56b858e5db0df1902c272e66f17e3c
7
- data.tar.gz: 111ca024adfa2bcd37d6dc802cfa4f3f0238fee597962f47b56ebe10fdaefbc9934850afda8b9ca10a34573d4a9ceb3d15924e2a1b471d30509bcd19b04aa53b
6
+ metadata.gz: 95e52bcb1905b2f15ae861b11b829a7d20e1ffcfbbd3ae631de055d2d9d9f63306a322d52609e7f344c55535f005c3e9fce2348a987be7da1e0a2a8a1a729737
7
+ data.tar.gz: fe020fdb4e3b934a1f81bc8f91cb5d7edc56d8d84a52db256d998bf22cb648bc82292854852d3295fd52b5c0a68f245faa9a2142a693653951f183bb1ba68ea7
data/README.md CHANGED
@@ -18,7 +18,7 @@ rb2exe RUBY_SCRIPT [options]
18
18
  -h, --help Help
19
19
  ```
20
20
 
21
- ## Example:
21
+ ## Example
22
22
  ```bash
23
23
  echo "puts 'Hello world'" > test.rb
24
24
 
@@ -27,6 +27,19 @@ rb2exe test.rb
27
27
  ```
28
28
 
29
29
 
30
+ ## Example II - Multi source project
31
+ ```bash
32
+ mkdir test
33
+ cd test
34
+ echo "STR = 'Hello world'" > a.rb
35
+ echo "load 'a.rb'" > main.rb
36
+ echo "puts STR" >> main.rb
37
+
38
+ rb2exe main.rb --add .
39
+ ./main
40
+ ```
41
+
42
+
30
43
  ## Security
31
44
 
32
45
  rb2exe DOESN'T protects your source code.
@@ -37,10 +50,12 @@ You can see the list of the added source files when you run rb2exe.
37
50
 
38
51
  rb2exe just packages your source files (plus a stand-alone ruby) in an auto-extract zip file. It doesn't protects your code in any way.
39
52
 
53
+
40
54
  ## Contributing
41
55
 
42
56
  Bug reports and pull requests are welcome on GitHub at https://github.com/loureirorg/rb2exe.
43
57
 
58
+
44
59
  ## TODO
45
60
 
46
61
  * Allow ruby versions other than 2.2.2;
@@ -48,3 +63,6 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/lourei
48
63
  * Gemfile support;
49
64
  * Windows / OSX executable output;
50
65
  * Testing suite;
66
+
67
+ If you need the above features, please take a look on my article, where I explain how to achieve them manually:
68
+ http://www.learnwithdaniel.com/2016/08/ruby-to-portable-exe-app/
data/bin/installer CHANGED
@@ -4,6 +4,7 @@ set -e
4
4
  # Figure out where this script is located.
5
5
  SELFDIR="`dirname \"$0\"`"
6
6
  SELFDIR="`cd \"$SELFDIR\" && pwd`"
7
+ cd $SELFDIR/lib/app/
7
8
 
8
9
  ## GEMFILE
9
10
  if [ -f "$SELFDIR/lib/vendor/Gemfile" ]
@@ -13,7 +14,7 @@ then
13
14
  unset BUNDLE_IGNORE_CONFIG
14
15
 
15
16
  # Run the actual app using the bundled Ruby interpreter, with Bundler activated.
16
- exec "$SELFDIR/lib/ruby/bin/ruby" -rbundler/setup "$SELFDIR/lib/app/$1"
17
+ exec "$SELFDIR/lib/ruby/bin/ruby" -rbundler/setup "$1"
17
18
  else
18
- exec "$SELFDIR/lib/ruby/bin/ruby" "$SELFDIR/lib/app/$1"
19
+ exec "$SELFDIR/lib/ruby/bin/ruby" "$1"
19
20
  fi
@@ -1,3 +1,3 @@
1
1
  module Rb2exe
2
- VERSION = "0.1.51"
2
+ VERSION = "0.1.52"
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.1.51
4
+ version: 0.1.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Loureiro