aemo 0.1.10 → 0.1.11

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: 7e5dca5e647d59b2fa7563e7b9257410617d6cb6
4
- data.tar.gz: 11d88df6b88552ae83908a681433c0d9a8d7e6db
3
+ metadata.gz: 3e8f842eae00cc92fe68f5a38bb478a48a112d07
4
+ data.tar.gz: ddc608d09d54304316e9e2107efc592b235dcf7f
5
5
  SHA512:
6
- metadata.gz: e17ea11a78990c694687fc055c7c402d66603244e1f7b45b0d0de55845c1970f760319af511c4ad8c4234d86601e83b5e9dc5de26030748b297077073cbb7788
7
- data.tar.gz: 6a607b8d2e6716da21d7e1eef3ff5c8b680ebb81c3f9be49f19ab0549680951884452bcaab66ccc8b147ee35d9ce194ac50d7ce1fa91bdb881bccda3b8d311f6
6
+ metadata.gz: 666b3927db821d0b7bdb2bd2a8a44eb0ce6bd358cfd698d4cf8231c9d64940f16f9e62e291715f4f47ee73b65fda8707a5557c637db1caa3b2066177ee14e20c
7
+ data.tar.gz: 6f1bf2c2227205207119a154dd879bee112a107693609cd5523572f2f3a1b1f210836c39a3dd78220256adba49751bf21d75af58c7c62d07136eeebf28befbc2
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'aemo'
6
- s.version = '0.1.10'
6
+ s.version = '0.1.11'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.date = '2015-02-26'
9
9
  s.summary = 'AEMO Gem'
@@ -584,8 +584,7 @@ module AEMO
584
584
  #
585
585
  # @return [Integer] the current daily load for the meter
586
586
  def current_daily_load
587
- active_data_streams = data_streams_by_status()
588
- current_daily_load = 0 + data_streams_by_status.map{|x| x.averaged_daily_load.to_i }.reduce(:+)
587
+ data_streams_by_status().inject(0) { |sum, stream| sum += stream.averaged_daily_load.to_i }
589
588
  end
590
589
 
591
590
  # A function to validate the NMI provided
@@ -22,7 +22,7 @@
22
22
  # @author Joel Courtney <euphemize@gmail.com>
23
23
  module AEMO
24
24
  # aemo version
25
- VERSION = '0.1.10'
25
+ VERSION = '0.1.11'
26
26
 
27
27
  # aemo version split amongst different revisions
28
28
  MAJOR_VERSION, MINOR_VERSION, REVISION = VERSION.split('.').map(&:to_i)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aemo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Courtney