luban 0.11.3 → 0.11.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb6c3491ce1ea691094b973536e5a805fb964991
|
4
|
+
data.tar.gz: 4bb1d2927d31a125a4f24c093b917da21e8aa60d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 508a4f58185d9487724a5947bebc4f431897a7e7535a25799dde1480a49e43f654236ad12317514f801f7dc328e1733098e3eba7478f31f6f783f181c47e4509
|
7
|
+
data.tar.gz: cb26958a7b67497dab1dfc1fc26ca9409ecf7e0a4ff60a899fdb46184869936ea9246f66b2e2d1e1e6b2a9c7c1634232b68b7fd4a1611e1e6db3ee0e8ca2ff39
|
data/CHANGELOG.md
CHANGED
@@ -109,6 +109,8 @@ module Luban
|
|
109
109
|
end
|
110
110
|
|
111
111
|
def versions; package_options.keys; end
|
112
|
+
def deprecated_versions; package_options.select { |v, o| o[:deprecated] }.keys; end
|
113
|
+
def installable_versions; package_options.select { |v, o| !o[:deprecated] }.keys; end
|
112
114
|
|
113
115
|
dispatch_task :download_package, to: :installer, as: :download, locally: true
|
114
116
|
dispatch_task :install_package, to: :installer, as: :install
|
@@ -126,9 +128,12 @@ module Luban
|
|
126
128
|
end
|
127
129
|
|
128
130
|
def install_all(args:, opts:)
|
129
|
-
|
131
|
+
installable_versions.each do |v|
|
130
132
|
install(args: args, opts: opts.merge(version: v))
|
131
133
|
end
|
134
|
+
deprecated_versions.each do |v|
|
135
|
+
uninstall(args: args, opts: opts.merge(version: v))
|
136
|
+
end
|
132
137
|
end
|
133
138
|
|
134
139
|
def uninstall_all(args:, opts:)
|
@@ -23,6 +23,8 @@ module Luban
|
|
23
23
|
def current_configured?; task.opts.current; end
|
24
24
|
alias_method :current?, :current_configured?
|
25
25
|
|
26
|
+
def deprecated?; task.opts.deprecated; end
|
27
|
+
|
26
28
|
def current_package_version
|
27
29
|
if symlink?(current_path)
|
28
30
|
File.basename(readlink(current_path))
|
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.11.
|
4
|
+
version: 0.11.4
|
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-01-
|
11
|
+
date: 2017-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: luban-cli
|