simplificator-withings 0.6.9 → 0.6.10
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.
- checksums.yaml +4 -4
- data/README.rdoc +4 -0
- data/lib/withings/connection.rb +1 -5
- data/lib/withings/measurement_group.rb +0 -1
- data/simplificator-withings.gemspec +1 -1
- data/test/helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de76ef3c93a7d3cd7d94630fb978d2e677e2c7e9
|
4
|
+
data.tar.gz: 30bc4cbd6703ec373bcc8817f18dabb476a940af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6ef5b20617a5b76dd20ef5002e4ecd10d2e30581d3b7ab56feda28aa2bbb2493514a567932d8263c4d63fae73ffa39f29b10a38b6806ba72916f4eb2d9feee9
|
7
|
+
data.tar.gz: c5d0fa9058955da7f29819b178c5579fbea84171825568fcc92741214e391909ca94de533160ffc7f6b336608f1704112b80c197285ba928d921101232eb7a4c
|
data/README.rdoc
CHANGED
@@ -4,6 +4,10 @@ This is a ruby implementation for the Withings API. Description of the API can b
|
|
4
4
|
|
5
5
|
== Versions ==
|
6
6
|
|
7
|
+
=== 0.6.10 ===
|
8
|
+
|
9
|
+
* Do not raise an exception on unknown types of measurement groups.
|
10
|
+
|
7
11
|
=== 0.6.9 ===
|
8
12
|
|
9
13
|
* Added support for activities (thanks to invernizzi)
|
data/lib/withings/connection.rb
CHANGED
@@ -25,11 +25,7 @@ class Withings::Connection
|
|
25
25
|
|
26
26
|
def get_request(path, params)
|
27
27
|
params.merge!({:userid => @user.user_id})
|
28
|
-
|
29
|
-
params.merge!({:oauth_signature => signature})
|
30
|
-
|
31
|
-
response = self.class.get(path, :query => params)
|
32
|
-
self.class.verify_response!(response, path, params)
|
28
|
+
self.class.get_request(path, @user.oauth_token, @user.oauth_token_secret, params)
|
33
29
|
end
|
34
30
|
|
35
31
|
protected
|
@@ -38,7 +38,6 @@ class Withings::MeasurementGroup
|
|
38
38
|
when TYPE_DIASTOLIC_BLOOD_PRESSURE then @diastolic_blood_pressure = value
|
39
39
|
when TYPE_SYSTOLIC_BLOOD_PRESSURE then @systolic_blood_pressure = value
|
40
40
|
when TYPE_HEART_PULSE then @heart_pulse = value
|
41
|
-
else raise "Unknown #{measure.inspect}"
|
42
41
|
end
|
43
42
|
end
|
44
43
|
end
|
@@ -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.
|
5
|
+
s.version = "0.6.10"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["simplificator", "jmaddi", 'invernizzi']
|
data/test/helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplificator-withings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- simplificator
|
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
version: '0'
|
98
98
|
requirements: []
|
99
99
|
rubyforge_project:
|
100
|
-
rubygems_version: 2.
|
100
|
+
rubygems_version: 2.2.2
|
101
101
|
signing_key:
|
102
102
|
specification_version: 3
|
103
103
|
summary: API implementation for withings.com
|