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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9711ed017eb9121718b0aaea495bd265ec965883
4
- data.tar.gz: 162b1f8c9a4fe7e3acc9f7bfd1b56800b97818f3
3
+ metadata.gz: 32370807e7d5a4d40fdd98a743a2ca07018e198f
4
+ data.tar.gz: e365779ce0fc43349d063d2c2dcfe186318f20ac
5
5
  SHA512:
6
- metadata.gz: ac8206dc55fb0b77e7b7e6c4a6bf68f5175275aa3eb42a3609b468d00b63f301fc75ff8eee889d081a6d80482d1baf1e37ca114002836eb94fc5ea0489bb60fe
7
- data.tar.gz: 7b08388c4ea72b3134b82b83e78751da3a7f50a62f1657e748d9145d3a4da1685f3f8bcf783201b3368b6e5b719587c2262bef9cfd17c665818e0f333b844148
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](http://electricityinfo.co.nz/) via a friendly Ruby interface.
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 and Rubinius equivalent. The specific Ruby versions we build and test on can be found at [TravisCI](https://travis-ci.org/gchan/wits).
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](http://electricityinfo.co.nz/comitFta/ftaPage.pricesMain) and [5 Minute Prices](http://electricityinfo.co.nz/comitFta/five_min_prices.main) for a given node and date.
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](http://electricityinfo.co.nz/comitFta/price_index.summary) and [Demand](http://electricityinfo.co.nz/comitFta/ftaPage.demand) information which could be retrieved and delivered through a client library. Pull Requests are welcome!
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: 'http://www.electricityinfo.co.nz') do |connection|
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
@@ -1,3 +1,3 @@
1
1
  module Wits
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
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.1
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: 2015-12-19 00:00:00.000000000 Z
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.4.8
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: