appbundler 0.11.1 → 0.11.2

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: f15da5b9078e6f6d17af1820b954af197b850ac2ca507ae6c678c034064535d5
4
- data.tar.gz: d8241883373c4379b3ccd93ba6ed432a9c41f9049859947e300daf7d58a471ee
3
+ metadata.gz: 8efc805cd42cbb4c65c1ebc7ef098e71e49f092cc55f49467b92e43bef7cf823
4
+ data.tar.gz: 271c529ef3d07646769a2a2d67b74279eb15486a6796ffc6ef5d4da52be787bb
5
5
  SHA512:
6
- metadata.gz: 04d7af42ad5838e535c1ed71a3a3b676c075412badd816174a13bd8392e5cc916479da4bf223371195b16210b53264d7d89e5dca495d3a673a55d4cee21003a4
7
- data.tar.gz: e87ff8982761e09218e2b021349be15d9309c7e7db98fcab98ebcb61ed4f1840d506fc09921eb28e75df6a60784c293bb14fcbd5be5a272aae34696fdcb32211
6
+ metadata.gz: 2c2f1e0a9b400f295c6017b2b9ebe8f77793660dcd9bf49be2761b2870c0c33ffb20ab93d09521108897bcd73c86defedaf831f4e6057b26728bf4cc4f398628
7
+ data.tar.gz: ae6fa5eccbee662ab9a0258193cb6d4c7bd652c515ca307bb4b8be89b0bfe39679ad9feb7d8a7dc5561cd1f53bf6df62a2b948817c55eb7a0775f38eba7ef1dd
@@ -66,9 +66,24 @@ module Appbundler
66
66
  end.compact
67
67
  end
68
68
 
69
+ # Copy over any .bundler and Gemfile.lock files to the target gem
70
+ # directory. This will let us run tests from under that directory.
71
+ def copy_bundler_env
72
+ gem_path = installed_spec.gem_dir
73
+ # If we're already using that directory, don't copy (it won't work anyway)
74
+ return if gem_path == File.dirname(gemfile_lock)
75
+ FileUtils.install(gemfile_lock, gem_path, :mode => 0644)
76
+ if File.exist?(dot_bundle_dir) && File.directory?(dot_bundle_dir)
77
+ FileUtils.cp_r(dot_bundle_dir, gem_path)
78
+ FileUtils.chmod_R("ugo+rX", File.join(gem_path, ".bundle"))
79
+ end
80
+ end
81
+
69
82
  def write_merged_lockfiles(without: [])
70
- # just return we don't have an external lockfile
71
- return unless external_lockfile?
83
+ unless external_lockfile?
84
+ copy_bundler_env
85
+ return
86
+ end
72
87
 
73
88
  # handle external lockfile
74
89
  Tempfile.open(".appbundler-gemfile", app_dir) do |t|
@@ -1,3 +1,3 @@
1
1
  module Appbundler
2
- VERSION = "0.11.1"
2
+ VERSION = "0.11.2"
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.1
4
+ version: 0.11.2
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-03-01 00:00:00.000000000 Z
11
+ date: 2018-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake