rb2exe 0.2.3 → 0.2.4
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 +2 -0
- data/bin/rb2exe +9 -1
- data/lib/rb2exe/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82ba7601da46864d7aecdcc16e205f408510b7be
|
4
|
+
data.tar.gz: 8dd5711e2dc0599ea24f49f1750207553ef44be8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02163c8940ab6f0ae0bea1e77c2dc929aabd535622cfcb07951a1187c16fbbe89e77280e6f3ca2916336cb0bbd9562aa1a3c6c3de79f28060fbddf066d952f4c
|
7
|
+
data.tar.gz: 373d0f4004a14ad2b926d4ad582bc0258b7ae5cabaf0fb2516cf5db738efe46345e52c392fd8a9753e6da42d58a9e215f497eca60a7af2b9b9504961810352cf
|
data/README.md
CHANGED
@@ -14,6 +14,7 @@ gem install rb2exe
|
|
14
14
|
rb2exe RUBY_SCRIPT [options]
|
15
15
|
-q, --quiet Do not run verbosely
|
16
16
|
-a, --add=FOLDER Add an entire folder (eg. "--add=.")
|
17
|
+
-i --ignore-folder=FOLDER Do not add a folder (default=".git")
|
17
18
|
-o, --output=OUTPUT Output executable filename
|
18
19
|
-d --daemon Runs the app as a background task
|
19
20
|
-r, --rails Rails support
|
@@ -99,6 +100,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/lourei
|
|
99
100
|
|
100
101
|
|
101
102
|
# Changelog
|
103
|
+
* 0.2.4: Ignore '.git' folder by default. Add "--ignore-folder" option;
|
102
104
|
* 0.2.3: add "--daemon" option;
|
103
105
|
* 0.2.1: add missing "bundle" requirement;
|
104
106
|
* 0.2.0: adding support to handle ARGV being passed to the ruby script (thanks @dabooze);
|
data/bin/rb2exe
CHANGED
@@ -17,6 +17,7 @@ end
|
|
17
17
|
options = {
|
18
18
|
quiet: false,
|
19
19
|
add: nil,
|
20
|
+
ignore_folder: '.git',
|
20
21
|
output: nil,
|
21
22
|
rails: false,
|
22
23
|
daemon: false,
|
@@ -28,6 +29,7 @@ opt_parser = OptionParser.new do |opts|
|
|
28
29
|
|
29
30
|
opts.on("-q", "--quiet", "Do not run verbosely") { |v| options[:quiet] = v }
|
30
31
|
opts.on("-a", "--add=FOLDER", "Add an entire folder (eg. \".\")") { |v| options[:add] = v }
|
32
|
+
opts.on("-i", "--ignore-folder=FOLDER", "Do not add a folder") { |v| options[:ignore_folder] = v }
|
31
33
|
opts.on("-o", "--output=OUTPUT", "Output executable filename") { |v| options[:output] = v }
|
32
34
|
opts.on("-r", "--rails", "Rails support") { |v| options[:rails] = v }
|
33
35
|
opts.on("-d", "--daemon", "Runs the app as a background task") { |v| options[:daemon] = v }
|
@@ -95,7 +97,7 @@ Dir.mktmpdir do |tmp_dir|
|
|
95
97
|
else
|
96
98
|
FileUtils.cp_r(app_dir, "#{tmp_dir}/payload/lib/app")
|
97
99
|
end
|
98
|
-
FileUtils.cp_r("#{gem_dir}/bin/installer", "#{tmp_dir}/payload/") # Create a wrapper script (name
|
100
|
+
FileUtils.cp_r("#{gem_dir}/bin/installer", "#{tmp_dir}/payload/") # Create a wrapper script (name is "installer")
|
99
101
|
|
100
102
|
# Gemfile support
|
101
103
|
if File.exists?("#{tmp_dir}/payload/lib/app/Gemfile")
|
@@ -118,6 +120,12 @@ Dir.mktmpdir do |tmp_dir|
|
|
118
120
|
FileUtils.cp("#{gem_dir}/lib/bundler-config", "#{tmp_dir}/payload/lib/vendor/.bundle/config")
|
119
121
|
end
|
120
122
|
|
123
|
+
# ignore folder: remove folder (usually .git)
|
124
|
+
if options[:ignore_folder]
|
125
|
+
puts "Ignoring #{options[:ignore_folder]}" unless options[:quiet]
|
126
|
+
FileUtils.rm_rf("#{tmp_dir}/payload/lib/app/#{options[:ignore_folder]}")
|
127
|
+
end
|
128
|
+
|
121
129
|
FileUtils.cp_r("#{gem_dir}/bin/build", "#{tmp_dir}/") # Package builder
|
122
130
|
FileUtils.cp_r("#{gem_dir}/bin/decompress", "#{tmp_dir}/")
|
123
131
|
result = `#{tmp_dir}/build #{tmp_dir} #{main_app_path} #{exe_fn} #{options[:quiet]} #{options[:rails]} #{options[:daemon]}`
|
data/lib/rb2exe/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rb2exe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Loureiro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|