luban 0.4.0 → 0.4.1
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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/luban/deployment/cli/package/installer/install.rb +5 -2
- data/lib/luban/deployment/cli/package/worker.rb +2 -1
- data/lib/luban/deployment/packages/bundler.rb +0 -4
- data/lib/luban/deployment/packages/git.rb +7 -0
- data/lib/luban/deployment/packages/ruby.rb +1 -0
- 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: ffaea169e73bcbe91d121057e872f25c28f9aa91
|
4
|
+
data.tar.gz: 0b0cfbe6d7b224f87f62ec78a2801f0fe970e491
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59807ad43e6829f55c512d1d865402710de337424982863330faaa4a86acb16b36921aa3ec5fe438d55399d431988b75b33abdd461e1de85cce15be94596fcc8
|
7
|
+
data.tar.gz: c2085acfba4d4476242a85904f009afe9c7cbf4ca149f09260cd1972b2b9be3db5f15602ec588fa1cc6089b6ad4dd8d3f02a2e937d14504ffce9128f6d9a55d7
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
## Version 0.4.1 (May 13, 2016)
|
4
|
+
|
5
|
+
Minor enhancements:
|
6
|
+
* Optimized overriding dependent package version thru command-line options
|
7
|
+
* Added command-line option to specify OpenSSL version for Git and Ruby
|
8
|
+
* Used system default package if the given required package version is "default"
|
9
|
+
|
3
10
|
## Version 0.4.0 (May 11, 2016)
|
4
11
|
|
5
12
|
Minor enhancements:
|
@@ -88,7 +88,7 @@ module Luban
|
|
88
88
|
update_result "#{package_full_name} is uninstalled. "
|
89
89
|
end
|
90
90
|
else
|
91
|
-
message = "#{package_full_name} is NOT installed."
|
91
|
+
message = "#{package_full_name} is NOT installed."
|
92
92
|
if directory?(install_path) or directory?(build_path)
|
93
93
|
if force?
|
94
94
|
uninstall!
|
@@ -193,10 +193,13 @@ module Luban
|
|
193
193
|
|
194
194
|
def manage_required_packages(type, cmd)
|
195
195
|
required_packages[type].each do |d|
|
196
|
+
version = task.opts.send(d.name) || d.version
|
197
|
+
next if version == 'default'
|
196
198
|
self.class.worker_class(:installer, package: d.name).new(
|
197
199
|
config: config, backend: backend,
|
198
200
|
cmd: cmd, args: {},
|
199
|
-
opts: d.options.merge(name: d.name, version:
|
201
|
+
opts: d.options.merge(name: d.name, version: version,
|
202
|
+
current: true, parent: self)
|
200
203
|
).run
|
201
204
|
end
|
202
205
|
end
|
@@ -27,8 +27,9 @@ module Luban
|
|
27
27
|
def package_major_version; task.opts.major_version; end
|
28
28
|
def package_patch_level; task.opts.patch_level; end
|
29
29
|
|
30
|
-
def child?; !task.opts.parent.nil?; end
|
31
30
|
def parent; task.opts.parent; end
|
31
|
+
def child?; !parent.nil?; end
|
32
|
+
|
32
33
|
|
33
34
|
def current_path
|
34
35
|
@current_path ||= app_path.join(package_name)
|
@@ -57,6 +57,7 @@ module Luban
|
|
57
57
|
super
|
58
58
|
commands[:install].switch :install_doc, "Install Ruby document"
|
59
59
|
commands[:install].option :bundler, "Bundler version"
|
60
|
+
commands[:install].option :openssl, "OpenSSL version (effective for v1.9.3 or above)"
|
60
61
|
end
|
61
62
|
|
62
63
|
def decompose_version(version)
|
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.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rubyist Lei
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: luban-cli
|