googlebase 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,4 @@
1
+ * 0.1.3 - addded URI.escape around the built urls that are being requested
1
2
  * 0.1.2 - added raw_data option to post method
2
3
  * 0.1.1 - added post request method
3
4
  - refactored get to take a hash which will automatically be converted to a query string
@@ -69,7 +69,7 @@ module Google
69
69
  :raw_data => nil,
70
70
  }.merge(o)
71
71
  if options[:raw_data]
72
- url = URI.parse(url)
72
+ url = URI.parse(URI.escape(url))
73
73
  http = Net::HTTP.new(url.host, url.port)
74
74
  result = http.request_post(url.request_uri, options[:raw_data], @@connection.headers)
75
75
  result.body
@@ -87,7 +87,7 @@ module Google
87
87
  }.merge(o)
88
88
 
89
89
  url += hash_to_query_string(options[:query_hash], options[:qsi]) unless options[:query_hash].nil?
90
- url = URI.parse(url)
90
+ url = URI.parse(URI.escape(url))
91
91
  req = if method == 'post'
92
92
  Net::HTTP::Post.new(url.request_uri, @@connection.headers)
93
93
  else
@@ -2,7 +2,7 @@ module Google #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 2
5
+ TINY = 3
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: googlebase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ""
6
6
  authors:
7
7
  - John