rb2exe 0.2.4 → 0.2.5

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: 82ba7601da46864d7aecdcc16e205f408510b7be
4
- data.tar.gz: 8dd5711e2dc0599ea24f49f1750207553ef44be8
3
+ metadata.gz: cddf5019c21be4fa5f9b04049a2cbbb16e38dc0a
4
+ data.tar.gz: ccb491736cfbc093d51766aa6932f8c6d9cd3057
5
5
  SHA512:
6
- metadata.gz: 02163c8940ab6f0ae0bea1e77c2dc929aabd535622cfcb07951a1187c16fbbe89e77280e6f3ca2916336cb0bbd9562aa1a3c6c3de79f28060fbddf066d952f4c
7
- data.tar.gz: 373d0f4004a14ad2b926d4ad582bc0258b7ae5cabaf0fb2516cf5db738efe46345e52c392fd8a9753e6da42d58a9e215f497eca60a7af2b9b9504961810352cf
6
+ metadata.gz: b5f04bf9f540438a6db46571f45d8b191a72e35a5ab616be76a6b0ec970df02ba73858441f2385bb09de8b63794e49b9d6935e3383914760eb4a27e192fb7c83
7
+ data.tar.gz: f3608175f54a51818a26f89fe0c7ae1774ba70867aeb0cbe535c5e277b0add0a793446d6893339fb1c6110bbf904bbdbcac309bd0319d3b0a4357996c297ea38
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
  -i --ignore-folder=FOLDER Do not add a folder (default=".git")
18
+ -ao --add-output Do not ignore output file when adding files
18
19
  -o, --output=OUTPUT Output executable filename
19
20
  -d --daemon Runs the app as a background task
20
21
  -r, --rails Rails support
@@ -100,6 +101,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/lourei
100
101
 
101
102
 
102
103
  # Changelog
104
+ * 0.2.5: Ignore output file when adding files. Add "--add-output" option;
103
105
  * 0.2.4: Ignore '.git' folder by default. Add "--ignore-folder" option;
104
106
  * 0.2.3: add "--daemon" option;
105
107
  * 0.2.1: add missing "bundle" requirement;
data/bin/rb2exe CHANGED
@@ -18,6 +18,7 @@ options = {
18
18
  quiet: false,
19
19
  add: nil,
20
20
  ignore_folder: '.git',
21
+ add_output: false,
21
22
  output: nil,
22
23
  rails: false,
23
24
  daemon: false,
@@ -30,6 +31,7 @@ opt_parser = OptionParser.new do |opts|
30
31
  opts.on("-q", "--quiet", "Do not run verbosely") { |v| options[:quiet] = v }
31
32
  opts.on("-a", "--add=FOLDER", "Add an entire folder (eg. \".\")") { |v| options[:add] = v }
32
33
  opts.on("-i", "--ignore-folder=FOLDER", "Do not add a folder") { |v| options[:ignore_folder] = v }
34
+ opts.on("-ao", "--add-output", "Do not ignore output file when adding files") { |v| options[:add_output] = v }
33
35
  opts.on("-o", "--output=OUTPUT", "Output executable filename") { |v| options[:output] = v }
34
36
  opts.on("-r", "--rails", "Rails support") { |v| options[:rails] = v }
35
37
  opts.on("-d", "--daemon", "Runs the app as a background task") { |v| options[:daemon] = v }
@@ -126,6 +128,12 @@ Dir.mktmpdir do |tmp_dir|
126
128
  FileUtils.rm_rf("#{tmp_dir}/payload/lib/app/#{options[:ignore_folder]}")
127
129
  end
128
130
 
131
+ # ignore output file when adding files
132
+ if ! options[:add_output]
133
+ puts "Ignoring #{exe_fn}" unless options[:quiet]
134
+ FileUtils.rm_rf("#{tmp_dir}/payload/lib/app/#{exe_fn}")
135
+ end
136
+
129
137
  FileUtils.cp_r("#{gem_dir}/bin/build", "#{tmp_dir}/") # Package builder
130
138
  FileUtils.cp_r("#{gem_dir}/bin/decompress", "#{tmp_dir}/")
131
139
  result = `#{tmp_dir}/build #{tmp_dir} #{main_app_path} #{exe_fn} #{options[:quiet]} #{options[:rails]} #{options[:daemon]}`
@@ -1,3 +1,3 @@
1
1
  module Rb2exe
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
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
4
+ version: 0.2.5
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-17 00:00:00.000000000 Z
11
+ date: 2017-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -4077,7 +4077,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
4077
4077
  version: '0'
4078
4078
  requirements: []
4079
4079
  rubyforge_project:
4080
- rubygems_version: 2.5.1
4080
+ rubygems_version: 2.4.8
4081
4081
  signing_key:
4082
4082
  specification_version: 4
4083
4083
  summary: Ruby to Executable
@@ -1 +0,0 @@
1
- libcrypto.1.0.0.dylib
@@ -1 +0,0 @@
1
- libedit.0.dylib
@@ -1 +0,0 @@
1
- libffi.6.dylib
@@ -1 +0,0 @@
1
- libgmp.10.dylib
@@ -1 +0,0 @@
1
- liblzma.5.dylib
@@ -1 +0,0 @@
1
- libncurses.5.dylib
@@ -1 +0,0 @@
1
- libedit.0.dylib
@@ -1 +0,0 @@
1
- libssl.1.0.0.dylib
@@ -1 +0,0 @@
1
- libncurses.5.dylib
@@ -1 +0,0 @@
1
- libyaml-0.2.dylib