appbundler 0.11.3 → 0.11.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +9 -2
- data/lib/appbundler/app.rb +19 -6
- data/lib/appbundler/version.rb +1 -1
- data/spec/fixtures/appbundler-example-app/.bundle/config +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: c0612f4f58ec6de522801b4b6c840f7bfc9a47b043a2393ea7d210c0185a4b2c
|
4
|
+
data.tar.gz: 4ab0ee17d04ae46a608fcadd46b796bf637798d9da9fcf595630ba18f80e6f72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66addadbc99a73ae8acef93ce7535285e1165ae669aad2f16478149ec32af65978c5b8f2ccda6a45603d9b3fc24ba151847bff9453f23fc565359dfcd557178a
|
7
|
+
data.tar.gz: 9a9610fa316f5a10bbe8d270be74a787bc92eac9d8b8d74dae1887610c58ee8cc9d3c199c936c75f8c69f33a9fc928b8aef1753940612d4df92063b0e25bfc5a
|
data/.travis.yml
CHANGED
@@ -1,14 +1,21 @@
|
|
1
|
+
language: ruby
|
2
|
+
cache: bundler
|
3
|
+
dist: trusty
|
4
|
+
|
1
5
|
before_install:
|
2
6
|
- gem update --system
|
3
7
|
- gem install bundler
|
4
8
|
|
5
9
|
rvm:
|
6
|
-
- 2.
|
7
|
-
- 2.
|
10
|
+
- 2.4.4
|
11
|
+
- 2.5.1
|
8
12
|
|
9
13
|
branches:
|
10
14
|
only:
|
11
15
|
- master
|
12
16
|
|
17
|
+
install:
|
18
|
+
- bundle install --jobs 3 --retry 3
|
19
|
+
|
13
20
|
# The integration tests need to see installed gems.
|
14
21
|
script: rspec --color --format progress
|
data/lib/appbundler/app.rb
CHANGED
@@ -142,9 +142,10 @@ module Appbundler
|
|
142
142
|
so.run_command
|
143
143
|
so.error!
|
144
144
|
end
|
145
|
+
FileUtils.mv t.path, "#{app_dir}/Gemfile"
|
145
146
|
end
|
146
147
|
end
|
147
|
-
return "#{app_dir}/Gemfile
|
148
|
+
return "#{app_dir}/Gemfile"
|
148
149
|
end
|
149
150
|
|
150
151
|
def write_executable_stubs
|
@@ -225,15 +226,24 @@ E
|
|
225
226
|
# exists to make tests run correctly on travis.ci (which uses rvm).
|
226
227
|
def env_sanitizer
|
227
228
|
<<-EOS
|
228
|
-
ENV["GEM_HOME"] = ENV["GEM_PATH"] = nil unless ENV["APPBUNDLER_ALLOW_RVM"] == "true"
|
229
229
|
require "rubygems"
|
230
|
-
|
230
|
+
|
231
|
+
begin
|
232
|
+
# this works around rubygems/rubygems#2196 and can be removed in rubygems > 2.7.6
|
233
|
+
require "rubygems/bundler_version_finder"
|
234
|
+
rescue LoadError
|
235
|
+
# probably means rubygems is too old or too new to have this class, and we don't care
|
236
|
+
end
|
237
|
+
|
238
|
+
unless ENV["BUNDLE_GEMFILE"]
|
239
|
+
ENV["GEM_HOME"] = ENV["GEM_PATH"] = nil unless ENV["APPBUNDLER_ALLOW_RVM"] == "true"
|
240
|
+
::Gem.clear_paths
|
231
241
|
EOS
|
232
242
|
end
|
233
243
|
|
234
244
|
def runtime_activate
|
235
245
|
@runtime_activate ||= begin
|
236
|
-
statements = runtime_dep_specs.map { |s| %Q{gem "#{s.name}", "= #{s.version}"} }
|
246
|
+
statements = runtime_dep_specs.map { |s| %Q{ gem "#{s.name}", "= #{s.version}"} }
|
237
247
|
activate_code = ""
|
238
248
|
activate_code << env_sanitizer << "\n"
|
239
249
|
activate_code << statements.join("\n") << "\n"
|
@@ -249,9 +259,12 @@ EOS
|
|
249
259
|
name, version = app_spec.name, app_spec.version
|
250
260
|
bin_basename = File.basename(bin_file)
|
251
261
|
<<-E
|
252
|
-
gem "#{name}", "= #{version}"
|
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
|
253
267
|
|
254
|
-
spec = Gem::Specification.find_by_name("#{name}", "= #{version}")
|
255
268
|
bin_file = spec.bin_file("#{bin_basename}")
|
256
269
|
|
257
270
|
Kernel.load(bin_file)
|
data/lib/appbundler/version.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
---
|
2
|
-
BUNDLE_WITHOUT: something
|
2
|
+
BUNDLE_WITHOUT: "something"
|
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.4
|
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-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|