noaaish 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/noaaish/translator.rb +2 -1
- data/lib/noaaish/version.rb +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: b219eb80bb3cede257057096772df054a922c20b
|
4
|
+
data.tar.gz: af8223664fe4fe6fc88b01ea69f963fc415a5224
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f66a68040a2862ad4efa6b4819aeb2191327e1d85f4ba48b2c2d0afc1710e71eaefbef4779b6f0e4a9eacf3664098df3196b5815ce54d8c4e84f643acae1c7e4
|
7
|
+
data.tar.gz: cd3128fd61b25183e661a27d82519b89f3a9eb1ef5dff72f6d61b39a4855266d8c89cc93b8f0667ea5e37e1335b0893edf3832048c5a8f6a4c3a6f5a27d1fba9
|
data/README.md
CHANGED
@@ -25,9 +25,9 @@ Or install it yourself as:
|
|
25
25
|
```
|
26
26
|
station_id = "720538-99999"
|
27
27
|
results = Noaaish.data_for(station_id, [2013, 2014])
|
28
|
-
# result[0] =
|
29
|
-
# result[1] =
|
30
|
-
|
28
|
+
# result[0] = an array of hashes containing all data points for 2013
|
29
|
+
# result[1] = an array of hashes containing all data points for 2014
|
30
|
+
```
|
31
31
|
|
32
32
|
## Contributing
|
33
33
|
|
data/lib/noaaish/translator.rb
CHANGED
@@ -4,7 +4,8 @@ require 'tempfile'
|
|
4
4
|
# Takes the terrible ISH data format and converts it into something "reasonable".
|
5
5
|
module Noaaish
|
6
6
|
class Translator
|
7
|
-
|
7
|
+
# Tail is to not print first line, which is header info
|
8
|
+
ISH_JAVA_COMMAND = 'java -cp %<exe_path>s ishJava < %<input>s | tail -n+2 > %<output>s'.freeze
|
8
9
|
|
9
10
|
def initialize(input, output=destination)
|
10
11
|
@input = input
|
data/lib/noaaish/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: noaaish
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Schneider
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|