simplificator-withings 0.6.9 → 0.6.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 769a085bda5af732a5506f8cb9c85032dc9e9326
4
- data.tar.gz: 9b8b0634681dd0de06fb6de6def7c2fa795e0a5b
3
+ metadata.gz: de76ef3c93a7d3cd7d94630fb978d2e677e2c7e9
4
+ data.tar.gz: 30bc4cbd6703ec373bcc8817f18dabb476a940af
5
5
  SHA512:
6
- metadata.gz: 25ba63cfa4318fc0669f27d55ccc680d53c55b6678eff7abc1f6b012be48f70dbcc26be9ba2fbcc637f786f1ef9c7c3156ae04f00319f5d775e1832481c15f3b
7
- data.tar.gz: 5633a5deeff0741b06cc70920aaa5771b6c2250246bcff464351cb2251a74a8a5e15d75e706351e406783d3b2b1db4e4425bd28bec8485f5c3834530194f4af3
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)
@@ -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
- signature = Withings::Connection.sign(self.class.base_uri + path, params, @user.oauth_token, @user.oauth_token_secret)
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.9"
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
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'test/unit'
3
3
  require 'shoulda'
4
- require 'mocha'
4
+ require 'mocha/setup'
5
5
 
6
6
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
7
7
  $LOAD_PATH.unshift(File.dirname(__FILE__))
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.9
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.0.6
100
+ rubygems_version: 2.2.2
101
101
  signing_key:
102
102
  specification_version: 3
103
103
  summary: API implementation for withings.com