wits 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +4 -4
- data/lib/wits/client.rb +1 -1
- data/lib/wits/version.rb +1 -1
- data/wits.gemspec +1 -0
- metadata +17 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32370807e7d5a4d40fdd98a743a2ca07018e198f
|
4
|
+
data.tar.gz: e365779ce0fc43349d063d2c2dcfe186318f20ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 202af69d43140c38469a4fb1b661795793d084c505db61b03908d766be9f47890202ffe29f5e5627f58f909f29095a0d9255c07eaa070e6daf67e869f43c3bd4
|
7
|
+
data.tar.gz: 95c2d46b9c3a55377b1b3a2f4931d04819e4c5193db0c79d25095547ea1fc302390f2411e2e5b22443a2a888d750bd789425e393322ebf9318f0ca8a99a38b49
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
Unreleased
|
2
|
+
------
|
3
|
+
No changes
|
4
|
+
|
5
|
+
1.0.2 / 2016-09-23
|
6
|
+
------
|
7
|
+
* Use HTTPS on electricityinfo.co.nz - Andrew Pett
|
8
|
+
|
1
9
|
1.0.1 / 2015-12-18
|
2
10
|
------
|
3
11
|
* Fix issue with 400..600 responses not resulting in an Error being raised by Faraday. Resolved by using the `Faraday::Response::RaiseError` middleware.
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
[![Build Status](https://travis-ci.org/gchan/wits.svg?branch=master)](https://travis-ci.org/gchan/wits) [![Coverage Status](https://coveralls.io/repos/gchan/wits/badge.svg?branch=master)](https://coveralls.io/r/gchan/wits?branch=master) [![Code Climate](https://codeclimate.com/github/gchan/wits/badges/gpa.svg)](https://codeclimate.com/github/gchan/wits)
|
5
5
|
|
6
|
-
Retrieve electricity data from [WITS Free to air](
|
6
|
+
Retrieve electricity data from [WITS Free to air](https://electricityinfo.co.nz/) via a friendly Ruby interface.
|
7
7
|
|
8
8
|
WITS (Wholesale and information trading system) currently does not provide a public API but data can be retrieved through web forms and file downloads.
|
9
9
|
|
@@ -47,11 +47,11 @@ Or install it yourself as:
|
|
47
47
|
|
48
48
|
|
49
49
|
## Supported Ruby versions
|
50
|
-
wits supports MRI Ruby 1.9+ and the JRuby
|
50
|
+
wits supports MRI Ruby 1.9+ and the JRuby equivalent. The specific Ruby versions we build and test on can be found at [TravisCI](https://travis-ci.org/gchan/wits).
|
51
51
|
|
52
52
|
## Usage
|
53
53
|
|
54
|
-
wits can retrieve [Final/Interim Prices](
|
54
|
+
wits can retrieve [Final/Interim Prices](https://electricityinfo.co.nz/comitFta/ftaPage.pricesMain) and [5 Minute Prices](https://electricityinfo.co.nz/comitFta/five_min_prices.main) for a given node and date.
|
55
55
|
|
56
56
|
#### Final/Interim Prices
|
57
57
|
Half-hourly final/interim prices can be retrieved in the following ways:
|
@@ -174,7 +174,7 @@ The CSV files for five minute prices and average five minute prices are missing
|
|
174
174
|
|
175
175
|
## Possible Enhancements
|
176
176
|
|
177
|
-
WITS also provides [Price Index](
|
177
|
+
WITS also provides [Price Index](https://electricityinfo.co.nz/comitFta/price_index.summary) and [Demand](https://electricityinfo.co.nz/comitFta/ftaPage.demand) information which could be retrieved and delivered through a client library. Pull Requests are welcome!
|
178
178
|
|
179
179
|
## Development
|
180
180
|
|
data/lib/wits/client.rb
CHANGED
@@ -21,7 +21,7 @@ module Wits
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def self.client
|
24
|
-
@client ||= Faraday.new(url: '
|
24
|
+
@client ||= Faraday.new(url: 'https://www.electricityinfo.co.nz') do |connection|
|
25
25
|
connection.adapter Faraday.default_adapter
|
26
26
|
connection.use Faraday::Response::RaiseError
|
27
27
|
end
|
data/lib/wits/version.rb
CHANGED
data/wits.gemspec
CHANGED
@@ -38,4 +38,5 @@ Gem::Specification.new do |spec|
|
|
38
38
|
spec.add_development_dependency 'coveralls', '~> 0.8.0'
|
39
39
|
spec.add_development_dependency 'codeclimate-test-reporter', '~> 0.4.7'
|
40
40
|
spec.add_development_dependency 'tins', '~> 1.6.0'
|
41
|
+
spec.add_development_dependency 'listen', '~> 3.0.5'
|
41
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wits
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gordon Chan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -234,6 +234,20 @@ dependencies:
|
|
234
234
|
- - "~>"
|
235
235
|
- !ruby/object:Gem::Version
|
236
236
|
version: 1.6.0
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: listen
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - "~>"
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: 3.0.5
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - "~>"
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: 3.0.5
|
237
251
|
description: |-
|
238
252
|
A Ruby interface for WITS (Wholesale and
|
239
253
|
information trading system) to retrieve New Zealand electricity data.
|
@@ -277,9 +291,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
277
291
|
version: '0'
|
278
292
|
requirements: []
|
279
293
|
rubyforge_project:
|
280
|
-
rubygems_version: 2.
|
294
|
+
rubygems_version: 2.5.1
|
281
295
|
signing_key:
|
282
296
|
specification_version: 4
|
283
297
|
summary: Retrieves electricity data from WITS Free to Air
|
284
298
|
test_files: []
|
285
|
-
has_rdoc:
|