snotel 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +1 -0
- data/.travis.yml +5 -0
- data/README.md +2 -0
- data/Rakefile +6 -1
- data/lib/snotel.rb +1 -1
- data/lib/snotel/version.rb +1 -1
- data/snotel.gemspec +1 -0
- data/spec/daily_spec.rb +2 -0
- data/spec/hourly_spec.rb +2 -0
- data/spec/snotel_spec.rb +2 -0
- data/spec/spec_helper.rb +4 -0
- metadata +28 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b87b70d385650956a01ee977d77fd085b9403305
|
4
|
+
data.tar.gz: 03a9b0626736f3279fbc90270b120f2bf8d33138
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2af86f5412c179a4faac47cf6b102dd4d3bd0036e2b89b5da831110022343e8b5a0cc3368a459c422be5d564e6e7dce0ba637f5289302024fce42a87e869c6f
|
7
|
+
data.tar.gz: c24066c7c4418fd67086091f01e57a676f900b2f54c6f66bf65469f8ef0e15b1e53500ad1686c5662fc980337ee43cce903a14ae11ac369abe393e780044f287
|
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/README.md
CHANGED
data/Rakefile
CHANGED
data/lib/snotel.rb
CHANGED
@@ -20,7 +20,7 @@ module Snotel
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def self.hourly(token, readings = 24)
|
23
|
-
|
23
|
+
get_hourly_data(get_triplet_from_token(token), readings-1) # Subtract to account for delta.
|
24
24
|
end
|
25
25
|
|
26
26
|
def self.get_daily_data(triplet, readings)
|
data/lib/snotel/version.rb
CHANGED
data/snotel.gemspec
CHANGED
data/spec/daily_spec.rb
ADDED
data/spec/hourly_spec.rb
ADDED
data/spec/snotel_spec.rb
ADDED
data/spec/spec_helper.rb
ADDED
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.0
|
4
|
+
version: 0.1.0
|
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
|
+
date: 2014-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description: Ruby client for accessing SNOTEL station data for snowfall data. Supports
|
42
56
|
hourly and daily granularity.
|
43
57
|
email:
|
@@ -47,6 +61,8 @@ extensions: []
|
|
47
61
|
extra_rdoc_files: []
|
48
62
|
files:
|
49
63
|
- ".gitignore"
|
64
|
+
- ".rspec"
|
65
|
+
- ".travis.yml"
|
50
66
|
- Gemfile
|
51
67
|
- LICENSE.txt
|
52
68
|
- README.md
|
@@ -56,6 +72,10 @@ files:
|
|
56
72
|
- lib/snotel/tokens.rb
|
57
73
|
- lib/snotel/version.rb
|
58
74
|
- snotel.gemspec
|
75
|
+
- spec/daily_spec.rb
|
76
|
+
- spec/hourly_spec.rb
|
77
|
+
- spec/snotel_spec.rb
|
78
|
+
- spec/spec_helper.rb
|
59
79
|
homepage: https://github.com/firstchair-io/snotel
|
60
80
|
licenses:
|
61
81
|
- MIT
|
@@ -76,8 +96,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
96
|
version: '0'
|
77
97
|
requirements: []
|
78
98
|
rubyforge_project:
|
79
|
-
rubygems_version: 2.
|
99
|
+
rubygems_version: 2.4.2
|
80
100
|
signing_key:
|
81
101
|
specification_version: 4
|
82
102
|
summary: Ruby client for accessing SNOTEL station data.
|
83
|
-
test_files:
|
103
|
+
test_files:
|
104
|
+
- spec/daily_spec.rb
|
105
|
+
- spec/hourly_spec.rb
|
106
|
+
- spec/snotel_spec.rb
|
107
|
+
- spec/spec_helper.rb
|