rb2exe 0.1.55 → 0.1.56

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rb2exe +2 -2
  3. data/lib/rb2exe/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1dc9b1766408e235ba1d6a8912e9daee707a98c9
4
- data.tar.gz: 8cbeb5e534be931adb38688125ece3a95b22cb1b
3
+ metadata.gz: fba9e4189ba905da321ce5c16b0f4227d51a8023
4
+ data.tar.gz: 5bd31698f6ff0971eec23d6f0b04b5b2fe1f022b
5
5
  SHA512:
6
- metadata.gz: 660cff9600e196da0b1d026a2f5c5d39df137f322d9b2a7a171d08f9a6891a7c2821edca756b614e75002ef8cb3eeec83ec1bc3b08b303bfaa6dfcb00a92601d
7
- data.tar.gz: 1e06bdb44c84daad9ffe3e21ff6bbc2bbf0b47e081a93882a435411071aff850c2e0e1a1be4cf3dd581f219d68f3ed570cc5ef03fc8ae0506fa69280f1f54f87
6
+ metadata.gz: e722e897a946cf1240c1f0e591f6dd067f5c18a869792746c4d0efad1d0c1defe819cad7239cbed4be7938897e0c7959748709523e4048680eee91c089a859ad
7
+ data.tar.gz: 3a4fc0f9eed0d3bc374d32f4df92e2cd10acfb9681a3548a45706af48bc561170724c8f92f3a58544790aa068d9317fdcd6b019670bb3f306d674cf0f993aea8
data/bin/rb2exe CHANGED
@@ -81,7 +81,7 @@ Dir.mktmpdir do |tmp_dir|
81
81
  puts "Gemfile detected. Loading gems." unless options[:quiet]
82
82
  FileUtils.mkdir_p("#{tmp_dir}/payload/lib/tmp") # Create a "tmp" folder on ".package/payload/lib"
83
83
  FileUtils.cp("#{tmp_dir}/payload/lib/app/Gemfile", "#{tmp_dir}/payload/lib/tmp/") # Copy the project Gemfile to tmp
84
- FileUtils.cp_r("#{tmp_dir}/payload/lib/app/Gemfile.lock", "#{tmp_dir}/payload/lib/tmp/")
84
+ FileUtils.cp("#{tmp_dir}/payload/lib/app/Gemfile.lock", "#{tmp_dir}/payload/lib/tmp/") if File.exists?("#{tmp_dir}/payload/lib/app/Gemfile.lock")
85
85
  # Download gems into the "lib/vendor" folder
86
86
  Bundler.with_clean_env do
87
87
  Dir.chdir("#{tmp_dir}/payload/lib/app") do
@@ -91,7 +91,7 @@ Dir.mktmpdir do |tmp_dir|
91
91
  FileUtils.rm_rf("#{tmp_dir}/payload/lib/tmp/") # Delete tmp folder
92
92
  %x[cd #{tmp_dir}/payload/lib/ && rm -f vendor/*/*/cache/*] # Delete gem's cache in the vendor folder
93
93
  FileUtils.cp("#{tmp_dir}/payload/lib/app/Gemfile", "#{tmp_dir}/payload/lib/vendor/") # Copy the Gemfile to the vendor folder
94
- FileUtils.cp_r("#{tmp_dir}/payload/lib/app/Gemfile.lock", "#{tmp_dir}/payload/lib/vendor/")
94
+ FileUtils.cp("#{tmp_dir}/payload/lib/app/Gemfile.lock", "#{tmp_dir}/payload/lib/vendor/") if File.exists?("#{tmp_dir}/payload/lib/app/Gemfile.lock")
95
95
  # Create a bundler config
96
96
  FileUtils.mkdir_p("#{tmp_dir}/payload/lib/vendor/.bundle")
97
97
  FileUtils.cp("#{gem_dir}/lib/bundler-config", "#{tmp_dir}/payload/lib/vendor/.bundle/config")
@@ -1,3 +1,3 @@
1
1
  module Rb2exe
2
- VERSION = "0.1.55"
2
+ VERSION = "0.1.56"
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.55
4
+ version: 0.1.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Loureiro