sumo-search 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/sumo +12 -14
- data/lib/sumo/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: 1e63f26340b47ed3028625ae1edfb2ffaec6f104
|
4
|
+
data.tar.gz: 32b744ef0f357ea39136c9804dd29ee42ba646de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6df071fda954aa59d9a28fba62ca27d5c1906e1209346dd5319a0f804dfe4cc8d44a1e24a17876456719250b838f6b83fece52eb7a6cc9a2995d2d57d6fe112b
|
7
|
+
data.tar.gz: 7892c303f8d872dc88e324810782e832e19b629d2d0b94a98e4c19caa1855ae96c72547802344fa7aa89e4f1c32d20ea252167c3ea3427e2fdcee4683133c82c
|
data/bin/sumo
CHANGED
@@ -49,20 +49,18 @@ OptionParser.new do |opts|
|
|
49
49
|
end
|
50
50
|
end.parse!
|
51
51
|
|
52
|
-
if
|
53
|
-
|
54
|
-
|
52
|
+
if options[:query].nil?
|
53
|
+
puts 'Please specify a query'
|
54
|
+
exit 1
|
55
|
+
else
|
56
|
+
begin
|
57
|
+
puts search(options[:query],
|
58
|
+
options: options[:query_options],
|
59
|
+
key: options[:key],
|
60
|
+
config_file: options[:config_file])
|
61
|
+
exit 0
|
62
|
+
rescue StandardError => ex
|
63
|
+
puts ex.message
|
55
64
|
exit 1
|
56
|
-
else
|
57
|
-
begin
|
58
|
-
puts search(options[:query],
|
59
|
-
options: options[:query_options],
|
60
|
-
key: options[:key],
|
61
|
-
config_file: options[:config_file])
|
62
|
-
exit 0
|
63
|
-
rescue StandardError => ex
|
64
|
-
puts ex.message
|
65
|
-
exit 1
|
66
|
-
end
|
67
65
|
end
|
68
66
|
end
|
data/lib/sumo/version.rb
CHANGED