ian 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ian +15 -4
- data/lib/ian/packager.rb +2 -0
- data/lib/ian/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de4bcf5f0a0b4142e5c0bf55307ab8775c07aca2
|
4
|
+
data.tar.gz: 1db02e646ad6b8a337bad3d4afd111ea9827705c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79051668953ad9be1db7102d1b45c65f9842140ac90998d83698e6deab7081dbbfc156a51a4ca3f1fe1adeafe7066173b9dcbaada253133d87e31355e89f8db0
|
7
|
+
data.tar.gz: 0b4f52a7c647e86a530e73beaa3f611a8a319419b58c4b1b2533b980764a2a11d5028f52d90dd0dfa38278238a466778e99f318e6de451a28cd35a0b51c1924f
|
data/bin/ian
CHANGED
@@ -72,10 +72,11 @@ Slop.parse help: true do
|
|
72
72
|
|
73
73
|
run do |opts, args|
|
74
74
|
check_initialized!
|
75
|
-
|
75
|
+
|
76
76
|
c = Ian.control(IAN_DIR)
|
77
|
-
|
78
|
-
c.
|
77
|
+
opts = opts.to_hash.reject! {|k,v| v.nil? }
|
78
|
+
c.update(opts)
|
79
|
+
Ian::Control.save(c, Ian.ctrlpath(IAN_DIR))
|
79
80
|
puts "Updated control file"
|
80
81
|
end
|
81
82
|
end
|
@@ -83,11 +84,21 @@ Slop.parse help: true do
|
|
83
84
|
command :info do
|
84
85
|
description "Print information for this package"
|
85
86
|
|
87
|
+
on :v, :version, "Show just the version of this package"
|
88
|
+
on :a, :arch, "Show just the architecture of this package"
|
89
|
+
|
86
90
|
run do |opts, args|
|
87
91
|
check_initialized!
|
88
92
|
|
89
93
|
c = Ian.control(IAN_DIR)
|
90
|
-
|
94
|
+
case
|
95
|
+
when opts.version?
|
96
|
+
puts c[:version]
|
97
|
+
when opts.arch?
|
98
|
+
puts c[:arch]
|
99
|
+
else
|
100
|
+
puts c
|
101
|
+
end
|
91
102
|
|
92
103
|
unless c.valid?
|
93
104
|
puts "\n"
|
data/lib/ian/packager.rb
CHANGED
data/lib/ian/version.rb
CHANGED