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 +4 -4
- data/LICENSE.txt +1 -1
- data/lib/snotel.rb +3 -1
- data/lib/snotel/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3c6be1becc6e6a263107969b1d219a0d8b37419
|
4
|
+
data.tar.gz: 3055ad882a142a9c8486daf098157a4726b619d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2e8d2e2b9e24d8383f217d46b213d1f22aaec6f1aee305cb056c56bbf35528905c63960f375334a95e511208a1d083a08e21dfc9d24ba9448f740ed6eb03b55
|
7
|
+
data.tar.gz: 360b2befeb4ac8d501e99ee755062dc54c03fd4c92db0e380cf3ad30a7bf6992647334ad3b0c1a368ebc197a053ac7606951a1c370939b148dac0e3a04e61a15
|
data/LICENSE.txt
CHANGED
data/lib/snotel.rb
CHANGED
@@ -52,7 +52,9 @@ module Snotel
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def self.parse_csv_data(keys, lines)
|
55
|
-
lines.map
|
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)
|
data/lib/snotel/version.rb
CHANGED
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.
|
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:
|
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.
|
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.
|