Skip to content

Commit

Permalink
Added debug logging for cse
Browse files Browse the repository at this point in the history
  • Loading branch information
onewheelskyward committed Jul 30, 2020
1 parent 15e703f commit 9db7f53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/onewheel-google.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def self.search(query, cse_id, api_key, safe_search, image = false)
}
end

puts "https://www.googleapis.com/customsearch/v1?#{uri.query}"
response = RestClient.get "https://www.googleapis.com/customsearch/v1?#{uri.query}"
JSON.parse response
end
Expand Down
4 changes: 2 additions & 2 deletions onewheel-google.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |spec|
spec.name = 'onewheel-google'
spec.version = '1.0.3'
spec.version = '1.0.4'
spec.authors = ['Andrew Kreps']
spec.email = ['andrew.kreps@gmail.com']
spec.description = 'An interface of Google Custom Search Engine for searching.'
Expand All @@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency 'addressable', '~> 2.4'

spec.add_development_dependency 'bundler', '~> 2'
spec.add_development_dependency 'rake', '~> 11'
spec.add_development_dependency 'rake', '~> 13'
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'simplecov', '~> 0'
spec.add_development_dependency 'coveralls', '~> 0'
Expand Down

0 comments on commit 9db7f53

Please sign in to comment.