serpapi / google-search-results-ruby

Google Search Results via SERP API Ruby Gem
https://serpapi.com
MIT License
55 stars 9 forks source link

Other search engine (Bing, Ebay, etc..) classes are not loaded #7

Closed ZilvinasKucinskas closed 3 years ago

ZilvinasKucinskas commented 4 years ago

Script to reproduce

$ gem install google_search_results
$ irb
> require 'google_search_results'
> BingSearchResults
NameError (uninitialized constant BingSearchResults)

Problem

I think this is a good explanation on Rubygems Guides. I believe changing the structure of the /lib should be needed to fix the issue.

jvmvik commented 4 years ago

Thanks for reporting this. I'm working on a fix. ETA 24h It looked like that Ruby / Gem 2.6+ is affected..

ilyazub commented 3 years ago

This was fixed in d85bdc950007561fdd3b60fc51c723336dd9caa0. @jvmvik please correct me if I'm wrong.