ruaur 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/ruaur +2 -22
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 50ebe39558c3e6efd9953ae693863c8d7e7686c5
4
- data.tar.gz: f4be7e20aa56a689686470120d08c4a82d6ef496
3
+ metadata.gz: 9980ac435ccd22862e2f589cbad91318e6b92887
4
+ data.tar.gz: cb41c0064e13290da7d4cc43c7befb3957ab500f
5
5
  SHA512:
6
- metadata.gz: 35750a58dd7ba7b56e899b47504db601d8c8d211b6c0464efd5e2b50471eacdc630196b3e47e2e670b78ffd6534cee85869f83f1106d2aee18695fc3b93a6072
7
- data.tar.gz: da1963ce9bb15df155d8b012b74d1cca7cb6a24964607fb9623a46838ba2b5e4306a4f7b7916f41497aa1e221bf734273ddc80f554fdcb48c76943fa9ee5371b
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruaur
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Whittaker