onewheel-google 1.0.0 → 1.0.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/lib/onewheel-google.rb +4 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0de6d9eb1ac31174576f8b4de1f760f2564494cd
4
- data.tar.gz: a63f75fa7ffe35cbb3e640871ed0c848bf2e43f0
3
+ metadata.gz: e2859c22878a9f3c0f00d3048bf317bc5b6960ec
4
+ data.tar.gz: 7a08ac3edcd0b9ecb41a67a8d7fb583658464ff2
5
5
  SHA512:
6
- metadata.gz: d92a5549478513006479ecb5febb7ca97f8c2b60ea6e75e2f2ea62c41dfcd924adb21aee1fc5fe974800ec78a983684dfdda016219ab13d8fe3ac298d23cae05
7
- data.tar.gz: eb03283bfbbf5ec2411bd8c86de2092d2222d6f2745c8a3a4971bde5ef2ebc86f4d79f52ee6cdc94e58ce6e0f736fc7b2840d64c8e2f6415fbade9b866ab0105
6
+ metadata.gz: 6390659970b54c71aee9666d478d18d453b332d4cd96352e374f3b9046a3da0e6facde127fc227f0388257f1b1143dc4cfce36d4c2dfeefe58a141e96e452ae7
7
+ data.tar.gz: 9ed6adab178ab0fafb7fd48c414b39fc8d33c60c4ec8850531aa5d9b876d55f46fe9e5b8e14756ebde55c937866bff731aa486642b274661eaab2def6a647c08
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onewheel-google
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps