luban 0.10.2 → 0.10.3

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: 0a26daab6124bb51f62a3fb87b8537aec2a58010
4
- data.tar.gz: ba614aa2277d246dadbec55b2cb11974f25c3096
3
+ metadata.gz: 55aba9574e332f5a608c7176ec441d73fd4e03f4
4
+ data.tar.gz: 547945f3dc755960590af2589663b75412a8ad94
5
5
  SHA512:
6
- metadata.gz: 98e7c1bb5c10cf539c0c3397d310ab513b77d8a812381b21493e8cb3b2864d238f334fea085ad6305091a2bf8f5cfaa6665d0e81871f072b84b75f26a9c96b4d
7
- data.tar.gz: ef22dc14e95ae3b2abd756d58fa42bc8ed3a4d5b562bd3c5b90215c53fbae3bee5fb1760a80fe0bf8559cc9a29444777966c72d858e60d5d18d23ee4222944b2
6
+ metadata.gz: f1c6d8e7f8edf67288c2198462beb0d255712aefe04c0c8dc799ac42794cc2ffe46796dbd96d596799d8bb7cdde716e9007fbfde6ffd5520afd528fb5b6f8563
7
+ data.tar.gz: a2977dfa28743cf5049367e04cd9af8022a0be5616375a77b0d659d51e529a9599f82a9c1640c853d4102b24f76fecafff7c708601e5d7949d1a0a46eae195d0
data/CHANGELOG.md CHANGED
@@ -1,11 +1,14 @@
1
1
  # Change log
2
2
 
3
- ## Version 0.10.2 (Nov 22, 2016)
3
+ ## Version 0.10.3 (Nov 22, 2016)
4
4
 
5
5
  Minor enhancements:
6
6
  * Upgraded Bundler for Ruby to version 0.13.6
7
7
  * Removed bundle install during deployment project bootstrap
8
8
  * Falled back to use "bundle install" which is a more persistent/general practice
9
+ * Ensured shell out bundler commands to setup application gems dependencies
10
+ * Luban deployment project also uses Bundler to manage its gems dependencies, therefore
11
+ * Used with_clean_env to invoke application level bundler commands
9
12
 
10
13
  Bug fixes:
11
14
  * Properly convert require path to string when loading luban package
@@ -163,7 +163,11 @@ module Luban
163
163
  assure_dirs(bundle_config_path, gems_cache_path, bundle_path)
164
164
  sync_gems_cache
165
165
  sync_locked_gemfile
166
- install_gems_from_cache
166
+ if defined?(Bundler)
167
+ Bundler.with_clean_env { install_gems_from_cache }
168
+ else
169
+ install_gems_from_cache
170
+ end
167
171
  end
168
172
 
169
173
  def sync_gems_cache
@@ -184,7 +184,13 @@ module Luban
184
184
  bundle_path = Pathname.new('vendor').join('bundle')
185
185
  if release_with_gemfile?(gemfile_path)
186
186
  assure_dirs(gems_path)
187
- bundle_gems!(gemfile_path, gems_cache, bundle_path)
187
+ if defined?(Bundler)
188
+ Bundler.with_clean_env do
189
+ bundle_gems!(gemfile_path, gems_cache, bundle_path)
190
+ end
191
+ else
192
+ bundle_gems!(gemfile_path, gems_cache, bundle_path)
193
+ end
188
194
  else
189
195
  {}
190
196
  end
@@ -1,5 +1,5 @@
1
1
  module Luban
2
2
  module Deployment
3
- VERSION = "0.10.2"
3
+ VERSION = "0.10.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luban
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rubyist Lei