wits 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +3 -1
- data/lib/wits/client.rb +4 -1
- data/lib/wits/version.rb +1 -1
- data/wits.gemspec +1 -0
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9711ed017eb9121718b0aaea495bd265ec965883
|
4
|
+
data.tar.gz: 162b1f8c9a4fe7e3acc9f7bfd1b56800b97818f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac8206dc55fb0b77e7b7e6c4a6bf68f5175275aa3eb42a3609b468d00b63f301fc75ff8eee889d081a6d80482d1baf1e37ca114002836eb94fc5ea0489bb60fe
|
7
|
+
data.tar.gz: 7b08388c4ea72b3134b82b83e78751da3a7f50a62f1657e748d9145d3a4da1685f3f8bcf783201b3368b6e5b719587c2262bef9cfd17c665818e0f333b844148
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -196,4 +196,6 @@ Run `bundle exec rake spec` to manually launch specs.
|
|
196
196
|
|
197
197
|
## License
|
198
198
|
|
199
|
-
wits is Copyright (c) 2015 Gordon Chan and is released under the MIT License. It is free software, and may be redistributed under the terms specified in the LICENSE file.
|
199
|
+
wits is Copyright (c) 2015 Gordon Chan and is released under the MIT License. It is free software, and may be redistributed under the terms specified in the LICENSE file.
|
200
|
+
|
201
|
+
[![Analytics](https://ga-beacon.appspot.com/UA-70790190-2/wits/README.md?flat)](https://github.com/igrigorik/ga-beacon)
|
data/lib/wits/client.rb
CHANGED
@@ -21,7 +21,10 @@ module Wits
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def self.client
|
24
|
-
@client ||= Faraday.new(url: 'http://www.electricityinfo.co.nz')
|
24
|
+
@client ||= Faraday.new(url: 'http://www.electricityinfo.co.nz') do |connection|
|
25
|
+
connection.adapter Faraday.default_adapter
|
26
|
+
connection.use Faraday::Response::RaiseError
|
27
|
+
end
|
25
28
|
end
|
26
29
|
|
27
30
|
private
|
data/lib/wits/version.rb
CHANGED
data/wits.gemspec
CHANGED
@@ -37,4 +37,5 @@ Gem::Specification.new do |spec|
|
|
37
37
|
spec.add_development_dependency 'rubocop', '~> 0.29.1'
|
38
38
|
spec.add_development_dependency 'coveralls', '~> 0.8.0'
|
39
39
|
spec.add_development_dependency 'codeclimate-test-reporter', '~> 0.4.7'
|
40
|
+
spec.add_development_dependency 'tins', '~> 1.6.0'
|
40
41
|
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.1
|
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-
|
11
|
+
date: 2015-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -220,6 +220,20 @@ dependencies:
|
|
220
220
|
- - "~>"
|
221
221
|
- !ruby/object:Gem::Version
|
222
222
|
version: 0.4.7
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: tins
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - "~>"
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: 1.6.0
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - "~>"
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: 1.6.0
|
223
237
|
description: |-
|
224
238
|
A Ruby interface for WITS (Wholesale and
|
225
239
|
information trading system) to retrieve New Zealand electricity data.
|
@@ -263,7 +277,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
263
277
|
version: '0'
|
264
278
|
requirements: []
|
265
279
|
rubyforge_project:
|
266
|
-
rubygems_version: 2.4.
|
280
|
+
rubygems_version: 2.4.8
|
267
281
|
signing_key:
|
268
282
|
specification_version: 4
|
269
283
|
summary: Retrieves electricity data from WITS Free to Air
|