snotel 0.1.0 → 0.1.1

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: b87b70d385650956a01ee977d77fd085b9403305
4
- data.tar.gz: 03a9b0626736f3279fbc90270b120f2bf8d33138
3
+ metadata.gz: d3c6be1becc6e6a263107969b1d219a0d8b37419
4
+ data.tar.gz: 3055ad882a142a9c8486daf098157a4726b619d1
5
5
  SHA512:
6
- metadata.gz: a2af86f5412c179a4faac47cf6b102dd4d3bd0036e2b89b5da831110022343e8b5a0cc3368a459c422be5d564e6e7dce0ba637f5289302024fce42a87e869c6f
7
- data.tar.gz: c24066c7c4418fd67086091f01e57a676f900b2f54c6f66bf65469f8ef0e15b1e53500ad1686c5662fc980337ee43cce903a14ae11ac369abe393e780044f287
6
+ metadata.gz: b2e8d2e2b9e24d8383f217d46b213d1f22aaec6f1aee305cb056c56bbf35528905c63960f375334a95e511208a1d083a08e21dfc9d24ba9448f740ed6eb03b55
7
+ data.tar.gz: 360b2befeb4ac8d501e99ee755062dc54c03fd4c92db0e380cf3ad30a7bf6992647334ad3b0c1a368ebc197a053ac7606951a1c370939b148dac0e3a04e61a15
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 John Otander
1
+ Copyright (c) 2014-2015 John Otander
2
2
 
3
3
  MIT License
4
4
 
@@ -52,7 +52,9 @@ module Snotel
52
52
  end
53
53
 
54
54
  def self.parse_csv_data(keys, lines)
55
- lines.map { |values| Hash[keys.zip(values)] }
55
+ lines.map do |values|
56
+ hash = Hash[keys.zip(values.map { |v| v || 0 })]
57
+ end
56
58
  end
57
59
 
58
60
  def self.build_uri(triplet, readings, granularity = :daily)
@@ -1,3 +1,3 @@
1
1
  module Snotel
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snotel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Otander
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-13 00:00:00.000000000 Z
11
+ date: 2015-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  version: '0'
97
97
  requirements: []
98
98
  rubyforge_project:
99
- rubygems_version: 2.4.2
99
+ rubygems_version: 2.4.6
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: Ruby client for accessing SNOTEL station data.