simplificator-withings 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/withings/user.rb CHANGED
@@ -47,16 +47,16 @@ class Withings::User
47
47
  end
48
48
 
49
49
 
50
- def subscribe_notification(callback_url, description, *devices)
51
- connection.get_request('/notify', :action => :subscribe, :callbackurl => callback_url, :comment => description, :appli => devices_bitmask(*devices))
50
+ def subscribe_notification(callback_url, description, device = SCALE)
51
+ connection.get_request('/notify', :action => :subscribe, :callbackurl => callback_url, :comment => description, :appli => device)
52
52
  end
53
53
 
54
- def revoke_notification(callback_url, *devices)
55
- connection.get_request('/notify', :action => :revoke, :callbackurl => callback_url, :appli => devices_bitmask(*devices))
54
+ def revoke_notification(callback_url, device = SCALE)
55
+ connection.get_request('/notify', :action => :revoke, :callbackurl => callback_url, :appli => device)
56
56
  end
57
57
 
58
- def describe_notification(callback_url, *devices)
59
- response = connection.get_request('/notify', :action => :get, :callbackurl => callback_url, :appli => devices_bitmask(*devices))
58
+ def describe_notification(callback_url, device = SCALE)
59
+ response = connection.get_request('/notify', :action => :get, :callbackurl => callback_url, :appli => device)
60
60
  Withings::NotificationDescription.new(response.merge(:callbackurl => callback_url))
61
61
  end
62
62
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{simplificator-withings}
5
- s.version = "0.4.3"
5
+ s.version = "0.4.4"
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: 9
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 3
10
- version: 0.4.3
9
+ - 4
10
+ version: 0.4.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - pascalbetz