gull 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d5a3b5083957caf81e25c35ecc48c924b7a5205b
4
+ data.tar.gz: eff8557f99a7de3fdbf566360f3496e77ebf21e1
5
+ SHA512:
6
+ metadata.gz: ec1b9e5d0bbad689d5a7ad2ee2159b33709c37fa206c66489a3d9d810ee7b4332f5b43e683c9fda625ae02cb8299fd0d32056484f70890598df19c045d6745d0
7
+ data.tar.gz: d0482148cfbd4fe0ff5fc480cda34dcba5839e643caf62420704a037ea45990cb7b60773a27dc3fa92e28c5595485e689c2b724f13c7cd8f081810f0ee41f12d
@@ -0,0 +1,22 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.bundle
19
+ *.so
20
+ *.o
21
+ *.a
22
+ mkmf.log
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --require spec_helper
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in gull.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Seth Deckard
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,29 @@
1
+ # Gull
2
+
3
+ Client for parsing NOAA/NWS alerts, warnings, and watches. The name comes from the type of bird featured on the NOAA logo.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'gull'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install gull
18
+
19
+ ## Usage
20
+
21
+ Gull::Alert.fetch
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it ( https://github.com/sethdeckard/gull/fork )
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create a new Pull Request
@@ -0,0 +1,7 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new
5
+
6
+ task :default => :spec
7
+ task :test => :spec
@@ -0,0 +1,28 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'gull/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "gull"
8
+ spec.version = Gull::VERSION
9
+ spec.authors = ["Seth Deckard"]
10
+ spec.email = ["seth@deckard.me"]
11
+ spec.summary = %q{Client for parsing NOAA/NWS alerts, warnings, and watches.}
12
+ spec.description = %q{Client for parsing NOAA/NWS alerts, warnings, and watches.}
13
+ spec.homepage = "https://github.com/sethdeckard/gull"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.6"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "rspec"
24
+ spec.add_development_dependency "webmock"
25
+
26
+ spec.add_runtime_dependency "httpclient"
27
+ spec.add_runtime_dependency "nokogiri"
28
+ end
@@ -0,0 +1,6 @@
1
+ require "gull/version"
2
+ require "gull/alert"
3
+
4
+ module Gull
5
+ # Your code goes here...
6
+ end
@@ -0,0 +1,42 @@
1
+ require 'httpclient'
2
+ require 'nokogiri'
3
+
4
+ module Gull
5
+ class Alert
6
+ attr_accessor :id, :title, :summary, :alert_type, :polygon, :area, :effective_at, :expires_at,
7
+ :urgency, :severity, :certainty
8
+
9
+ def initialize(attributes = {})
10
+ end
11
+
12
+ def self.fetch
13
+ client = HTTPClient.new
14
+ response = client.get_content "http://alerts.weather.gov/cap/us.php?x=0"
15
+ doc = Nokogiri::XML response
16
+ entries = doc.xpath('//cap:event').collect {|e| e.parent }
17
+ self.process entries
18
+ end
19
+
20
+ def self.process entries
21
+ alerts = []
22
+ entries.each do |entry|
23
+ alert = Alert.new
24
+ alert.id = entry.css('id').inner_text
25
+ alert.alert_type = entry.xpath('cap:event').inner_text
26
+ alert.title = entry.css('title').inner_text
27
+ alert.summary = entry.css('summary').inner_text
28
+ alert.polygon = entry.xpath('cap:polygon').inner_text
29
+ alert.area = entry.xpath('cap:areaDesc').inner_text
30
+ alert.effective_at = Time.parse(entry.xpath('cap:effective').inner_text).utc
31
+ alert.expires_at = Time.parse(entry.xpath('cap:expires').inner_text).utc
32
+ alert.urgency = entry.xpath('cap:urgency').inner_text
33
+ alert.severity = entry.xpath('cap:severity').inner_text
34
+ alert.certainty = entry.xpath('cap:certainty').inner_text
35
+ alerts.push alert
36
+ end
37
+
38
+ alerts
39
+ end
40
+
41
+ end
42
+ end
@@ -0,0 +1,3 @@
1
+ module Gull
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,30 @@
1
+ require 'spec_helper'
2
+
3
+ describe Gull::Alert do
4
+ it "should fetch parsed alerts" do
5
+ xml = File.read "spec/alerts.xml"
6
+
7
+ stub_request(:get, "http://alerts.weather.gov/cap/us.php?x=0").
8
+ with(:headers => {'Accept'=>'*/*'}).
9
+ to_return(:status => 200, :body => xml, :headers => {})
10
+
11
+ alerts = Gull::Alert.fetch
12
+ expect(alerts.size).to eq(3)
13
+
14
+ first = alerts.first
15
+ expect(first.id).to eq "http://alerts.weather.gov/cap/wwacapget.php?x=CA125171381DD0.HeatAdvisory"
16
+ expect(first.alert_type).to eq "Heat Advisory"
17
+ expect(first.title).to eq "Heat Advisory issued October 01 at 8:40AM PDT until October 03 at 9:00PM PDT by NWS"
18
+ expect(first.summary).to eq "SUMMARY TEXT"
19
+
20
+ polygon = "27.35,-81.79 27.14,-81.89 27.04,-81.97 27.04,-82.02 27.14,-81.97 27.35,-81.86 27.35,-81.79"
21
+ expect(first.polygon).to eq polygon
22
+
23
+ expect(first.effective_at).to eq Time.parse("2014-10-01T08:40:00-07:00")
24
+ expect(first.expires_at).to eq Time.parse("2014-10-03T21:00:00-07:00")
25
+ expect(first.area).to eq "Southern Salinas Valley, Arroyo Seco and Lake San Antonio"
26
+ expect(first.urgency).to eq "Expected"
27
+ expect(first.severity).to eq "Minor"
28
+ expect(first.certainty).to eq "Likely"
29
+ end
30
+ end
@@ -0,0 +1,130 @@
1
+ <?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>
2
+
3
+ <!--
4
+ This atom/xml feed is an index to active advisories, watches and warnings
5
+ issued by the National Weather Service. This index file is not the complete
6
+ Common Alerting Protocol (CAP) alert message. To obtain the complete CAP
7
+ alert, please follow the links for each entry in this index. Also note the
8
+ CAP message uses a style sheet to convey the information in a human readable
9
+ format. Please view the source of the CAP message to see the complete data
10
+ set. Not all information in the CAP message is contained in this index of
11
+ active alerts.
12
+ -->
13
+
14
+ <feed
15
+ xmlns = 'http://www.w3.org/2005/Atom'
16
+ xmlns:cap = 'urn:oasis:names:tc:emergency:cap:1.1'
17
+ xmlns:ha = 'http://www.alerting.net/namespace/index_1.0'
18
+ >
19
+ <!-- http-date = Wed, 01 Oct 2014 04:05:00 GMT -->
20
+
21
+ <id>http://alerts.weather.gov/cap/us.atom</id>
22
+ <logo>http://alerts.weather.gov/images/xml_logo.gif</logo>
23
+ <generator>NWS CAP Server</generator>
24
+ <updated>2014-10-01T11:05:00-05:00</updated>
25
+ <author>
26
+ <name>w-nws.webmaster@noaa.gov</name>
27
+ </author>
28
+ <title>Current Watches, Warnings and Advisories for the United States Issued by the National Weather Service</title>
29
+ <link href='http://alerts.weather.gov/cap/us.atom'/>
30
+
31
+ <entry>
32
+ <id>http://alerts.weather.gov/cap/wwacapget.php?x=CA125171381DD0.HeatAdvisory</id>
33
+ <updated>2014-10-01T08:40:00-07:00</updated>
34
+ <published>2014-10-01T08:40:00-07:00</published>
35
+ <author>
36
+ <name>w-nws.webmaster@noaa.gov</name>
37
+ </author>
38
+ <title>Heat Advisory issued October 01 at 8:40AM PDT until October 03 at 9:00PM PDT by NWS</title>
39
+ <link href='http://alerts.weather.gov/cap/wwacapget.php?x=CA125171381DD0.HeatAdvisory.125171642740CA.MTRNPWMTR.64d60221994d798a87b4862623e0d63c'/>
40
+ <summary>SUMMARY TEXT</summary>
41
+ <cap:event>Heat Advisory</cap:event>
42
+ <cap:effective>2014-10-01T08:40:00-07:00</cap:effective>
43
+ <cap:expires>2014-10-03T21:00:00-07:00</cap:expires>
44
+ <cap:status>Actual</cap:status>
45
+ <cap:msgType>Alert</cap:msgType>
46
+ <cap:category>Met</cap:category>
47
+ <cap:urgency>Expected</cap:urgency>
48
+ <cap:severity>Minor</cap:severity>
49
+ <cap:certainty>Likely</cap:certainty>
50
+ <cap:areaDesc>Southern Salinas Valley, Arroyo Seco and Lake San Antonio</cap:areaDesc>
51
+ <cap:polygon>27.35,-81.79 27.14,-81.89 27.04,-81.97 27.04,-82.02 27.14,-81.97 27.35,-81.86 27.35,-81.79</cap:polygon>
52
+ <cap:geocode>
53
+ <valueName>FIPS6</valueName>
54
+ <value>006001 006013 006041 006053 006055 006069 006075 006081 006085 006087 006097</value>
55
+ <valueName>UGC</valueName>
56
+ <value>CAZ006 CAZ505 CAZ506 CAZ507 CAZ508 CAZ509 CAZ510 CAZ511 CAZ512 CAZ513 CAZ516 CAZ517 CAZ518 CAZ528 CAZ529 CAZ530</value>
57
+ </cap:geocode>
58
+ <cap:parameter>
59
+ <valueName>VTEC</valueName>
60
+ <value>/O.NEW.KMTR.HT.Y.0002.141002T1900Z-141004T0400Z/</value>
61
+ </cap:parameter>
62
+ </entry>
63
+
64
+
65
+ <entry>
66
+ <id>http://alerts.weather.gov/cap/wwacapget.php?x=CA125171381DD0.HeatAdvisory.125171642740CA.MTRNPWMTR.64d60221994d798a87b4862623e0d63c</id>
67
+ <updated>2014-10-01T08:40:00-07:00</updated>
68
+ <published>2014-10-01T08:40:00-07:00</published>
69
+ <author>
70
+ <name>w-nws.webmaster@noaa.gov</name>
71
+ </author>
72
+ <title>Heat Advisory issued October 01 at 8:40AM PDT until October 03 at 9:00PM PDT by NWS</title>
73
+ <link href='http://alerts.weather.gov/cap/wwacapget.php?x=CA125171381DD0.HeatAdvisory.125171642740CA.MTRNPWMTR.64d60221994d798a87b4862623e0d63c'/>
74
+ <summary>...VERY WARM WEATHER EXPECTED ACROSS OUR ENTIRE AREA STARTING ON THURSDAY... .A RIDGE OF HIGH PRESSURE COMBINED WITH OFFSHORE WINDS AND WARM TEMPERATURES WILL LEAD TO MUCH ABOVE NORMAL TEMPERATURES ACROSS OUR AREA.. ...HEAT ADVISORY IN EFFECT FROM NOON THURSDAY TO 9 PM PDT FRIDAY...</summary>
75
+ <cap:event>Flood Advisory</cap:event>
76
+ <cap:effective>2014-10-01T08:40:00-07:00</cap:effective>
77
+ <cap:expires>2014-10-03T21:00:00-07:00</cap:expires>
78
+ <cap:status>Actual</cap:status>
79
+ <cap:msgType>Alert</cap:msgType>
80
+ <cap:category>Met</cap:category>
81
+ <cap:urgency>Expected</cap:urgency>
82
+ <cap:severity>Minor</cap:severity>
83
+ <cap:certainty>Likely</cap:certainty>
84
+ <cap:areaDesc>Coastal North Bay Including Point Reyes National Seashore; East Bay Hills and the Diablo Range; East Bay Interior Valleys; Mountains Of San Benito County And Interior Monterey County Including Pinnacles National Monument; North Bay Interior Valleys; North Bay Mountains; Northern Monterey Bay; Northern Salinas Valley, Hollister Valley and Carmel Valley; San Francisco; San Francisco Bay Shoreline; San Fransisco Peninsula Coast; Santa Clara Valley Including San Jose; Santa Cruz Mountains; Santa Lucia Mountains and Los Padres National Forest; Southern Monterey Bay and Big Sur Coast; Southern Salinas Valley, Arroyo Seco and Lake San Antonio</cap:areaDesc>
85
+ <cap:polygon></cap:polygon>
86
+ <cap:geocode>
87
+ <valueName>FIPS6</valueName>
88
+ <value>006001 006013 006041 006053 006055 006069 006075 006081 006085 006087 006097</value>
89
+ <valueName>UGC</valueName>
90
+ <value>CAZ006 CAZ505 CAZ506 CAZ507 CAZ508 CAZ509 CAZ510 CAZ511 CAZ512 CAZ513 CAZ516 CAZ517 CAZ518 CAZ528 CAZ529 CAZ530</value>
91
+ </cap:geocode>
92
+ <cap:parameter>
93
+ <valueName>VTEC</valueName>
94
+ <value>/O.NEW.KMTR.HT.Y.0002.141002T1900Z-141004T0400Z/</value>
95
+ </cap:parameter>
96
+ </entry>
97
+
98
+ <entry>
99
+ <id>http://alerts.weather.gov/cap/wwacapget.php?x=CA125171381DD0.HeatAdvisory.125171642740CA.MTRNPWMTR.64d60221994d798a87b4862623e0d63c</id>
100
+ <updated>2014-10-01T08:40:00-07:00</updated>
101
+ <published>2014-10-01T08:40:00-07:00</published>
102
+ <author>
103
+ <name>w-nws.webmaster@noaa.gov</name>
104
+ </author>
105
+ <title>Heat Advisory issued October 01 at 8:40AM PDT until October 03 at 9:00PM PDT by NWS</title>
106
+ <link href='http://alerts.weather.gov/cap/wwacapget.php?x=CA125171381DD0.HeatAdvisory.125171642740CA.MTRNPWMTR.64d60221994d798a87b4862623e0d63c'/>
107
+ <summary>...VERY WARM WEATHER EXPECTED ACROSS OUR ENTIRE AREA STARTING ON THURSDAY... .A RIDGE OF HIGH PRESSURE COMBINED WITH OFFSHORE WINDS AND WARM TEMPERATURES WILL LEAD TO MUCH ABOVE NORMAL TEMPERATURES ACROSS OUR AREA.. ...HEAT ADVISORY IN EFFECT FROM NOON THURSDAY TO 9 PM PDT FRIDAY...</summary>
108
+ <cap:event>Tornado Warning</cap:event>
109
+ <cap:effective>2014-10-01T08:40:00-07:00</cap:effective>
110
+ <cap:expires>2014-10-03T21:00:00-07:00</cap:expires>
111
+ <cap:status>Actual</cap:status>
112
+ <cap:msgType>Alert</cap:msgType>
113
+ <cap:category>Met</cap:category>
114
+ <cap:urgency>Expected</cap:urgency>
115
+ <cap:severity>Minor</cap:severity>
116
+ <cap:certainty>Likely</cap:certainty>
117
+ <cap:areaDesc>Coastal North Bay Including Point Reyes National Seashore; East Bay Hills and the Diablo Range; East Bay Interior Valleys; Mountains Of San Benito County And Interior Monterey County Including Pinnacles National Monument; North Bay Interior Valleys; North Bay Mountains; Northern Monterey Bay; Northern Salinas Valley, Hollister Valley and Carmel Valley; San Francisco; San Francisco Bay Shoreline; San Fransisco Peninsula Coast; Santa Clara Valley Including San Jose; Santa Cruz Mountains; Santa Lucia Mountains and Los Padres National Forest; Southern Monterey Bay and Big Sur Coast; Southern Salinas Valley, Arroyo Seco and Lake San Antonio</cap:areaDesc>
118
+ <cap:polygon></cap:polygon>
119
+ <cap:geocode>
120
+ <valueName>FIPS6</valueName>
121
+ <value>006001 006013 006041 006053 006055 006069 006075 006081 006085 006087 006097</value>
122
+ <valueName>UGC</valueName>
123
+ <value>CAZ006 CAZ505 CAZ506 CAZ507 CAZ508 CAZ509 CAZ510 CAZ511 CAZ512 CAZ513 CAZ516 CAZ517 CAZ518 CAZ528 CAZ529 CAZ530</value>
124
+ </cap:geocode>
125
+ <cap:parameter>
126
+ <valueName>VTEC</valueName>
127
+ <value>/O.NEW.KMTR.HT.Y.0002.141002T1900Z-141004T0400Z/</value>
128
+ </cap:parameter>
129
+ </entry>
130
+ </feed>
@@ -0,0 +1,92 @@
1
+ require 'gull/alert'
2
+ require 'webmock/rspec'
3
+
4
+ # This file was generated by the `rspec --init` command. Conventionally, all
5
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
6
+ # The generated `.rspec` file contains `--require spec_helper` which will cause this
7
+ # file to always be loaded, without a need to explicitly require it in any files.
8
+ #
9
+ # Given that it is always loaded, you are encouraged to keep this file as
10
+ # light-weight as possible. Requiring heavyweight dependencies from this file
11
+ # will add to the boot time of your test suite on EVERY test run, even for an
12
+ # individual file that may not need all of that loaded. Instead, consider making
13
+ # a separate helper file that requires the additional dependencies and performs
14
+ # the additional setup, and require it from the spec files that actually need it.
15
+ #
16
+ # The `.rspec` file also contains a few flags that are not defaults but that
17
+ # users commonly want.
18
+ #
19
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
20
+ RSpec.configure do |config|
21
+ # rspec-expectations config goes here. You can use an alternate
22
+ # assertion/expectation library such as wrong or the stdlib/minitest
23
+ # assertions if you prefer.
24
+ config.expect_with :rspec do |expectations|
25
+ # This option will default to `true` in RSpec 4. It makes the `description`
26
+ # and `failure_message` of custom matchers include text for helper methods
27
+ # defined using `chain`, e.g.:
28
+ # be_bigger_than(2).and_smaller_than(4).description
29
+ # # => "be bigger than 2 and smaller than 4"
30
+ # ...rather than:
31
+ # # => "be bigger than 2"
32
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
33
+ end
34
+
35
+ # rspec-mocks config goes here. You can use an alternate test double
36
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
37
+ config.mock_with :rspec do |mocks|
38
+ # Prevents you from mocking or stubbing a method that does not exist on
39
+ # a real object. This is generally recommended, and will default to
40
+ # `true` in RSpec 4.
41
+ mocks.verify_partial_doubles = true
42
+ end
43
+
44
+ # The settings below are suggested to provide a good initial experience
45
+ # with RSpec, but feel free to customize to your heart's content.
46
+ =begin
47
+ # These two settings work together to allow you to limit a spec run
48
+ # to individual examples or groups you care about by tagging them with
49
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
50
+ # get run.
51
+ config.filter_run :focus
52
+ config.run_all_when_everything_filtered = true
53
+
54
+ # Limits the available syntax to the non-monkey patched syntax that is recommended.
55
+ # For more details, see:
56
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
57
+ # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
58
+ # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
59
+ config.disable_monkey_patching!
60
+
61
+ # This setting enables warnings. It's recommended, but in some cases may
62
+ # be too noisy due to issues in dependencies.
63
+ config.warnings = true
64
+
65
+ # Many RSpec users commonly either run the entire suite or an individual
66
+ # file, and it's useful to allow more verbose output when running an
67
+ # individual spec file.
68
+ if config.files_to_run.one?
69
+ # Use the documentation formatter for detailed output,
70
+ # unless a formatter has already been configured
71
+ # (e.g. via a command-line flag).
72
+ config.default_formatter = 'doc'
73
+ end
74
+
75
+ # Print the 10 slowest examples and example groups at the
76
+ # end of the spec run, to help surface which specs are running
77
+ # particularly slow.
78
+ config.profile_examples = 10
79
+
80
+ # Run specs in random order to surface order dependencies. If you find an
81
+ # order dependency and want to debug it, you can fix the order by providing
82
+ # the seed, which is printed after each run.
83
+ # --seed 1234
84
+ config.order = :random
85
+
86
+ # Seed global randomization in this process using the `--seed` CLI option.
87
+ # Setting this allows you to use `--seed` to deterministically reproduce
88
+ # test failures related to randomization by passing the same `--seed` value
89
+ # as the one that triggered the failure.
90
+ Kernel.srand config.seed
91
+ =end
92
+ end
metadata ADDED
@@ -0,0 +1,144 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gull
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Seth Deckard
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-10-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: webmock
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: httpclient
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: nokogiri
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: Client for parsing NOAA/NWS alerts, warnings, and watches.
98
+ email:
99
+ - seth@deckard.me
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - .gitignore
105
+ - .rspec
106
+ - Gemfile
107
+ - LICENSE.txt
108
+ - README.md
109
+ - Rakefile
110
+ - gull.gemspec
111
+ - lib/gull.rb
112
+ - lib/gull/alert.rb
113
+ - lib/gull/version.rb
114
+ - spec/alert_spec.rb
115
+ - spec/alerts.xml
116
+ - spec/spec_helper.rb
117
+ homepage: https://github.com/sethdeckard/gull
118
+ licenses:
119
+ - MIT
120
+ metadata: {}
121
+ post_install_message:
122
+ rdoc_options: []
123
+ require_paths:
124
+ - lib
125
+ required_ruby_version: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - '>='
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ required_rubygems_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - '>='
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ requirements: []
136
+ rubyforge_project:
137
+ rubygems_version: 2.2.2
138
+ signing_key:
139
+ specification_version: 4
140
+ summary: Client for parsing NOAA/NWS alerts, warnings, and watches.
141
+ test_files:
142
+ - spec/alert_spec.rb
143
+ - spec/alerts.xml
144
+ - spec/spec_helper.rb