forecaster 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 95c34dc2a848deaba80e411a01e246237ed1f10a
4
- data.tar.gz: 5d7c4597a21d4c9b703495c654406cd7e8ff12f6
2
+ SHA256:
3
+ metadata.gz: 7261e7a88d0cd7feee83d06b99e62942c11378b03788569d192cdce12bc18d6f
4
+ data.tar.gz: e6638871a6850d57449ac6b281a77bb5c534c7729e25b845044102d5f6029242
5
5
  SHA512:
6
- metadata.gz: 04633f93c3228a300c0f88246cacb3a7a239b5e3d03da468531c89e41673d573675561a65a81b2f3307e2b01cb0d188f7fd7f2c18a91480fcc292891d18c57d1
7
- data.tar.gz: ced4bf158fc21603cc21854f41dc4894df3e2b207d12760eecdd4b5f7d235ae6865e75c7e54e4d7d863127031c631ee63a58a16c73b9da01a8b9bf340b5c0872
6
+ metadata.gz: 435b1930bf1ecbeb8748de9e1d6221125b75ed247c10f6e3f89cc91e077bf27ddd3eb18d172e6ad5c77113505621906517740f41155e9952c773b8129eeb9183
7
+ data.tar.gz: a4551910201b7a3d847b7988664fda22963dfe6e9e5e9327649ea33d2733a53f3c4e59fec3a55502aabaf8c7d5eeb23f9e1c5e1f92db9955c9aba881dc723bc9
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.1 (2018-07-26)
4
+
5
+ - Fix `format` error
6
+
3
7
  ## 1.0.0 (2018-03-31)
4
8
 
5
9
  - Colorize and refactor output
data/README.md CHANGED
@@ -7,8 +7,12 @@ Forecaster
7
7
  [![Code Coverage](https://codecov.io/gh/vinc/forecaster/branch/master/graph/badge.svg)](https://codecov.io/gh/vinc/forecaster)
8
8
  [![Gemnasium](https://img.shields.io/gemnasium/vinc/forecaster.svg)](https://gemnasium.com/github.com/vinc/forecaster)
9
9
 
10
- Ruby wrapper around `wgrib2` to read data directly from the Global Forecast
11
- System (GFS).
10
+ [Forecaster](https://github.com/vinc/forecaster) is a gem wrapping `wgrib2` to
11
+ fetch and read weather data directly from the Global Forecast System.
12
+
13
+ It comes with a library and a CLI allowing you to type commands like `forecast
14
+ for this afternoon in paris` in your terminal to get the latest weather
15
+ forecast.
12
16
 
13
17
  [![asciicast](https://asciinema.org/a/146117.png)](https://asciinema.org/a/146117)
14
18
 
@@ -16,27 +20,33 @@ System (GFS).
16
20
  Installation
17
21
  ------------
18
22
 
19
- $ gem install forecaster
23
+ ```bash
24
+ gem install forecaster
25
+ ```
20
26
 
21
27
  Alternatively you can build the gem from its repository:
22
28
 
23
- $ git clone git://github.com/vinc/forecaster.git
24
- $ cd forecaster
25
- $ gem build forecaster.gemspec
26
- $ gem install forecaster-0.1.1.gem
29
+ ```bash
30
+ git clone git://github.com/vinc/forecaster.git
31
+ cd forecaster
32
+ gem build forecaster.gemspec
33
+ gem install forecaster-1.0.0.gem
34
+ ```
27
35
 
28
36
  In both cases you need to make sure that you have `wgrib2` present in your
29
37
  system.
30
38
 
31
39
  To install the `wgrib2` from source:
32
40
 
33
- $ wget http://www.ftp.cpc.ncep.noaa.gov/wd51we/wgrib2/wgrib2.tgz
34
- $ tar -xzvf wgrib2.tgz
35
- $ cd grib2
36
- $ export CC=gcc
37
- $ export FC=gfortran
38
- $ make
39
- $ sudo cp wgrib2/wgrib2 /usr/local/bin/
41
+ ```bash
42
+ wget http://www.ftp.cpc.ncep.noaa.gov/wd51we/wgrib2/wgrib2.tgz
43
+ tar -xzvf wgrib2.tgz
44
+ cd grib2
45
+ export CC=gcc
46
+ export FC=gfortran
47
+ make
48
+ sudo cp wgrib2/wgrib2 /usr/local/bin/
49
+ ```
40
50
 
41
51
  Usage
42
52
  -----
@@ -230,8 +230,8 @@ module Forecaster
230
230
  putf("Temperature", temperature, "%.0f °C")
231
231
  putf("Wind", wind_speed, "%.1f m/s (%s)", optional: wdir)
232
232
  putf("Precipitation", precipitation, "%.1f mm")
233
- putf("Humidity", humidity, "%.0f %")
234
- putf("Cloud Cover", cloud_cover, "%.0f %")
233
+ putf("Humidity", humidity, "%.0f %%")
234
+ putf("Cloud Cover", cloud_cover, "%.0f %%")
235
235
  putf("Pressure", pressure, "%.0f hPa")
236
236
  end
237
237
 
@@ -1,4 +1,4 @@
1
1
  # Read data from the Global Forecast System
2
2
  module Forecaster
3
- VERSION = "1.0.0".freeze
3
+ VERSION = "1.0.1".freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forecaster
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Ollivier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-31 00:00:00.000000000 Z
11
+ date: 2018-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chronic
@@ -267,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
267
267
  version: '0'
268
268
  requirements: []
269
269
  rubyforge_project:
270
- rubygems_version: 2.6.11
270
+ rubygems_version: 2.7.6
271
271
  signing_key:
272
272
  specification_version: 4
273
273
  summary: Wrapper around wgrib2 to read data from the GFS