cradlepoint 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cradlepoint/router.rb +18 -1
- data/lib/cradlepoint/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 298f2d6373b22b0c235671b74e9901c121fd72ed
|
4
|
+
data.tar.gz: 4c5f924d6f5756c0de55bc394935592dc0d95438
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13dafc9d24541cd6c57878c469686be913d9c31ccac5a41e4ce77db6177380b95c0bd4e2f9315724e4622e080db22d7574d1ce6a6a30370ff49f01050238ee97
|
7
|
+
data.tar.gz: 853b391549de78ecb5e3ffa15db85e909dccb776e37d7b1f6ddac90539ccb8d9057fefbdbad384dd7ff8feefe3bdc49a3d4ca9c4af8930f9b67013b7086d907a
|
data/lib/cradlepoint/router.rb
CHANGED
@@ -4,7 +4,8 @@ module Cradlepoint
|
|
4
4
|
attr_accessor :id, :data, :ecm_firmware_uri, :ecm_configuration_uri,
|
5
5
|
:ecm_configuration_manager_uri, :ecm_configuration_manager_data,
|
6
6
|
:mac, :config_status, :description, :full_product_name, :ip_address,
|
7
|
-
:name, :stream_usage_in, :stream_usage_out, :stream_usage_period
|
7
|
+
:name, :stream_usage_in, :stream_usage_out, :stream_usage_period,
|
8
|
+
:group_name
|
8
9
|
|
9
10
|
def initialize(id = nil, options = {})
|
10
11
|
self.id = id
|
@@ -75,6 +76,22 @@ module Cradlepoint
|
|
75
76
|
self.ecm_configuration_uri
|
76
77
|
end
|
77
78
|
|
79
|
+
def group
|
80
|
+
get unless self.data and self.data.any?
|
81
|
+
return nil unless self.data[:group]
|
82
|
+
|
83
|
+
group_data = Cradlepoint.make_request(get, build_url(self.data[:group].split('/api/v1').last))
|
84
|
+
self.group_name = group_data[:name]
|
85
|
+
group_data
|
86
|
+
end
|
87
|
+
|
88
|
+
def group_list
|
89
|
+
get unless self.data and self.data.any?
|
90
|
+
return nil unless self.data[:group]
|
91
|
+
|
92
|
+
Cradlepoint.make_request(get, build_url(self.data[:group].split('/api/v1').last + '/routers'))
|
93
|
+
end
|
94
|
+
|
78
95
|
def lazy_load_router_data
|
79
96
|
get # Grab the data from the api.
|
80
97
|
self.ecm_firmware_uri = self.data[:actual_firmware]
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- uceem
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
132
|
version: '0'
|
133
133
|
requirements: []
|
134
134
|
rubyforge_project:
|
135
|
-
rubygems_version: 2.0.
|
135
|
+
rubygems_version: 2.0.3
|
136
136
|
signing_key:
|
137
137
|
specification_version: 4
|
138
138
|
summary: Cradlepoint ECM API gem
|