diff --git a/google_search_results.gemspec b/google_search_results.gemspec index 8b0b8f2..b01fdea 100644 --- a/google_search_results.gemspec +++ b/google_search_results.gemspec @@ -11,10 +11,23 @@ Gem::Specification.new do |s| s.homepage = "https://github.com/serpapi/google-search-results-ruby" s.license = "MIT" s.required_ruby_version = '>= 1.9.2' + s.post_install_message = <<~MSG + + +----------------------------------------------------------+ + | DEPRECATION NOTICE | + +----------------------------------------------------------+ + | The `google_search_results` gem is deprecated. | + | Please switch to the `serpapi` gem instead: | + | | + | gem install serpapi | + | | + | See https://github.com/serpapi/serpapi-ruby | + +----------------------------------------------------------+ + + MSG s.add_development_dependency 'rake', '~> 13.0.1' s.add_development_dependency 'rspec', '~> 3.9' s.add_development_dependency 'yard', '~> 0.9.24' s.add_development_dependency 'rubocop', '~> 0.49.1' s.metadata["yard.run"] = "yri" end - diff --git a/lib/google_search_results.rb b/lib/google_search_results.rb index 8feedf0..6dbecbc 100644 --- a/lib/google_search_results.rb +++ b/lib/google_search_results.rb @@ -1,3 +1,5 @@ +warn "[DEPRECATION] The `google_search_results` gem is deprecated. Please use the `serpapi` gem instead. See https://github.com/serpapi/serpapi-ruby" + require_relative 'search/serp_api_search.rb' require_relative 'search/baidu_search.rb' require_relative 'search/bing_search.rb'