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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6807e1bf053998c145c7f274f0f8fe553b9ddeaa
4
- data.tar.gz: 57141cecd357c26ffad7460136b93e51811bda83
3
+ metadata.gz: b219eb80bb3cede257057096772df054a922c20b
4
+ data.tar.gz: af8223664fe4fe6fc88b01ea69f963fc415a5224
5
5
  SHA512:
6
- metadata.gz: e7a504ea0cfd16e33bc21e86709481ec59f2c75d9d7f3cb557714591d08be9de0d94c5e15d6a9f14bc7d6ec50d344149133eb283645975df03317cd2e6cef04a
7
- data.tar.gz: c2bbad6afdbab31eae2bcdf25ff0f371556a68143e2b0b178cee4e16ce50c9452079431fbb5e9912da73d9a956543413d5b6d52e051dc0df10d625e1f295ed8a
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] = a Tempfile holding a JSON representation of all 2013 data
29
- # result[1] = a Tempfile holding a JSON representation of all 2014 data
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
 
@@ -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
- ISH_JAVA_COMMAND = 'java -cp %<exe_path>s ishJava < %<input>s > %<output>s'.freeze
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
@@ -1,3 +1,3 @@
1
1
  module Noaaish
2
- VERSION = "2.0.0"
2
+ VERSION = "2.1.0"
3
3
  end
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.0.0
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-16 00:00:00.000000000 Z
11
+ date: 2014-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler