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 +4 -4
- data/README.md +19 -1
- data/bin/installer +3 -2
- 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: f5f59bb0f8fd023da658424046900dd01764d678
|
4
|
+
data.tar.gz: 8a4b810ade4be8f202bfb45530b631f1b26f82be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 "$
|
17
|
+
exec "$SELFDIR/lib/ruby/bin/ruby" -rbundler/setup "$1"
|
17
18
|
else
|
18
|
-
exec "$SELFDIR/lib/ruby/bin/ruby" "$
|
19
|
+
exec "$SELFDIR/lib/ruby/bin/ruby" "$1"
|
19
20
|
fi
|
data/lib/rb2exe/version.rb
CHANGED