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 +4 -4
- data/lib/cradlepoint.rb +1 -0
- data/lib/cradlepoint/router.rb +9 -9
- data/lib/cradlepoint/version.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: 93a14fb8f40e8957a52d6267458043158859885f
|
|
4
|
+
data.tar.gz: 6c32c5acb18b436bd9a0fc8f6996a5ffc1acd04d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d27cd2b2e8c59833a6ec19fc03a7f78f7bff7da6db0af474728589ace5e40fb91fe4ff1415c4f8691dfadbe5c6df0b82a05c43519e9ce897c8f28d5bfee919c0
|
|
7
|
+
data.tar.gz: f66c94a10be91a4231d57da3e9aa376a2b4d015c4fbe45bf67b93a1dd412e9280e142bededa1bd0d8f514063fc8a98e1c4f31ddfa7b04a01d03abdd4818a6e32
|
data/lib/cradlepoint.rb
CHANGED
data/lib/cradlepoint/router.rb
CHANGED
|
@@ -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
|
|
119
|
-
self.name
|
|
120
|
-
self.ip_address
|
|
121
|
-
self.config_status
|
|
122
|
-
self.description
|
|
123
|
-
self.full_product_name
|
|
124
|
-
self.stream_usage_in
|
|
125
|
-
self.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
|
|
data/lib/cradlepoint/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2013-10-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|