Skip to content

Commit

Permalink
Update http dependency to ~> 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Jan 19, 2016
1 parent 9bc353f commit 8d379a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/twitter/streaming/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def request(method, uri, params)
before_request.call
authorization = Twitter::Headers.new(self, method, uri, params).oauth_auth_header.to_s
headers = default_headers.merge(:authorization => authorization)
request = HTTP::Request.new(method, uri + '?' + to_url_params(params), headers)
request = HTTP::Request.new(:verb => method, :uri => uri + '?' + to_url_params(params), :headers => headers)
response = Streaming::Response.new do |data|
if item = Streaming::MessageParser.parse(data) # rubocop:disable AssignmentInCondition
yield(item)
Expand Down
2 changes: 1 addition & 1 deletion twitter.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'buftok', '~> 0.2.0'
spec.add_dependency 'equalizer', '0.0.10'
spec.add_dependency 'faraday', '~> 0.9.0'
spec.add_dependency 'http', ['>= 0.4', '< 0.10']
spec.add_dependency 'http', '~> 1.0'
spec.add_dependency 'http_parser.rb', '~> 0.6.0'
spec.add_dependency 'json', '~> 1.8'
spec.add_dependency 'memoizable', '~> 0.4.0'
Expand Down

0 comments on commit 8d379a4

Please sign in to comment.