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 +4 -4
- data/lib/appbundler/app.rb +17 -2
- 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: 8efc805cd42cbb4c65c1ebc7ef098e71e49f092cc55f49467b92e43bef7cf823
|
4
|
+
data.tar.gz: 271c529ef3d07646769a2a2d67b74279eb15486a6796ffc6ef5d4da52be787bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c2f1e0a9b400f295c6017b2b9ebe8f77793660dcd9bf49be2761b2870c0c33ffb20ab93d09521108897bcd73c86defedaf831f4e6057b26728bf4cc4f398628
|
7
|
+
data.tar.gz: ae6fa5eccbee662ab9a0258193cb6d4c7bd652c515ca307bb4b8be89b0bfe39679ad9feb7d8a7dc5561cd1f53bf6df62a2b948817c55eb7a0775f38eba7ef1dd
|
data/lib/appbundler/app.rb
CHANGED
@@ -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
|
-
|
71
|
-
|
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|
|
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.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-
|
11
|
+
date: 2018-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|