luban 0.12.1 → 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/luban/deployment/cli/application/docker/dockerizer.rb +1 -1
- data/lib/luban/deployment/cli/application/docker/templates/Dockerfile.erb +1 -1
- data/lib/luban/deployment/cli/application/publisher.rb +5 -1
- data/lib/luban/deployment/cli/application/repository.rb +10 -3
- data/lib/luban/deployment/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c7460f351021d4c9a37aeef66df70d3cc966a7f
|
4
|
+
data.tar.gz: 1d097ba20fd8491657825d1cc53f8f9db5ba0dc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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
|
-
|
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
|
-
|
207
|
-
|
208
|
-
|
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
|
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.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-
|
11
|
+
date: 2017-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: luban-cli
|