device_cloud 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -60,6 +60,21 @@ module DeviceCloud
60
60
  yield self
61
61
  end
62
62
 
63
+ def config
64
+ {
65
+ username: username,
66
+ password: password,
67
+ root_url: root_url,
68
+ alert_notification_handler: @alert_notification_handler,
69
+ empty_alert_notification_handler: @empty_alert_notification_handler,
70
+ data_notification_handler: @data_notification_handler,
71
+ empty_data_notification_handler: @empty_data_notification_handler,
72
+ event_notification_handler: @event_notification_handler,
73
+ empty_event_notification_handler: @empty_event_notification_handler,
74
+ logger: logger
75
+ }.freeze
76
+ end
77
+
63
78
  # DeviceCloud url
64
79
  #
65
80
  # @return the DeviceCloud url or the default of 'https://my.idigi.com' if not set.
@@ -1,3 +1,3 @@
1
1
  module DeviceCloud
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/spec/version_spec.rb CHANGED
@@ -2,6 +2,6 @@ require 'spec_helper'
2
2
 
3
3
  describe 'DeviceCloud::VERSION' do
4
4
  it 'should be the correct version' do
5
- DeviceCloud::VERSION.should == '0.2.0'
5
+ DeviceCloud::VERSION.should == '0.2.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: device_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: