gull 0.1.2 → 0.1.3

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: 792d49f4035818566097996e4db53f94b4024886
4
- data.tar.gz: 2050b304dffd2ba40568ce076866a8675226927e
3
+ metadata.gz: 0147732c542c8620378e64843ffff1b444346772
4
+ data.tar.gz: 61235e4b2279fa75942a0727d63edcc4e8429110
5
5
  SHA512:
6
- metadata.gz: a772bcaae595a1850073a1fab8e692e695104efeea7fccc2e10977d4a06fbcb58a3250978dc8d33496d8163ce2e309357a1422a054cdb6776c4e38e8b0a64218
7
- data.tar.gz: 1177871762889f9302bc2c19d892342c412b13970b315eaf776cf0402606cf8dca9eb8e7e863e7b1f9a7d841418a14be7608a77987547be7908456fa1aba68bd
6
+ metadata.gz: afd7eb7cb6e175c68a7d3f1c46ac518a76e77484714a2c62364f342f82a1ff1994ae40df2d0c4d3836e487e4aa01699964fe79a1ceec9343d1b63d77395e70f1
7
+ data.tar.gz: c0ff856a532d89033897d891068b22e4c4b9998ec3aa19b085db39f4727b814cad15a0202d2b0933a2a4b54ec05e7136963b3828cd2ddec53dd0ccc4c4566369
data/.travis.yml ADDED
@@ -0,0 +1,8 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 1.9.3
5
+ - jruby-19mode
6
+ - rbx-2
7
+
8
+ script: rspec spec
data/README.md CHANGED
@@ -1,3 +1,4 @@
1
+ [![Build Status](https://travis-ci.org/sethdeckard/gull.svg?branch=master)](https://travis-ci.org/sethdeckard/gull)
1
2
  # Gull
2
3
 
3
4
  Ruby client for parsing NOAA/NWS alerts, warnings, and watches. The name comes from the type of bird featured on the NOAA logo.
data/lib/gull.rb CHANGED
@@ -2,5 +2,4 @@ require "gull/version"
2
2
  require "gull/alert"
3
3
 
4
4
  module Gull
5
- # Your code goes here...
6
5
  end
data/lib/gull/alert.rb CHANGED
@@ -9,9 +9,8 @@ module Gull
9
9
  def self.fetch
10
10
  client = HTTPClient.new
11
11
  response = client.get_content "http://alerts.weather.gov/cap/us.php?x=0"
12
- doc = Nokogiri::XML response
13
- entries = doc.xpath('//cap:event').collect {|e| e.parent }
14
- self.process entries
12
+ document = Nokogiri::XML response
13
+ self.process document.css('feed/entry')
15
14
  end
16
15
 
17
16
  private
data/lib/gull/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gull
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gull
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Deckard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-01 00:00:00.000000000 Z
11
+ date: 2014-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -103,6 +103,7 @@ extra_rdoc_files: []
103
103
  files:
104
104
  - .gitignore
105
105
  - .rspec
106
+ - .travis.yml
106
107
  - Gemfile
107
108
  - LICENSE.txt
108
109
  - README.md