ruaur 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ruaur +2 -22
- 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: 9980ac435ccd22862e2f589cbad91318e6b92887
|
4
|
+
data.tar.gz: cb41c0064e13290da7d4cc43c7befb3957ab500f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0868e7bd78b45e6c6bcffc811763292f11623d07d6398cc409dfeaa7f26dc27f1f5360666e37353dffbc46d22b696f0bf6bd18206258729c3682f78898d2181b
|
7
|
+
data.tar.gz: 3beeb868e80ac725b0bddaa4e7b989f750cbf2aa6f8f5975d24a1f7f1e5e17a1c65b0f5346014c47cd042086d07d2d3eddb572c3d0a1f5d519ac1e8a92cb6690
|
data/bin/ruaur
CHANGED
@@ -132,21 +132,7 @@ def validate(options)
|
|
132
132
|
return false if (options["nosave"])
|
133
133
|
|
134
134
|
if (options["clean"])
|
135
|
-
if (
|
136
|
-
options["noconfirm"] ||
|
137
|
-
options["search"] ||
|
138
|
-
options["upgrade"]
|
139
|
-
)
|
140
|
-
return false
|
141
|
-
end
|
142
|
-
elsif (options["noconfirm"])
|
143
|
-
if (
|
144
|
-
options["clean"] ||
|
145
|
-
options["search"] ||
|
146
|
-
options["upgrade"]
|
147
|
-
)
|
148
|
-
return false
|
149
|
-
end
|
135
|
+
return false if (options["search"] || options["upgrade"])
|
150
136
|
elsif (options["search"])
|
151
137
|
if (
|
152
138
|
options["clean"] ||
|
@@ -156,13 +142,7 @@ def validate(options)
|
|
156
142
|
return false
|
157
143
|
end
|
158
144
|
elsif (options["upgrade"])
|
159
|
-
if (
|
160
|
-
options["clean"] ||
|
161
|
-
options["noconfirm"] ||
|
162
|
-
options["search"]
|
163
|
-
)
|
164
|
-
return false
|
165
|
-
end
|
145
|
+
return false if (options["clean"] || options["search"])
|
166
146
|
end
|
167
147
|
else
|
168
148
|
return false
|