Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Commit

Permalink
Merge branch 'faraday-0.9' of https://github.com/technoweenie/tinder
Browse files Browse the repository at this point in the history
…into technoweenie-faraday-0.9

* 'faraday-0.9' of https://github.com/technoweenie/tinder:
  Add support for Faraday v0.9.0 (rc5)
  • Loading branch information
bryckbost committed Apr 9, 2014
2 parents 9f3331b + 73c3dfe commit f68b323
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions lib/tinder/connection.rb
@@ -1,11 +1,16 @@
# encoding: UTF-8
require 'faraday'
require 'faraday/request/multipart'
require 'faraday/response/raise_on_authentication_failure'
require 'faraday/response/remove_whitespace'
require 'faraday_middleware'
require 'json'
require 'uri'

class Faraday::RequestOptions
attr_accessor :preserve_raw
end

module Tinder
class Connection
HOST = 'campfirenow.com'
Expand Down
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Expand Up @@ -5,6 +5,8 @@
require 'tinder'
require 'fakeweb'

require 'faraday/adapter/test'

FakeWeb.allow_net_connect = false

def fixture(name)
Expand Down
4 changes: 2 additions & 2 deletions spec/tinder/connection_spec.rb
Expand Up @@ -82,7 +82,7 @@
end

connection = Tinder::Connection.new('test', :username => 'user', :password => 'pass', :ssl_verify => false)
connection.connection.ssl[:verify].should be == false
connection.connection.ssl.verify?.should be == false
end

it "should allow passing any ssl_options to Faraday" do
Expand All @@ -98,7 +98,7 @@
:ca_file => "/etc/ssl/custom"
}
)
connection.connection.ssl.should eql(:verify => false, :ca_path => "/usr/lib/ssl/certs", :ca_file => "/etc/ssl/custom")
connection.connection.ssl.to_hash.should eql(:verify => false, :ca_path => "/usr/lib/ssl/certs", :ca_file => "/etc/ssl/custom")
end
end
end
2 changes: 1 addition & 1 deletion tinder.gemspec
Expand Up @@ -4,7 +4,7 @@ require 'tinder/version'

Gem::Specification.new do |gem|
gem.add_dependency 'eventmachine', '~> 1.0'
gem.add_dependency 'faraday', '~> 0.8.9'
gem.add_dependency 'faraday', '~> 0.9.0.rc5'
gem.add_dependency 'faraday_middleware', '~> 0.9'
gem.add_dependency 'hashie', ['>= 1.0', '< 3']
gem.add_dependency 'json', '~> 1.8.0'
Expand Down

0 comments on commit f68b323

Please sign in to comment.