simplificator-withings 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +3 -1
- data/lib/withings/connection.rb +1 -1
- data/simplificator-withings.gemspec +1 -1
- metadata +3 -3
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.
|
data/lib/withings/connection.rb
CHANGED
|
@@ -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('&')
|
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:
|
|
4
|
+
hash: 1
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 6
|
|
9
|
-
-
|
|
10
|
-
version: 0.6.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.6.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- pascalbetz
|