odesk-api 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -122,7 +122,7 @@ module Odesk
122
122
 
123
123
  # get url with parameters for get requests
124
124
  def get_url_with_params(path, params)
125
- "#{path}?".concat(params.collect{|k,v| "#{k}=#{URI.encode(v.to_s)}"}.join("&"))
125
+ "#{path}?".concat(params.collect{|k,v| "#{k}=#{OAuth::Helper::escape(v.to_s)}"}.join("&"))
126
126
  end
127
127
 
128
128
  # Send request
@@ -145,7 +145,7 @@ module Odesk
145
145
 
146
146
  case method
147
147
  when :get
148
- url = get_url_with_params get_uri_with_format(uri), params.each { |k, v| params[k] = OAuth::Helper::escape(v) }
148
+ url = get_url_with_params get_uri_with_format(uri), params
149
149
  response = @access_token.get(url).body
150
150
  when :post, :put, :delete
151
151
  response = @access_token.post(get_uri_with_format(uri), params).body
@@ -13,6 +13,6 @@
13
13
 
14
14
  module Odesk # :nodoc:
15
15
  module Api
16
- VERSION = "0.1.4"
16
+ VERSION = "0.1.5"
17
17
  end
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: odesk-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-14 00:00:00.000000000 Z
12
+ date: 2014-08-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler