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 +4 -4
- data/lib/appbundler/app.rb +5 -9
- data/lib/appbundler/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb63d63d943dde32830345ad2f83ea1870a7a6c0f108c59f51caef60f47ede88
|
4
|
+
data.tar.gz: e14be84a66065ed787f1914086a0f6e9e349163f81f46d314c97663c607040ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90af3d7038ac9b7ddcfc811b5f1bed8dd75f4d0a2717ed714931527dbdae1034b40064070c98c17e5034692c0ad5837d81589ccc73b324a42715454b3ced76fc
|
7
|
+
data.tar.gz: 21be3d9fd2d0973c4897fd0fb3e856857d18ba27df2db39453b8697f5bf44467aa274cd5e6d37f158b8ab53c1eb87db938941a381c8fdcb2b507005f4059bd2e
|
data/lib/appbundler/app.rb
CHANGED
@@ -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
|
-
|
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{
|
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
|
-
|
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)
|
data/lib/appbundler/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2018-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|