luban 0.12.7 → 0.12.8

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
  SHA1:
3
- metadata.gz: a9f9b648431a95c66eb7a079013f84a96269b4f9
4
- data.tar.gz: 88853e1b771216a81f113edd2386ed1facd16909
3
+ metadata.gz: 789a5249cba00bfdfb1260f95d3841006e1bbc0f
4
+ data.tar.gz: 3b138b65496a4f011386d1472609b06a6d9e8557
5
5
  SHA512:
6
- metadata.gz: 41bffc8aa7bf3e2312300f502fadac78466d4d3830ac69b0e657b8baa736c75ed62ef6d9dde025c6b4ac10e405a318889bf9b3f0884a88257f78c48f7fc30a1d
7
- data.tar.gz: 4140711eeedb8f6e74f2168028caa0a7d71422d5f3a2fbeb1f845871c9f0bce430c5f80dc7be14b5ad82a812307dc311a5e51df3bf9b12ce045266138a723c54
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.vendor")
146
- sources[:"app.vendor"] = releases.delete(:"app.vendor")
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 ||= releases_path.join('.bundle')
33
+ @bundle_config_path ||= bundler_path.join('.bundle')
30
34
  end
31
35
 
32
- def bundle_path
33
- @bundle_path ||= releases_path.join('vendor', 'bundle')
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 ||= releases_path.join('vendor', 'cache')
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: releases_path, to: shared_path)
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, bundle_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 #{bundle_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)
@@ -1,5 +1,5 @@
1
1
  module Luban
2
2
  module Deployment
3
- VERSION = "0.12.7"
3
+ VERSION = "0.12.8"
4
4
  end
5
5
  end
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.7
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-22 00:00:00.000000000 Z
11
+ date: 2017-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: luban-cli