Skip to content

Commit 554bf84

Browse files
committed
fix dependency
1 parent 89cce53 commit 554bf84

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
33
gemspec
44

55
group :development, :production do
6-
gem 'faraday', '~> 2.0'
6+
gem 'faraday', '~> 2.13'
77
end
88

99
group :test, :development do

lib/serpapi.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Ruby client for SerpApi.com
22
# Scrape results for all major search engines from our fast, easy, and complete API.
33
module SerpApi
4-
# see serpapi/serpapi for implementation
4+
# see serpapi for implementation
55
end
66

77
# load faraday HTTP lib
88
require 'faraday'
99

10-
# load
10+
# load
1111
require 'json'
1212

1313
# implementation

serpapi.gemspec

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
12
if RUBY_VERSION < '2.1.0'
2-
load File.join(File.dirname(__FILE__), 'lib/serpapi')
3-
else
4-
require_relative 'lib/serpapi'
5-
end
3+
load File.join(File.dirname(__FILE__), 'lib/serpapi/version')
4+
else
5+
require_relative 'lib/serpapi/version'
6+
end
67

78
Gem::Specification.new do |s|
89
s.name = 'serpapi'
@@ -21,6 +22,9 @@ end
2122
s.license = 'MIT'
2223
s.required_ruby_version = '>= 1.9'
2324

25+
# faraday
26+
s.add_dependency 'faraday', '~> 2.13'
27+
2428
# s.add_development_dependency 'rake'
2529
# s.add_development_dependency 'rspec'
2630
# s.add_development_dependency 'yard'

0 commit comments

Comments
 (0)