luban 0.12.1 → 0.12.2

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: 410b9b5e5e7b9fbc389290fa45951741ad84dcb5
4
- data.tar.gz: a55967147d22fb2d87b00b60cde50f9ff8bdd563
3
+ metadata.gz: 0c7460f351021d4c9a37aeef66df70d3cc966a7f
4
+ data.tar.gz: 1d097ba20fd8491657825d1cc53f8f9db5ba0dc5
5
5
  SHA512:
6
- metadata.gz: d75e1599d8dd7d377cf5c3385d0b9e75e32338c45aa9190548696933dcc2f59c99ac7951afc7c78f8c3227e2205ea98d185b20fb9fe1320cacd38926fcaae03a
7
- data.tar.gz: 1bc91fc605e99ad1c5ab5fa4a91f84e4e5b9499990870679e65d8c59fd749bc409feff9ea15f9819573869155abef20b76d07e34299f8ab64a14b81fc13856e3
6
+ metadata.gz: 6d2371d009d05e2beaa52527becc015abcaee904e9b58e7a1c94c2d15e70b3e1bf210bdca80949e0257abde9dbe9276639c29359e19c95daa3c8124b70566f36
7
+ data.tar.gz: 32f3a5145815112420ab69db4134bdf2361bcedb2b6d26a3f3bf7bb23f5711a91ef1761c1684884b7b0c82362d8d400a5c197b8cce5e55123c56fea9b5601ed7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change log
2
2
 
3
+ ## Version 0.12.2 (Feb 13, 2017)
4
+
5
+ Bug fixes:
6
+ * Correctly composed revisions for build sources
7
+ * Fixed a typo in the template of Dockerfile.erb
8
+ * Checked the result of bundle install/package in Repository before proceeding to the rest steps
9
+ * Checked the result of bundle install in Publisher before proceeding to the rest steps
10
+
3
11
  ## Version 0.12.1 (Feb 09, 2017)
4
12
 
5
13
  Minor enhancements:
@@ -159,7 +159,7 @@ module Luban
159
159
 
160
160
  def compose_revision
161
161
  require 'digest/md5'
162
- build[:sources].inject(revisions = '') { |r, (_, src)| r += src[:md5] }
162
+ revisions = build[:sources].inject('') { |r, (_, src)| r += src[:md5] }
163
163
  Digest::MD5.hexdigest(revisions)[0, revision_size]
164
164
  end
165
165
 
@@ -23,7 +23,7 @@ LABEL luban.project="<%= project %>" \
23
23
  luban.<%= name %>_tag="<%= source[:tag] %>" \
24
24
  <%- end -%>
25
25
  luban.build_tag="<%= build_tag %>" \
26
- luban.bulid_rev="<%= build[:revision] %>"
26
+ luban.bulid_rev="<%= build[:revision] %>" \
27
27
  luban.luban_user="<%= luban_user %>" \
28
28
  luban.luban_root_path="<%= luban_root_path %>"
29
29
 
@@ -185,7 +185,11 @@ module Luban
185
185
  options << "--without #{bundle_without.join(' ')}"
186
186
  end
187
187
  options << bundle_flags.join(' ')
188
- execute(bundle_executable, :install, *options)
188
+ if (output = capture(bundle_executable, :install, *options)).empty?
189
+ info "Successfully deployed bundled gems"
190
+ else
191
+ abort("Aborted! FAILED to deploy bundled gems: #{output}")
192
+ end
189
193
  end
190
194
  end
191
195
  end
@@ -203,9 +203,16 @@ module Luban
203
203
  options << "--without #{bundle_without.join(' ')}"
204
204
  end
205
205
  options << "--quiet"
206
- execute(bundle_cmd, :install, *options)
207
- info "Package gems bundled in Gemfile"
208
- execute(bundle_cmd, :package, "--all --quiet")
206
+ if (output = capture(bundle_cmd, :install, *options)).empty?
207
+ info "Successfully bundled gems in Gemfile"
208
+ else
209
+ abort "FAILED to bundle gems in Gemfile: #{output}"
210
+ end
211
+ if (output = capture(bundle_cmd, :package, "--all --quiet")).empty?
212
+ info "Successfully packaged gems in Gemfile"
213
+ else
214
+ abort "Aborted! FAILED to package gems in Gemfile: #{output}"
215
+ end
209
216
  end
210
217
 
211
218
  gem_files = capture(:ls, '-xtd', "#{gems_cache.join('*')} | grep -v \"md5$\"").split
@@ -1,5 +1,5 @@
1
1
  module Luban
2
2
  module Deployment
3
- VERSION = "0.12.1"
3
+ VERSION = "0.12.2"
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.1
4
+ version: 0.12.2
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-08 00:00:00.000000000 Z
11
+ date: 2017-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: luban-cli