noaaish 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/README.md +12 -3
- data/lib/noaaish.rb +0 -1
- data/lib/noaaish/version.rb +1 -1
- data/noaaish.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d21d11e81cd686f346ad8dc630a6f9df8ca48ad7
|
4
|
+
data.tar.gz: 8b2957ff63e2e295abe7caccf29a4bba682fccea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f537ebede1452a4acb48c3b3e050fe237cddcc9a0875e59cdb282fb1ba159c0bb9d80f5f6f98ce494d66879c5946db647497a470a3e0d7612f872574ae8113a2
|
7
|
+
data.tar.gz: 190cdace5086eba162c1426b802fcf74216d9b46cce186c5018b2c75ae8feec34772717bce8ba75c1a449dba9b2cea9405561125c753078936a8a29af40ed9ea
|
data/README.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# Noaaish
|
2
2
|
|
3
|
-
|
3
|
+
Fetches historical weather data from NOAA's FTP server
|
4
|
+
|
5
|
+
Heavily influenced by https://github.com/stewartwatts/noaahist - but nowhere as cool yet.
|
6
|
+
|
7
|
+
No auto-finding of station ids yet
|
4
8
|
|
5
9
|
## Installation
|
6
10
|
|
@@ -18,11 +22,16 @@ Or install it yourself as:
|
|
18
22
|
|
19
23
|
## Usage
|
20
24
|
|
21
|
-
|
25
|
+
```
|
26
|
+
station_id = "720538-99999"
|
27
|
+
results = Noaaish.data_for(station_id, [2013, 2014])
|
28
|
+
# result[0] = a Tempfile holding a JSON representation of all 2013 data
|
29
|
+
# result[1] = a Tempfile holding a JSON representation of all 2014 data
|
30
|
+
``
|
22
31
|
|
23
32
|
## Contributing
|
24
33
|
|
25
|
-
1. Fork it ( http://github.com
|
34
|
+
1. Fork it ( http://github.com/cschneid/noaaish/fork )
|
26
35
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
36
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
37
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/noaaish.rb
CHANGED
data/lib/noaaish/version.rb
CHANGED
data/noaaish.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["cschneider@comverge.com"]
|
11
11
|
spec.summary = %q{Fetch ISH data from NOAA}
|
12
12
|
spec.description = %q{Fetch ISH data from NOAA}
|
13
|
-
spec.homepage = ""
|
13
|
+
spec.homepage = "http://www.github.com/cschneid/noaaish"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: noaaish
|
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
|
- Chris Schneider
|
@@ -107,7 +107,7 @@ files:
|
|
107
107
|
- spec/lib/noaaish/fetch_spec.rb
|
108
108
|
- spec/lib/noaaish/gunzip_spec.rb
|
109
109
|
- spec/spec_helper.rb
|
110
|
-
homepage:
|
110
|
+
homepage: http://www.github.com/cschneid/noaaish
|
111
111
|
licenses:
|
112
112
|
- MIT
|
113
113
|
metadata: {}
|