aemo 0.1.38 → 0.1.39

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84d2559cf84b74608ec7d85572c77d5aea970dce
4
- data.tar.gz: 8fcbb7595f40e5ee685f9afdd433e43e2a3b57a2
3
+ metadata.gz: 393bc9a0f07713e90556d7704bb2d129bc398e1d
4
+ data.tar.gz: 9d370f741128cc703d0f4f492508a6455203c5e3
5
5
  SHA512:
6
- metadata.gz: 5d35ba622abee7f1f459116677b57c907ba1857786513e2e8a5de2a5582253dc8a1b47444e47416e1d48d1220d9cd33d6ec99589d7603c581fd42b9dd17bab71
7
- data.tar.gz: 38bee1227ef22a7a2d85e00fa1147cee8803e35409e771093eb61ec36a4dab172ae54b143adb561309a467d5202975298d50fdc8828c3666015c4f621f03e154
6
+ metadata.gz: 40d6fc601b3f55f8c02cc4c9753e29e89e366ce4c9fd951bfd5708c1843286f064ffd5cbe24bec58bbdd8d95a4d006a2662943571e6c89501e9a9b0d8e6cc99b
7
+ data.tar.gz: 6e716d57f1ab10b2af33e7f70df066cba1142faa5d518cd6b27bb3280d03b3913b370532a1440dfc327f0c16b513accf1648f5d55af9c0983c626b7505a7e5c4
data/lib/aemo/market.rb CHANGED
@@ -64,7 +64,7 @@ module AEMO
64
64
 
65
65
  month = sprintf('%02d', month)
66
66
 
67
- response = get "/mms.GRAPHS/data/DATA#{year}#{month}_#{region}1.csv"
67
+ response = HTTParty.get("http://aemo.com.au/aemo/data/nem/priceanddemand/PRICE_AND_DEMAND_#{year}#{month}_#{region}1.csv")
68
68
  values = parse_response(response)
69
69
  values
70
70
  end
data/lib/aemo/version.rb CHANGED
@@ -22,7 +22,7 @@
22
22
  # @author Joel Courtney <euphemize@gmail.com>
23
23
  module AEMO
24
24
  # aemo version
25
- VERSION = '0.1.38'.freeze
25
+ VERSION = '0.1.39'.freeze
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.38
4
+ version: 0.1.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Courtney