cdc_notices 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/10.0 +2 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +6 -0
- data/bin/cdc-notices +5 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/cdc_notices.gemspec +40 -0
- data/lib/alert.rb +6 -0
- data/lib/cdc_notices/cli.rb +82 -0
- data/lib/cdc_notices/version.rb +3 -0
- data/lib/cdc_notices.rb +7 -0
- data/lib/notice.rb +109 -0
- data/lib/scrape_notice.rb +93 -0
- data/lib/warning.rb +4 -0
- data/lib/watch.rb +5 -0
- data/spec.md +6 -0
- metadata +150 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 575429fd133cea809f5b268dfb082cd2f4ec4ecb
|
4
|
+
data.tar.gz: 5b8b29a55400bd3d9feb423a8f28d7de94364e44
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d53220344d02d4054f6f36114a9fd1ed34907286882e6b4b65bcbc7b09efa092da79c1f436cbe0cfa9cbe98c43bb4efaed192d413c0a77bb865780edfb4f9d68
|
7
|
+
data.tar.gz: 39720f090092e3f31b1bbe591a70843e09d7e382d55dabbcfc3d88409e51ab2f0e6d4355858e7105f74da6c3dbb136f41522c4ff1dad15661aff78cd8d8cd66c
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at tahbristol@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 tahbristol
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# CdcNotices
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/cdc_notices`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'cdc_notices'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install cdc_notices
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/cdc_notices. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
+
|
data/Rakefile
ADDED
data/bin/cdc-notices
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "cdc_notices"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/cdc_notices.gemspec
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'cdc_notices/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "cdc_notices"
|
8
|
+
spec.version = CdcNotices::VERSION
|
9
|
+
spec.authors = ["tahbristol"]
|
10
|
+
spec.email = ["tahbristol@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = "gem for Flatiron. Desplays currrent infectious disease travel notices"#%q{TODO: Write a short summary, because Rubygems requires one.}
|
13
|
+
# spec.description = %q{TODO: Write a longer description or delete this line.}
|
14
|
+
#spec.homepage = "TODO: Put your gem's website or public repo URL here."
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
23
|
+
"public gem pushes."
|
24
|
+
end
|
25
|
+
|
26
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
27
|
+
f.match(%r{^(test|spec|features)/})
|
28
|
+
end
|
29
|
+
spec.bindir = "exe"
|
30
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
|
+
spec.require_paths = ["lib"]
|
32
|
+
|
33
|
+
spec.add_development_dependency "bundler", "~> 1.14"
|
34
|
+
spec.add_development_dependency "rake", "~> 12.0"
|
35
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
36
|
+
spec.add_development_dependency "nokogiri", "~> 1.7.1"
|
37
|
+
spec.add_development_dependency "rubysl-open-uri"
|
38
|
+
spec.add_development_dependency "launchy"
|
39
|
+
# spec.add_development_dependency "openssl", "~> 2.0.3"
|
40
|
+
end
|
data/lib/alert.rb
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
require_relative '../scrape_notice'
|
2
|
+
require_relative '../notice.rb'
|
3
|
+
require 'launchy'
|
4
|
+
class CdcNotices::CLI
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
def initialize
|
9
|
+
puts "Welcome to the CDC Notice Library."
|
10
|
+
site = Scraper.new("https://wwwnc.cdc.gov/travel/notices")
|
11
|
+
@notice = site.set_attributes
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
def call
|
16
|
+
|
17
|
+
input = ""
|
18
|
+
while input != "exit"
|
19
|
+
puts "What would you like to do?"
|
20
|
+
puts "Press help for a list of commands"
|
21
|
+
input = gets.strip
|
22
|
+
case input
|
23
|
+
when "help"
|
24
|
+
puts "*****************************"
|
25
|
+
puts "all: Display all notices"
|
26
|
+
puts "alerts: Display alerts only."
|
27
|
+
puts "warnings: Display warnings only."
|
28
|
+
puts "watches: Display watches only."
|
29
|
+
puts "readmore: open readmore in browser. 'readmore' press enter then enter the number corresponding to the notice you want"
|
30
|
+
puts "exit: exit the application"
|
31
|
+
puts "******************************"
|
32
|
+
when "all"
|
33
|
+
all_notices
|
34
|
+
when "alerts"
|
35
|
+
alert_notices
|
36
|
+
when "warnings"
|
37
|
+
warning_notices
|
38
|
+
when "watches"
|
39
|
+
watch_notices
|
40
|
+
when "readmore"
|
41
|
+
readmore
|
42
|
+
when "exit"
|
43
|
+
puts "Goodbye"
|
44
|
+
break
|
45
|
+
else
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
|
51
|
+
def readmore
|
52
|
+
puts "Which notice would you like to read?"
|
53
|
+
input = gets.strip
|
54
|
+
input = input.to_i - 1
|
55
|
+
Launchy.open("#{@notice.notices[input].readmore}")
|
56
|
+
|
57
|
+
|
58
|
+
end
|
59
|
+
|
60
|
+
def all_notices
|
61
|
+
@notice.display_notices
|
62
|
+
end
|
63
|
+
|
64
|
+
def alert_notices
|
65
|
+
@notice.display_alerts
|
66
|
+
end
|
67
|
+
|
68
|
+
def warning_notices
|
69
|
+
@notice.display_warnings
|
70
|
+
end
|
71
|
+
|
72
|
+
def watch_notices
|
73
|
+
@notice.display_watches
|
74
|
+
end
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
end
|
data/lib/cdc_notices.rb
ADDED
data/lib/notice.rb
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
require_relative 'scrape_notice.rb'
|
2
|
+
class Notice
|
3
|
+
|
4
|
+
attr_accessor :notice_date
|
5
|
+
|
6
|
+
def initialize
|
7
|
+
@notices = []
|
8
|
+
@alert_notices = []
|
9
|
+
@warning_notices = []
|
10
|
+
@watch_notices = []
|
11
|
+
end
|
12
|
+
|
13
|
+
def display_notices
|
14
|
+
if self.notices.empty?
|
15
|
+
puts "***************************"
|
16
|
+
puts "There are no current notices."
|
17
|
+
puts "***************************"
|
18
|
+
else
|
19
|
+
self.notices.each.with_index(1) do |notice,i|
|
20
|
+
puts "**************************"
|
21
|
+
puts "#{i}. #{notice.title}"
|
22
|
+
puts notice.summary
|
23
|
+
puts notice.readmore
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def display_alerts
|
29
|
+
if self.alerts.empty?
|
30
|
+
puts "***************************"
|
31
|
+
puts "There are no current alerts."
|
32
|
+
puts "***************************"
|
33
|
+
else
|
34
|
+
self.alerts.each.with_index(1) do |notice,i|
|
35
|
+
puts "**************************"
|
36
|
+
puts "#{i}. #{notice.title}"
|
37
|
+
puts notice.summary
|
38
|
+
puts notice.readmore
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def display_warnings
|
44
|
+
if self.warnings.empty?
|
45
|
+
puts "***************************"
|
46
|
+
puts "There are no current warnings."
|
47
|
+
puts "***************************"
|
48
|
+
else
|
49
|
+
self.warnings.each.with_index(1) do |notice,i|
|
50
|
+
puts "**************************"
|
51
|
+
puts "#{i}. #{notice.title}"
|
52
|
+
puts notice.summary
|
53
|
+
puts notice.readmore
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
def display_watches
|
59
|
+
if self.watches.empty?
|
60
|
+
puts "***************************"
|
61
|
+
puts "There are no current watches."
|
62
|
+
puts "***************************"
|
63
|
+
else
|
64
|
+
self.watches.each.with_index(1) do |notice,i|
|
65
|
+
puts "**************************"
|
66
|
+
puts "#{i}. #{notice.title}"
|
67
|
+
puts notice.summary
|
68
|
+
puts notice.readmore
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
def notices
|
76
|
+
@notices
|
77
|
+
end
|
78
|
+
|
79
|
+
def alerts
|
80
|
+
@alert_notices
|
81
|
+
end
|
82
|
+
|
83
|
+
def warnings
|
84
|
+
@warning_notices
|
85
|
+
end
|
86
|
+
|
87
|
+
def watches
|
88
|
+
@watch_notices
|
89
|
+
end
|
90
|
+
|
91
|
+
|
92
|
+
def add_alert(alert)
|
93
|
+
@notices << alert
|
94
|
+
@alert_notices << alert
|
95
|
+
end
|
96
|
+
|
97
|
+
def add_watch(watch)
|
98
|
+
@notices << watch
|
99
|
+
@watch_notices << watch
|
100
|
+
end
|
101
|
+
|
102
|
+
def add_warning(warning)
|
103
|
+
@notices << warning
|
104
|
+
@warning_notices << warning
|
105
|
+
end
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
require 'open-uri'
|
2
|
+
require 'nokogiri'
|
3
|
+
require 'openssl'
|
4
|
+
|
5
|
+
require_relative 'notice.rb'
|
6
|
+
require_relative 'alert.rb'
|
7
|
+
require_relative 'watch.rb'
|
8
|
+
require_relative 'warning.rb'
|
9
|
+
class Scraper
|
10
|
+
|
11
|
+
attr_accessor :url
|
12
|
+
|
13
|
+
def initialize(url)
|
14
|
+
@url = url
|
15
|
+
@notice = Notice.new
|
16
|
+
|
17
|
+
end
|
18
|
+
|
19
|
+
def get_page
|
20
|
+
html = open(@url, ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE)
|
21
|
+
doc = Nokogiri::HTML(html)
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
def set_attributes
|
26
|
+
array_alert = []
|
27
|
+
array_watch = []
|
28
|
+
array_warning = []
|
29
|
+
main_content = self.get_page.css('#contentArea')
|
30
|
+
|
31
|
+
notice_hash = {:alert => main_content.css('#alert'), :watch => main_content.css('#watch'), :warning => main_content.css('#warning')}
|
32
|
+
|
33
|
+
alerts = notice_hash[:alert].collect {|alert| alert.css('li')}
|
34
|
+
|
35
|
+
if alerts[0] != nil
|
36
|
+
alerts[0].each do |alert|
|
37
|
+
array_alert << alert
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
|
42
|
+
watches = notice_hash[:watch].collect {|watch| watch.css('li')}
|
43
|
+
if watches[0] != nil
|
44
|
+
watches[0].each do |watch|
|
45
|
+
array_watch << watch
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
warnings = notice_hash[:warning].collect {|warning| warning.css('li')}
|
50
|
+
if warnings[0] != nil
|
51
|
+
warnings[0].each do |warning|
|
52
|
+
array_warning << warning
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
array_alert.each do |alert|
|
57
|
+
new_alert = Alert.new
|
58
|
+
new_alert.title = alert.css('a:not(.readmore)').text
|
59
|
+
new_alert.summary = alert.css('span').text
|
60
|
+
new_alert.readmore = "#{@url.gsub(/\/travel\/notices/, "")}#{alert.css('a').attr('href').text}"
|
61
|
+
|
62
|
+
@notice.add_alert(new_alert)
|
63
|
+
end
|
64
|
+
|
65
|
+
array_watch.each do |watch|
|
66
|
+
new_watch = Watch.new
|
67
|
+
new_watch.title = watch.css('a:not(.readmore)').text
|
68
|
+
new_watch.summary = watch.css('span').text
|
69
|
+
new_watch.readmore = "#{@url.gsub(/\/travel\/notices/, "")}#{watch.css('a').attr('href').text}"
|
70
|
+
@notice.add_watch(new_watch)
|
71
|
+
end
|
72
|
+
|
73
|
+
array_warning.each do |warn|
|
74
|
+
new_warning = Warning.new
|
75
|
+
new_warning.title = warn.css('a:not(.readmore)').text
|
76
|
+
new_warning.summary = warn.css('span').text
|
77
|
+
new_warning.readmore = "#{@url.gsub(/\/travel\/notices/, "")}#{warn.css('a').attr('href').text}"
|
78
|
+
@notice.add_warning(new_warning)
|
79
|
+
end
|
80
|
+
|
81
|
+
@notice
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
end
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
end
|
data/lib/warning.rb
ADDED
data/lib/watch.rb
ADDED
data/spec.md
ADDED
metadata
ADDED
@@ -0,0 +1,150 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cdc_notices
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- tahbristol
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-04-28 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.14'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.14'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '12.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '12.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: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: nokogiri
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.7.1
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.7.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubysl-open-uri
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
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: launchy
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description:
|
98
|
+
email:
|
99
|
+
- tahbristol@gmail.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- ".rspec"
|
106
|
+
- ".travis.yml"
|
107
|
+
- '10.0'
|
108
|
+
- CODE_OF_CONDUCT.md
|
109
|
+
- Gemfile
|
110
|
+
- LICENSE.txt
|
111
|
+
- README.md
|
112
|
+
- Rakefile
|
113
|
+
- bin/cdc-notices
|
114
|
+
- bin/console
|
115
|
+
- bin/setup
|
116
|
+
- cdc_notices.gemspec
|
117
|
+
- lib/alert.rb
|
118
|
+
- lib/cdc_notices.rb
|
119
|
+
- lib/cdc_notices/cli.rb
|
120
|
+
- lib/cdc_notices/version.rb
|
121
|
+
- lib/notice.rb
|
122
|
+
- lib/scrape_notice.rb
|
123
|
+
- lib/warning.rb
|
124
|
+
- lib/watch.rb
|
125
|
+
- spec.md
|
126
|
+
homepage:
|
127
|
+
licenses:
|
128
|
+
- MIT
|
129
|
+
metadata: {}
|
130
|
+
post_install_message:
|
131
|
+
rdoc_options: []
|
132
|
+
require_paths:
|
133
|
+
- lib
|
134
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - ">="
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
144
|
+
requirements: []
|
145
|
+
rubyforge_project:
|
146
|
+
rubygems_version: 2.6.11
|
147
|
+
signing_key:
|
148
|
+
specification_version: 4
|
149
|
+
summary: gem for Flatiron. Desplays currrent infectious disease travel notices
|
150
|
+
test_files: []
|