phl-covid-testing 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3f57b6e9beb3ae2e63137e3212e46824dc6e8fd95f079d051cb6d970a5a92abe
4
+ data.tar.gz: f70312878a1a3cf29730c542cf7497f3ee394eff7dbe7d1d1d5720f8f5dc469c
5
+ SHA512:
6
+ metadata.gz: 17069153b4dca495a39d56507d5d3d6df5a7f677c639f587169a1d99700fe8958505eefcf645a1bb457c08a6411ad0d28dc210c7bf14f41a54b092a4494a9ca0
7
+ data.tar.gz: 81813d73f9c8232bd7bf01f5aecac462f72317cc2daa6726280aa698cfeab240b683bf4794fb413fa5621ccb1a0577740f2aa2613bfe292c5cb5f3a2ddfaa0ee
@@ -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 bfirestone2339@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
@@ -0,0 +1,7 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in phl_covid_testing.gemspec
4
+ gem 'open-uri'
5
+ gem 'json'
6
+ gem 'pry'
7
+ gem 'colorize'
data/Gemfile.lock ADDED
@@ -0,0 +1,23 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ coderay (1.1.3)
5
+ colorize (0.8.1)
6
+ json (2.5.1)
7
+ method_source (1.0.0)
8
+ open-uri (0.1.0)
9
+ pry (0.13.1)
10
+ coderay (~> 1.1)
11
+ method_source (~> 1.0)
12
+
13
+ PLATFORMS
14
+ ruby
15
+
16
+ DEPENDENCIES
17
+ colorize
18
+ json
19
+ open-uri
20
+ pry
21
+
22
+ BUNDLED WITH
23
+ 2.0.1
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Brian Firestone
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,65 @@
1
+ # PHLCovidTesting
2
+
3
+ Find and view details about COVID-19 testing locations located in Philadelphia, PA. You can search by name, zip code, and access type (walk-up or drive-thru), or view a full list and get more information on that testing location.
4
+
5
+ ## Demo
6
+
7
+ [Click here to view a demo!](https://drive.google.com/file/d/1ZEUw4LmakPrCvUklisYHxCjJ122pbHTr/view?usp=sharing)
8
+
9
+ ## Installation
10
+
11
+ Add this line to your application's Gemfile:
12
+
13
+ ```ruby
14
+ gem 'phl_covid_testing'
15
+ ```
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install phl_covid_testing
24
+
25
+ ## Usage
26
+
27
+ There are several ways to search for testing locations (listed below). If the search returns multiple results, a numbered list of those locations is provided and the user will be prompted to enter a number to view a location's details, view all locations, go back to the main menu, or 'exit' to end the program.
28
+
29
+ ### **Search By Name**
30
+
31
+
32
+ If you know of a medical facility near you that may be testing for COVID-19, enter any portion of its name to view more details.
33
+
34
+ ### **Search By Zipcode**
35
+
36
+
37
+ Enter a zipcode within the city of Philadelphia to view all testing locations.
38
+
39
+ ### **Search By Access**
40
+
41
+
42
+ Enter 'walk' to view all testing locations offering walk-up services, and 'drive' to view all offering drive-thru services.
43
+
44
+ ### **View All**
45
+
46
+
47
+ Enter 'all' to view a list of all testing locations.
48
+
49
+ ## Development
50
+
51
+ 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.
52
+
53
+ 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).
54
+
55
+ ## Contributing
56
+
57
+ Bug reports and pull requests are welcome on GitHub at https://github.com/bfirestone23/phl_covid_testing. 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.
58
+
59
+ ## License
60
+
61
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
62
+
63
+ ## Code of Conduct
64
+
65
+ Everyone interacting in the PHLCovidTesting project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/phl_covid_testing/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "./lib/environment"
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/run ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "./lib/environment"
5
+
6
+ PHLCovidTesting::CLI.new.call
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,19 @@
1
+ require 'pry'
2
+ require 'colorize'
3
+ require 'open-uri'
4
+ require 'json'
5
+ require 'net/http'
6
+
7
+ require_relative "./concerns/Displayable"
8
+ require_relative "./concerns/Findable"
9
+ require_relative "./concerns/Inputable"
10
+
11
+ require_relative "./phl_covid_testing/version"
12
+ require_relative "./phl_covid_testing/cli"
13
+ require_relative "./phl_covid_testing/api"
14
+ require_relative "./phl_covid_testing/testing_location"
15
+
16
+
17
+ module PHLCovidTesting
18
+ class Error < StandardError; end
19
+ end
@@ -0,0 +1,13 @@
1
+ require 'rake'
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = 'phl-covid-testing'
5
+ s.version = '0.1.0'
6
+ s.licenses = ['MIT']
7
+ s.summary = "Command Line Application allowing users to search for COVID-19 testing locations in Philadelphia, PA."
8
+ s.authors = ["Brian Firestone"]
9
+ s.email = 'bfirestone2339@gmail.com'
10
+ s.files = FileList["bin/*", "lib/*", '[A-Z]*'].to_a
11
+ s.homepage = 'https://github.com/bfirestone23/phl-covid-testing'
12
+ s.metadata = { "source_code_uri" => "https://github.com/bfirestone23/phl-covid-testing" }
13
+ end
@@ -0,0 +1,46 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require_relative "lib/phl_covid_testing/version.rb"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "phl_covid_testing"
8
+ spec.version = PHLCovidTesting::VERSION
9
+ spec.authors = ["Brian Firestone"]
10
+ spec.email = ["bfirestone2339@gmail.com"]
11
+
12
+ spec.summary = "Offers several ways to search and view details of COVID-19 testing locations in Philadelphia, PA."
13
+ spec.homepage = "https://github.com/bfirestone23/phl_covid_testing"
14
+ spec.license = "MIT"
15
+
16
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
17
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
18
+ if spec.respond_to?(:metadata)
19
+ spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
20
+
21
+ spec.metadata["homepage_uri"] = spec.homepage
22
+ spec.metadata["source_code_uri"] = "https://github.com/bfirestone23/phl_covid_testing"
23
+ #spec.metadata["changelog_uri"] = "https://github.com/bfirestone23/phl_covid_testing"
24
+ else
25
+ raise "RubyGems 2.0 or newer is required to protect against " \
26
+ "public gem pushes."
27
+ end
28
+
29
+ # Specify which files should be added to the gem when it is released.
30
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
31
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
32
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
33
+ end
34
+ spec.bindir = "exe"
35
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
36
+ spec.require_paths = ["lib"]
37
+
38
+ spec.add_development_dependency "bundler", "~> 2.0"
39
+ spec.add_development_dependency "rake", "~> 10.0"
40
+ spec.add_development_dependency "rspec", "~> 3.0"
41
+ spec.add_development_dependency 'pry'
42
+ spec.add_dependency "colorize"
43
+ spec.add_dependency "open-uri"
44
+ spec.add_dependency "json"
45
+ spec.add_dependency "net/http"
46
+ end
metadata ADDED
@@ -0,0 +1,56 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: phl-covid-testing
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Brian Firestone
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-06-01 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email: bfirestone2339@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - CODE_OF_CONDUCT.md
20
+ - Gemfile
21
+ - Gemfile.lock
22
+ - LICENSE.txt
23
+ - README.md
24
+ - Rakefile
25
+ - bin/console
26
+ - bin/run
27
+ - bin/setup
28
+ - lib/environment.rb
29
+ - phl-covid-testing.gemspec
30
+ - phl_covid_testing.gemspec
31
+ homepage: https://github.com/bfirestone23/phl-covid-testing
32
+ licenses:
33
+ - MIT
34
+ metadata:
35
+ source_code_uri: https://github.com/bfirestone23/phl-covid-testing
36
+ post_install_message:
37
+ rdoc_options: []
38
+ require_paths:
39
+ - lib
40
+ required_ruby_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ required_rubygems_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ requirements: []
51
+ rubygems_version: 3.0.8
52
+ signing_key:
53
+ specification_version: 4
54
+ summary: Command Line Application allowing users to search for COVID-19 testing locations
55
+ in Philadelphia, PA.
56
+ test_files: []