Permalink
Browse files

bump to 0.0.3 (supports sub-resource signing and correct signing of u…

…ris w/ ? in them)
  • Loading branch information...
1 parent 81a5528 commit f083d740f610fba52084cd80fb90249ec16d38d9 @ryan-allen committed Jun 5, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/best3.rb
View
@@ -1,9 +1,9 @@
-raise 'Best3 gem requires Ruby 1.9.2' unless RUBY_VERSION == '1.9.2'
+#raise 'Best3 gem requires Ruby 1.9.x' unless RUBY_VERSION.include? '1.9.'
%w(rubygems bundler/setup typhoeus nokogiri strscan ostruct digest/sha1 time openssl).each { |lib| require(lib) }
class Best3
- VERSION = '0.0.2'
+ VERSION = '0.0.3'
def initialize(*args)
@key, @secret = args
@@ -33,7 +33,7 @@ def call(request_method, uri, headers = {}, body = nil)
def YESTHISMETHODISCALLEDUNDERSCORE!(request_method, uri, headers, body = nil)
response = Typhoeus::Request.send(request_method.downcase, "#{@host}#{uri}", :headers => make_headers(request_method, uri, headers, body), :body => body)
- body = if response.headers_hash['Content-Type'] == 'text/xml'
+ body = if response.headers_hash['Content-Type'] == 'application/xml'
Nokogiri::XML(response.body) # wrap up xml
else
response.body # pass through everything else

0 comments on commit f083d74

Please sign in to comment.