GitXplorerGitXplorer
c

noaa-alerts

public
8 stars
9 forks
4 issues

Commits

List of commits on branch master.
Unverified
f76c2c9e4626fb4ac687831f48a4d69dbcc8b021

Don't parse nil alerts.

cckundo committed 13 years ago
Unverified
10193a13aab460a765e7907cdd6df16462eaae23

Bump to 0.1.1

cckundo committed 13 years ago
Unverified
5cfffa383ad3fd56a3b2e809c964f0d277d1dc71

Add sent_at attribute to alerts

cckundo committed 13 years ago
Unverified
d5235a1f09e9c94bd073e08676ad269277968da5

Updated README

cckundo committed 13 years ago
Unverified
a980a661fe645f48c7640ea7b711c39d2f2e783b

Updated README

cckundo committed 13 years ago
Unverified
fa1ad507f2e3ff5885636953e0a3368ceda4c218

Bump to 0.1.0

cckundo committed 13 years ago

README

The README file for this repository.

Disclaimer

This library is not maintained. It may not work as expected.

noaa-alerts

A library for consuming and formatting NOAA National Weather Service alerts.

Installation

Add this line to your application's Gemfile:

gem 'noaa-alerts'

And then execute:

$ bundle

Or install it yourself as:

$ gem install noaa-alerts

Usage

Instantiate Noaa::Client with a two letter US state abbreviation. The result is an array of Noaa::Alert objects relevant attributes (description, event, severity, locations, etc).

require 'noaa-alerts'
noaa = Noaa::Client.new('ny')
alert = noaa.alerts[0]

puts alert.locations.join(', ')    # => 'Rockland, Westchester'
puts alert.description             # => 'THE NATIONAL WEATHER SERVICE IN UPTON NY HAS ISSUED A\n* SEVERE THUNDERSTORM WARNING FOR...'
puts alert.event                   # => 'Special Weather Statement'
...

Requirements

Ruby 1.9

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request