simplificator-withings 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -3,12 +3,14 @@
3
3
  This is a ruby implementation for the Withings API. Description of the API can be found here: http://www.withings.com/en/api
4
4
 
5
5
  == Versions ==
6
+ === 0.6.3 ===
7
+
8
+ Fixed escaping for parameters.
6
9
 
7
10
  === 0.6.2 ===
8
11
 
9
12
  Updated Readme and Gemspec
10
13
 
11
-
12
14
  === 0.6.0 ===
13
15
 
14
16
  OAuth implemented. This version is not compatible to previous releases.
@@ -66,7 +66,7 @@ class Withings::Connection
66
66
  def self.calculate_oauth_signature(method, url, params, oauth_token_secret)
67
67
  # oauth signing is picky with sorting (based on a digest)
68
68
  params = params.to_a.map() do |item|
69
- [item.first.to_s, item.last]
69
+ [item.first.to_s, CGI.escape(item.last.to_s)]
70
70
  end.sort
71
71
 
72
72
  param_string = params.map() {|key, value| "#{key}=#{value}"}.join('&')
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{simplificator-withings}
5
- s.version = "0.6.2"
5
+ s.version = "0.6.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["pascalbetz"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplificator-withings
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 2
10
- version: 0.6.2
9
+ - 3
10
+ version: 0.6.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - pascalbetz