sumo-search 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/sumo +12 -14
  3. data/lib/sumo/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8e3759e39a03e8a3fceef78e0bf775275c35901
4
- data.tar.gz: 193be08aa43cc6aebe1281606d6e24034a10900b
3
+ metadata.gz: 1e63f26340b47ed3028625ae1edfb2ffaec6f104
4
+ data.tar.gz: 32b744ef0f357ea39136c9804dd29ee42ba646de
5
5
  SHA512:
6
- metadata.gz: f513e2bdb1b53414aba48a4838de8320713d7425a209dde25535e9803b6a97b0ca3ca6ed8e90136da45707e24c696d42debc9f66b8bf3e6801e656a6ee48c397
7
- data.tar.gz: f883c5490d9810001a7159fb3d9467dd7e7da03bf4ee9ef67e2184e1f86a42b02a496aad2efbd9765d8d355972373ae1e1092571072df30ab24ad269595cb109
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 __FILE__ == $0
53
- if options[:query].nil?
54
- puts 'Please specify a query'
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
@@ -1,4 +1,4 @@
1
1
  # This file contains the version of the gem.
2
2
  module Sumo
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sumo-search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swipely, Inc.