luban 0.12.7 → 0.12.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 789a5249cba00bfdfb1260f95d3841006e1bbc0f
|
4
|
+
data.tar.gz: 3b138b65496a4f011386d1472609b06a6d9e8557
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e62edc62fc52674c8088f53fa7143249862b37919f610b33353e1e4fd72d1343c8495acf52ff6437d0ca98a242cf27ea2ecc37f8508f5fa0b24cd003f8e76d3
|
7
|
+
data.tar.gz: ccf9b6b5a205e5cb7e420e439127513c6cdf8ccb25a0ce39004939a07410346b9c642676ede9d3b8f832788b47f1729f293de9357398d8e76c2b227b1caf6b07
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
## Version 0.12.8 (Feb 23, 2017)
|
4
|
+
|
5
|
+
Bug fixes:
|
6
|
+
* Changed vendor path to bundler path to ensure bundle config is properly packaged into the docker image
|
7
|
+
* Relocated bundle config path (.bundle) into bundler path
|
8
|
+
* Relocated vendor path (vendor/bundle and vendor/cache) into bundler path
|
9
|
+
|
3
10
|
## Version 0.12.7 (Feb 22, 2017)
|
4
11
|
|
5
12
|
Minor enhancements:
|
@@ -142,8 +142,8 @@ module Luban
|
|
142
142
|
def init_build_sources
|
143
143
|
sources = { packages: packages_path }
|
144
144
|
releases = get_releases(releases_path, type: 'app')
|
145
|
-
if releases.has_key?(:"app.
|
146
|
-
sources[:"app.
|
145
|
+
if releases.has_key?(:"app.bundler")
|
146
|
+
sources[:"app.bundler"] = releases.delete(:"app.bundler")
|
147
147
|
end
|
148
148
|
sources.merge!(releases)
|
149
149
|
profile_path = releases_path.dirname.join('profile')
|
@@ -25,16 +25,20 @@ module Luban
|
|
25
25
|
@releases_path ||= super.dirname.join(release_type)
|
26
26
|
end
|
27
27
|
|
28
|
+
def bundler_path
|
29
|
+
@bundler_path ||= releases_path.join('bundler')
|
30
|
+
end
|
31
|
+
|
28
32
|
def bundle_config_path
|
29
|
-
@bundle_config_path ||=
|
33
|
+
@bundle_config_path ||= bundler_path.join('.bundle')
|
30
34
|
end
|
31
35
|
|
32
|
-
def
|
33
|
-
@
|
36
|
+
def gems_bundle_path
|
37
|
+
@gems_bundle_path ||= bundler_path.join('vendor', 'bundle')
|
34
38
|
end
|
35
39
|
|
36
40
|
def gems_cache_path
|
37
|
-
@gems_cache_path ||=
|
41
|
+
@gems_cache_path ||= bundler_path.join('vendor', 'cache')
|
38
42
|
end
|
39
43
|
|
40
44
|
def bundle_without
|
@@ -108,7 +112,7 @@ module Luban
|
|
108
112
|
def create_symlinks
|
109
113
|
send("create_#{release_type}_symlinks")
|
110
114
|
if has_gemfile?
|
111
|
-
create_linked_dirs(bundle_linked_dirs, from:
|
115
|
+
create_linked_dirs(bundle_linked_dirs, from: bundler_path, to: shared_path)
|
112
116
|
create_linked_dirs(bundle_linked_dirs, to: release_path)
|
113
117
|
end
|
114
118
|
end
|
@@ -148,7 +152,7 @@ module Luban
|
|
148
152
|
def cleanup_profile_releases; cleanup_releases; end
|
149
153
|
|
150
154
|
def bundle_gems
|
151
|
-
assure_dirs(bundle_config_path, gems_cache_path,
|
155
|
+
assure_dirs(bundle_config_path, gems_cache_path, gems_bundle_path)
|
152
156
|
sync_gems_cache
|
153
157
|
sync_locked_gemfile
|
154
158
|
install_gems_from_cache
|
@@ -178,7 +182,7 @@ module Luban
|
|
178
182
|
def install_gems_from_cache
|
179
183
|
options = []
|
180
184
|
options << "--gemfile #{gemfile}"
|
181
|
-
options << "--path #{
|
185
|
+
options << "--path #{gems_bundle_path}"
|
182
186
|
unless test(bundle_executable, :check, *options)
|
183
187
|
options << "--local"
|
184
188
|
unless bundle_without.include?(stage.to_s)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: luban
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rubyist Lei
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: luban-cli
|