cradlepoint 0.2.6 → 0.2.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dffd7b4208acdac3016f085b106532886df3bb3f
4
- data.tar.gz: ae4440195680a534e646110625de8c345ccb16c5
3
+ metadata.gz: 93a14fb8f40e8957a52d6267458043158859885f
4
+ data.tar.gz: 6c32c5acb18b436bd9a0fc8f6996a5ffc1acd04d
5
5
  SHA512:
6
- metadata.gz: 327306adeb73994f74803633169dd831e12de862b8ca7b84fab3b0fdb55ca68b489d26e25f80bb7a0f2624483b58612bbd1c9c5348c3b522ae90944fbba067e6
7
- data.tar.gz: e931b6f903bc6eebfc8cd8e01d4afbd41f84aff0b37fc358ba1614c1f75390a00d05737670e0d159f1ca1af0ea84019e4162922f8b613deb0b15ca214522ab23
6
+ metadata.gz: d27cd2b2e8c59833a6ec19fc03a7f78f7bff7da6db0af474728589ace5e40fb91fe4ff1415c4f8691dfadbe5c6df0b82a05c43519e9ce897c8f28d5bfee919c0
7
+ data.tar.gz: f66c94a10be91a4231d57da3e9aa376a2b4d015c4fbe45bf67b93a1dd412e9280e142bededa1bd0d8f514063fc8a98e1c4f31ddfa7b04a01d03abdd4818a6e32
data/lib/cradlepoint.rb CHANGED
@@ -47,6 +47,7 @@ module Cradlepoint
47
47
  def self.authenticate(username, password)
48
48
  self.username = username
49
49
  self.password = password
50
+ self.account = Cradlepoint::Account.new unless self.account
50
51
  true
51
52
  end
52
53
 
@@ -101,12 +101,12 @@ module Cradlepoint
101
101
 
102
102
  def lazy_load_configuration_manager_data
103
103
  self.ecm_configuration_manager_data = Cradlepoint.make_request(:get, build_url(rel_url_for_configuration_managers))
104
+ self.ecm_configuration_uri = self.ecm_configuration_manager_data[:configuration_manager]
104
105
  end
105
106
 
106
107
  def get_configuration_editor_data
107
108
  {
108
109
  account: '/api/v1' + Cradlepoint.account.rel_url_with_id,
109
- baseline: configuration_uri,
110
110
  firmware: firmware_uri,
111
111
  router: '/api/v1' + rel_url_with_id
112
112
  }
@@ -115,14 +115,14 @@ module Cradlepoint
115
115
  def assign_attributes_from_data
116
116
  return unless self.data and self.data.any?
117
117
 
118
- self.mac = self.data[:mac]
119
- self.name = self.data[:name]
120
- self.ip_address = self.data[:ip_address]
121
- self.config_status = self.data[:config_status]
122
- self.description = self.data[:description]
123
- self.full_product_name = self.data[:full_product_name]
124
- self.stream_usage_in = self.data[:stream_usage_in]
125
- self.stream_usage_out = self.data[:stream_usage_out]
118
+ self.mac = self.data[:mac]
119
+ self.name = self.data[:name]
120
+ self.ip_address = self.data[:ip_address]
121
+ self.config_status = self.data[:config_status]
122
+ self.description = self.data[:description]
123
+ self.full_product_name = self.data[:full_product_name]
124
+ self.stream_usage_in = self.data[:stream_usage_in]
125
+ self.stream_usage_out = self.data[:stream_usage_out]
126
126
  self.stream_usage_period = self.data[:stream_usage_period]
127
127
  end
128
128
 
@@ -1,3 +1,3 @@
1
1
  module Cradlepoint
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cradlepoint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - uceem
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-01 00:00:00.000000000 Z
11
+ date: 2013-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client