GitXplorerGitXplorer
c

noaa-alerts

public
8 stars
9 forks
4 issues

Commits

List of commits on branch master.
Unverified
a2a4852ce7ec6a1066d4fdd919ac3435ff16ba51

Update README.md

committed 11 years ago
Unverified
c7b37f9c2501aa614052d345c4dcf3181a2486e2

Refactor and add tests to Alert class

cckundo committed 12 years ago
Unverified
63a8be260ee7dfc0789acc3840c737f652622b3e

Bump to 0.1.3

cckundo committed 13 years ago
Unverified
62e1b02af0d323f9418dbd465e396091c0206d2b

Ensure alerts response has non-empty values.

cckundo committed 13 years ago
Unverified
68f2fd08b2c99749d77a77854705332ae17b4ac7

Bump to 0.1.2

cckundo committed 13 years ago
Unverified
7ebe82967750eec7986851892e795fe055ffe02e

Include url in alert attributes.

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