appbundler 0.11.4 → 0.11.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
  SHA256:
3
- metadata.gz: c0612f4f58ec6de522801b4b6c840f7bfc9a47b043a2393ea7d210c0185a4b2c
4
- data.tar.gz: 4ab0ee17d04ae46a608fcadd46b796bf637798d9da9fcf595630ba18f80e6f72
3
+ metadata.gz: fb63d63d943dde32830345ad2f83ea1870a7a6c0f108c59f51caef60f47ede88
4
+ data.tar.gz: e14be84a66065ed787f1914086a0f6e9e349163f81f46d314c97663c607040ee
5
5
  SHA512:
6
- metadata.gz: 66addadbc99a73ae8acef93ce7535285e1165ae669aad2f16478149ec32af65978c5b8f2ccda6a45603d9b3fc24ba151847bff9453f23fc565359dfcd557178a
7
- data.tar.gz: 9a9610fa316f5a10bbe8d270be74a787bc92eac9d8b8d74dae1887610c58ee8cc9d3c199c936c75f8c69f33a9fc928b8aef1753940612d4df92063b0e25bfc5a
6
+ metadata.gz: 90af3d7038ac9b7ddcfc811b5f1bed8dd75f4d0a2717ed714931527dbdae1034b40064070c98c17e5034692c0ad5837d81589ccc73b324a42715454b3ced76fc
7
+ data.tar.gz: 21be3d9fd2d0973c4897fd0fb3e856857d18ba27df2db39453b8697f5bf44467aa274cd5e6d37f158b8ab53c1eb87db938941a381c8fdcb2b507005f4059bd2e
@@ -226,6 +226,7 @@ E
226
226
  # exists to make tests run correctly on travis.ci (which uses rvm).
227
227
  def env_sanitizer
228
228
  <<-EOS
229
+ ENV["GEM_HOME"] = ENV["GEM_PATH"] = nil unless ENV["APPBUNDLER_ALLOW_RVM"] == "true"
229
230
  require "rubygems"
230
231
 
231
232
  begin
@@ -235,15 +236,13 @@ rescue LoadError
235
236
  # probably means rubygems is too old or too new to have this class, and we don't care
236
237
  end
237
238
 
238
- unless ENV["BUNDLE_GEMFILE"]
239
- ENV["GEM_HOME"] = ENV["GEM_PATH"] = nil unless ENV["APPBUNDLER_ALLOW_RVM"] == "true"
240
- ::Gem.clear_paths
239
+ ::Gem.clear_paths
241
240
  EOS
242
241
  end
243
242
 
244
243
  def runtime_activate
245
244
  @runtime_activate ||= begin
246
- statements = runtime_dep_specs.map { |s| %Q{ gem "#{s.name}", "= #{s.version}"} }
245
+ statements = runtime_dep_specs.map { |s| %Q{gem "#{s.name}", "= #{s.version}"} }
247
246
  activate_code = ""
248
247
  activate_code << env_sanitizer << "\n"
249
248
  activate_code << statements.join("\n") << "\n"
@@ -259,12 +258,9 @@ EOS
259
258
  name, version = app_spec.name, app_spec.version
260
259
  bin_basename = File.basename(bin_file)
261
260
  <<-E
262
- gem "#{name}", "= #{version}"
263
- spec = Gem::Specification.find_by_name("#{name}", "= #{version}")
264
- else
265
- spec = Gem::Specification.find_by_name("#{name}")
266
- end
261
+ gem "#{name}", "= #{version}"
267
262
 
263
+ spec = Gem::Specification.find_by_name("#{name}", "= #{version}")
268
264
  bin_file = spec.bin_file("#{bin_basename}")
269
265
 
270
266
  Kernel.load(bin_file)
@@ -1,3 +1,3 @@
1
1
  module Appbundler
2
- VERSION = "0.11.4"
2
+ VERSION = "0.11.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appbundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.4
4
+ version: 0.11.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan DeLeo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-03 00:00:00.000000000 Z
11
+ date: 2018-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake