onewheel-google 1.0.0 → 1.0.1
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.
- checksums.yaml +4 -4
- data/lib/onewheel-google.rb +4 -4
- 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: e2859c22878a9f3c0f00d3048bf317bc5b6960ec
|
4
|
+
data.tar.gz: 7a08ac3edcd0b9ecb41a67a8d7fb583658464ff2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6390659970b54c71aee9666d478d18d453b332d4cd96352e374f3b9046a3da0e6facde127fc227f0388257f1b1143dc4cfce36d4c2dfeefe58a141e96e452ae7
|
7
|
+
data.tar.gz: 9ed6adab178ab0fafb7fd48c414b39fc8d33c60c4ec8850531aa5d9b876d55f46fe9e5b8e14756ebde55c937866bff731aa486642b274661eaab2def6a647c08
|
data/lib/onewheel-google.rb
CHANGED
@@ -3,22 +3,22 @@ require 'addressable'
|
|
3
3
|
|
4
4
|
class OnewheelGoogle
|
5
5
|
def self.search(query, cse_id, api_key, safe_search, image = false)
|
6
|
-
if query.empty?
|
6
|
+
if query.to_s.empty?
|
7
7
|
puts 'Query blank, cannot continue.'
|
8
8
|
return
|
9
9
|
end
|
10
10
|
|
11
|
-
if cse_id.empty?
|
11
|
+
if cse_id.to_s.empty?
|
12
12
|
puts 'CSE_id blank, cannot continue.'
|
13
13
|
return
|
14
14
|
end
|
15
15
|
|
16
|
-
if api_key.empty?
|
16
|
+
if api_key.to_s.empty?
|
17
17
|
puts 'api_key blank, cannot continue.'
|
18
18
|
return
|
19
19
|
end
|
20
20
|
|
21
|
-
if safe_search.empty?
|
21
|
+
if safe_search.to_s.empty?
|
22
22
|
puts 'safe_search blank, cannot continue.'
|
23
23
|
return
|
24
24
|
end
|