Skip to content

Commit

Permalink
Added :typhoeus_options to TyphoeusService; a hash added to the optio…
Browse files Browse the repository at this point in the history
…ns argument under that key will be passed to Typhoeus directly. (E.g. if you want to use the disable_ssl_peer_verification option.)
  • Loading branch information
arsduo committed Sep 10, 2010
1 parent 8ca6e6e commit 247e239
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions koala.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

Gem::Specification.new do |s|
s.name = %q{koala}
s.version = "0.9.0"
s.version = "0.8.0"

s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
s.authors = ["Alex Koppel, Chris Baclig, Rafi Jacoby, Context Optional"]
s.date = %q{2010-09-09}
s.date = %q{2010-09-10}
s.description = %q{Koala is a lightweight, flexible Ruby SDK for Facebook. It allows read/write access to the social graph via the Graph API and the older REST API, as well as support for realtime updates and OAuth and Facebook Connect authentication. Koala is fully tested and supports Net::HTTP and Typhoeus connections out of the box and can accept custom modules for other services.}
s.email = %q{alex@alexkoppel.com}
s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "lib/koala.rb", "lib/koala/graph_api.rb", "lib/koala/http_services.rb", "lib/koala/realtime_updates.rb", "lib/koala/rest_api.rb"]
Expand Down
3 changes: 2 additions & 1 deletion lib/koala/http_services.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def self.make_request(path, args, verb, options = {})
# if the verb isn't get or post, send it as a post argument
args.merge!({:method => verb}) && verb = "post" if verb != "get" && verb != "post"
server = options[:rest_api] ? Facebook::REST_SERVER : Facebook::GRAPH_SERVER
response = self.send(verb, "https://#{server}/#{path}", :params => args)
typhoeus_options = {:params => args}.merge(options[:typhoeus_options] || {})
response = self.send(verb, "https://#{server}/#{path}", typhoeus_options)
Koala::Response.new(response.code, response.body, response.headers_hash)
end
end # class_eval
Expand Down

0 comments on commit 247e239

Please sign in to comment.