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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82f64bc95956ff03b72a9eec7b6c06a832f3ab3ce84c2749c5821510444dc29c
4
- data.tar.gz: daa0b30502a4c21c6719c7e9f5b4904ac9657f97fd35a3f350faf61f213cc7a4
3
+ metadata.gz: c0612f4f58ec6de522801b4b6c840f7bfc9a47b043a2393ea7d210c0185a4b2c
4
+ data.tar.gz: 4ab0ee17d04ae46a608fcadd46b796bf637798d9da9fcf595630ba18f80e6f72
5
5
  SHA512:
6
- metadata.gz: efe68802dc6b36414d391a34e766e9f7f081819c54e9544a13395c1dcef3c11bd5ecfa58aa8a9c5d73ca3312451252db5412b1721b99feec510f122e24906302
7
- data.tar.gz: 998d2eb410a15a0378ad45fba74c0acad80b47f83d8b03a265c53a87ba83b2ac6152af7ef041af6d5224e718654e1d4fa81d6872938e074c894857215ec40e63
6
+ metadata.gz: 66addadbc99a73ae8acef93ce7535285e1165ae669aad2f16478149ec32af65978c5b8f2ccda6a45603d9b3fc24ba151847bff9453f23fc565359dfcd557178a
7
+ data.tar.gz: 9a9610fa316f5a10bbe8d270be74a787bc92eac9d8b8d74dae1887610c58ee8cc9d3c199c936c75f8c69f33a9fc928b8aef1753940612d4df92063b0e25bfc5a
@@ -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.2.5
7
- - 2.3.1
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
@@ -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.lock"
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
- ::Gem.clear_paths
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)
@@ -1,3 +1,3 @@
1
1
  module Appbundler
2
- VERSION = "0.11.3"
2
+ VERSION = "0.11.4"
3
3
  end
@@ -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.3
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-02 00:00:00.000000000 Z
11
+ date: 2018-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake