the_energy_detective 0.1.0 → 0.1.1
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/ted/ecc.rb +3 -2
- data/lib/ted/object_hash.rb +11 -0
- data/lib/ted/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e31b8b26c7325bd9c3b17378d9130c5dd3dd1ea3
|
4
|
+
data.tar.gz: d404cc3275af98ff26f9a98d5e3ffcb604db5ff0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c049d7fa482332b2493d524af2565d8b59bc771005cff7f690515a19f3966bb08926f28480ea0de7fcf104c8b493da74973b375d2a098df5f80413e24380cb99
|
7
|
+
data.tar.gz: 68a10989eca53e8976ab3669f43085216033617c9faee8621fef2359a9795f6fcb70a1c660e84fa50ba8b013e8ba8ef00f8340aa50d5856fc950672b5bf30dd4
|
data/lib/ted/ecc.rb
CHANGED
@@ -5,6 +5,7 @@ require 'net/http'
|
|
5
5
|
require 'nokogiri'
|
6
6
|
|
7
7
|
require 'ted/mtu'
|
8
|
+
require 'ted/object_hash'
|
8
9
|
require 'ted/spyder'
|
9
10
|
|
10
11
|
module TED
|
@@ -220,7 +221,7 @@ module TED
|
|
220
221
|
end
|
221
222
|
|
222
223
|
group_index = 1
|
223
|
-
@spyders =
|
224
|
+
@spyders = ObjectHash.new
|
224
225
|
xml.css("Spyder").each do |spyder_xml|
|
225
226
|
enabled = spyder_xml.at_css("Enabled").text == '1'
|
226
227
|
if !enabled
|
@@ -264,7 +265,7 @@ module TED
|
|
264
265
|
groups.each { |group| group.instance_variable_set(:@spyder, spyder) }
|
265
266
|
end
|
266
267
|
|
267
|
-
@mtus =
|
268
|
+
@mtus = ObjectHash.new
|
268
269
|
mtus.each { |mtu| @mtus[mtu.index] = @mtus[mtu.description] = mtu; mtu.spyders.freeze }
|
269
270
|
end
|
270
271
|
|
data/lib/ted/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: the_energy_detective
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
@@ -48,6 +48,7 @@ files:
|
|
48
48
|
- Rakefile
|
49
49
|
- lib/ted/ecc.rb
|
50
50
|
- lib/ted/mtu.rb
|
51
|
+
- lib/ted/object_hash.rb
|
51
52
|
- lib/ted/spyder.rb
|
52
53
|
- lib/ted/spyder/ct.rb
|
53
54
|
- lib/ted/spyder/group.rb
|