UrgentcareCLI 0.1.0 → 0.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81add6e9dc74720ae8da85002dfd13eaaa9fa68a7e9f377c66f1e1704f6c0702
4
- data.tar.gz: 40eec143b8cc9275e28e0228325a7d1760ebb1b59156ac75ea23af64ab93171f
3
+ metadata.gz: a14a0119b6b23342e667a36ec24f7fa392101ccd0bf4c0301c559fd47f596a13
4
+ data.tar.gz: 6e0de22214194db170cdf8a1380edd1843da5dbc3e0f6aff7539cd508a79bba2
5
5
  SHA512:
6
- metadata.gz: 832d3f1947b47f0c3774f8838f5fb9472e6ced50b1f2b66618d087872f1dacf080331cd4b538ec7ff5c3e5f4927a8b5484b48465c986e37458a6bc863ddb7312
7
- data.tar.gz: de6668874de46c92aed884cd5ff063a6c7dc00ee9f591bdb499fb3c360fecd3877f89f04207f0f7d95bbb59868f6f6eeb17a3fca3347ff97a62af9c2b0119190
6
+ metadata.gz: db7f73326afa9d948ffd554379bb90334c20fc622f42ad629746a9eafe8bb4477a8fea4c0946084ed27b4e6b932de84e72805f26b4557fcdda8f5e5e93d5e238
7
+ data.tar.gz: ae6275370f573733cc5892d925062490be2ad4d1632681a35e87794f4b5fe5c7bc7ef497718dd0562b4489b1fc8abdad5f461f2a3d4f35c951b65b34551931c7
@@ -1,52 +1,82 @@
1
+ require_relative "./Office"
2
+ require_relative "./Scraper"
3
+
1
4
  class Urgentcare::CLI
5
+ #dependency injection to make code more testable
6
+ #remove strict dependency on other classes
7
+
8
+ def initialize(scraper: Urgentcare::Scraper.new, offices: Urgentcare::Office.all)
9
+ @scraper = scraper
10
+ @offices = offices
11
+ end
2
12
 
3
13
  def call
4
14
  welcome
5
15
  end
6
16
 
7
17
  def welcome
8
-
18
+ #puts displays with a new line
19
+ puts " "
20
+ puts " "
9
21
  puts "Welcome to the Urgent Care CLI"
10
22
  puts " "
11
23
  puts " "
24
+ puts " "
25
+ loading_message
26
+ office_list
27
+ end
28
+
29
+ def office_list
30
+ @scraper.get_office_list
12
31
  puts "Please choose a number from the following list for details on
13
32
  an Urgent Care location."
14
- puts " "
15
-
16
- Urgentcare::Scraper.new.get_clinics
17
- @clinics = Urgentcare::Office.all
18
- @clinics.each_with_index do |office, i|
33
+ puts " "
34
+ @offices.each_with_index do |office, i|
19
35
  puts "#{i + 1}. #{office.name}"
20
36
  end
21
37
  list
22
38
  end
23
39
 
24
40
  def list
25
- puts " "
26
- location = gets.chomp
41
+ puts " "
42
+ location = $stdin.gets.chomp
27
43
  if location == "Exit" ||location == "exit"
28
44
  puts "Thank you and Goodbye!"
29
- else
30
- @index = location.to_i - 1
45
+ elsif location != "Exit" || location != "exit"
46
+ location = location.to_i
47
+ $index = location - 1
48
+ loading_message
49
+ @scraper.get_clinic_site
31
50
  office_details
51
+ else
52
+ puts "Invalid response"
32
53
  end
33
54
  end
34
55
 
35
56
  def office_details
36
- the_office = Urgentcare::Office.all
37
- if @index != "Exit" ||@index != "exit"
57
+ if $index != "Exit" || $index != "exit"
38
58
  puts " "
39
- puts "Office Name: #{the_office[@index].name}"
40
- puts "Office Number: #{the_office[@index].phone_number}"
41
- puts "Office URL: https://www.www.carewellurgentcare.com#{the_office[@index].url}"
42
- puts "Next Available Time: #{the_office[@index].next_available}"
43
59
  puts " "
60
+ puts " "
61
+ puts "---"
62
+ puts "Office Name: #{@offices[$index].name}"
63
+ puts "Office Number: #{@offices[$index].phone_number}"
64
+ puts "Office URL: #{@offices[$index].url}"
65
+ puts "Office Next Available Appointment: #{@offices[$index].next_available}"
66
+ puts "---"
67
+ puts " "
68
+ puts " "
69
+ puts " "
70
+
44
71
  else
45
72
  puts "No results found. Please try again."
46
73
  end
74
+ puts " "
75
+ puts " "
76
+ puts " "
47
77
  puts "Would you like to select another office from the list?"
48
78
  puts " "
49
- @clinics.each_with_index do |office, i|
79
+ @offices.each_with_index do |office, i|
50
80
  puts "#{i + 1}. #{office.name}"
51
81
  end
52
82
  puts " "
@@ -54,4 +84,13 @@ class Urgentcare::CLI
54
84
  puts " "
55
85
  list
56
86
  end
87
+
88
+ def loading_message
89
+ puts " "
90
+ puts "Retrieving data...."
91
+ puts "Loading......"
92
+ puts "............."
93
+ puts " "
94
+ end
95
+
57
96
  end
@@ -9,15 +9,11 @@ class Urgentcare::Office
9
9
  @url = url
10
10
  @next_available = next_available
11
11
  @phone_number = phone_number
12
- @@all << self
12
+ self.class.all << self #the class of this instance. abstracted away use of variable.
13
13
  end
14
14
 
15
15
  def self.all
16
16
  @@all
17
17
  end
18
18
 
19
- def self.clear
20
- @@all.clear
21
- end
22
-
23
19
  end
@@ -0,0 +1,78 @@
1
+ class Urgentcare::Scraper
2
+
3
+ def initialize(office = Urgentcare::Office, scraper: Urgentcare::Scraper)
4
+ @office = office
5
+ @scraper = scraper
6
+ end
7
+
8
+ def self.send_cmd(driver, cmd, params={}) #method by Hernando Torres- Rocca
9
+ bridge = driver.send(:bridge)
10
+ resource = "session/#{bridge.session_id}/chromium/send_command_and_get_result"
11
+ response = bridge.http.call(:post, resource, {'cmd':cmd, 'params': params})
12
+ raise response[:value] if response[:status]
13
+ return response[:value]
14
+ end
15
+
16
+ @@client = Selenium::WebDriver::Remote::Http::Default.new #class variable
17
+ @@client.read_timeout = 3000 # seconds – default is 60
18
+
19
+ @@browser = Watir::Browser.new :chrome, headless: true, http_client: @@client
20
+ send_cmd(@@browser.driver, "Network.setBlockedURLs", {'urls': ["*careuc.netmng.com*"]}) #url pending when page loads
21
+ send_cmd(@@browser.driver, "Network.enable")
22
+
23
+ @@clinic_page = @@browser.goto('https://www.carewellurgentcare.com/centers/')
24
+
25
+ @@url = []
26
+
27
+ def get_page # page that lists all clinics
28
+ doc = @@browser.div(id: 'et-main-area').wait_until(&:present?)
29
+ inner = Nokogiri::HTML(doc.inner_html) #return value of the method
30
+ end
31
+
32
+ def get_office_list #called first in CLI
33
+ @new_page = get_page.css('.centers-list')
34
+ office_url
35
+ end
36
+
37
+ def office_url
38
+ @new_page.each do |office_details| #does not create additional objects. returns original object
39
+ if office_details.css('a').length > 3
40
+ @@url << office_details.css('a')[3][name="href"]
41
+ else
42
+ @@url << office_details.css('a')[2][name="href"]
43
+ end
44
+ @off = @office.new
45
+ make_office(office_details)
46
+ end
47
+ end
48
+
49
+ def get_clinic_site
50
+ @@browser.goto(@@url[$index])
51
+ @js_doc = @@browser.iframe.wait_until(&:present?)
52
+ get_appttime_date
53
+ end
54
+
55
+ def make_office(office_details)
56
+ @off.name = office_details.css('h2').text
57
+ if office_details.css('a').length > 3
58
+ @off.url = office_details.css('a')[3][name="href"]
59
+ else
60
+ @off.url = office_details.css('a')[2][name="href"]
61
+ end
62
+ @off.phone_number = office_details.css('a[href]').text.gsub("Get DirectionsBook Urgent Care Appointment", " ")
63
+ end
64
+
65
+ def get_appttime_date #retrieve waittime and add to new office model
66
+ sleep(1);
67
+ iframe_info = Nokogiri::HTML(@js_doc.html)
68
+ if iframe_info.css('div.time-slots')
69
+ @wait_day = iframe_info.css('div.d-flex.d-md-none.header').text
70
+ @wait_time = iframe_info.css('div.time-slot.selected').text
71
+ @office.all[$index].next_available = "#{@wait_day} #{@wait_time}"
72
+ else
73
+ @wait_time = "No time available"
74
+ @office.all[$index].next_available = "#{@wait_time}"
75
+ end
76
+ end
77
+
78
+ end
@@ -1,3 +1,3 @@
1
1
  module Urgentcare
2
- VERSION = "0.1.0" #increment a version with each release
3
- end
2
+ VERSION = "0.2.2" #increment a version with each release
3
+ end #semantic versioning
data/lib/UrgentCare.rb CHANGED
@@ -1,9 +1,13 @@
1
1
  require 'pry'
2
2
  require 'nokogiri'
3
3
  require 'open-uri'
4
+ require 'watir'
5
+ require 'watir-performance'
6
+ require 'capybara'
7
+
4
8
 
5
9
  require_relative "./Urgentcare/CLI"
6
- require_relative "./Urgentcare/version" #why was this not a relative path?
10
+ require_relative "./Urgentcare/version"
7
11
  require_relative "./Urgentcare/Office"
8
12
  require_relative "./Urgentcare/Scraper"
9
13
 
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: UrgentcareCLI
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - PamelaTorres-Rocca
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-30 00:00:00.000000000 Z
11
+ date: 2022-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.16'
20
- type: :development
19
+ version: 2.2.10
20
+ type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.16'
26
+ version: 2.2.10
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '13.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '13.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -70,50 +70,36 @@ dependencies:
70
70
  name: nokogiri
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 1.8.2
75
+ version: 1.11.4
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: 1.8.2
83
- description:
82
+ version: 1.11.4
83
+ description:
84
84
  email:
85
85
  - pfrieze@gmail.com
86
86
  executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - ".gitignore"
91
- - ".rspec"
92
- - ".travis.yml"
93
- - CODE_OF_CONDUCT.md
94
- - Gemfile
95
- - Gemfile.lock
96
- - LICENSE.txt
97
- - Notes
98
- - README.md
99
- - Rakefile
100
- - UrgentCare.gemspec
101
90
  - bin/Urgentcare
102
91
  - bin/console
103
92
  - bin/setup
104
- - data.txt
105
93
  - lib/UrgentCare.rb
106
94
  - lib/UrgentCare/CLI.rb
107
95
  - lib/UrgentCare/Office.rb
96
+ - lib/UrgentCare/Scraper.rb
108
97
  - lib/UrgentCare/version.rb
109
- - lib/Urgentcare/Scraper.rb
110
- - spec.md
111
- - test.data
112
98
  homepage: https://github.com/Pamela454/Pamela-cli-app.git
113
99
  licenses:
114
100
  - MIT
115
101
  metadata: {}
116
- post_install_message:
102
+ post_install_message:
117
103
  rdoc_options: []
118
104
  require_paths:
119
105
  - lib
@@ -128,9 +114,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
114
  - !ruby/object:Gem::Version
129
115
  version: '0'
130
116
  requirements: []
131
- rubyforge_project:
132
- rubygems_version: 2.7.6
133
- signing_key:
117
+ rubygems_version: 3.1.3
118
+ signing_key:
134
119
  specification_version: 4
135
120
  summary: Current Urgent Care wait times in Massachusetts based on location.
136
121
  test_files: []
data/.gitignore DELETED
@@ -1,11 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- # rspec failure tracking
11
- .rspec_status
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.5.1
5
- before_install: gem install bundler -v 1.16.1
data/CODE_OF_CONDUCT.md DELETED
@@ -1,74 +0,0 @@
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 TODO: Write your email address. 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 DELETED
@@ -1,9 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
-
4
- # Specify your gem's dependencies in project.gemspec
5
- gemspec #doesn't need list of other dependencies?
6
- gem "nokogiri"
7
- gem "pry"
8
- gem "rake"
9
- gem 'project'
data/Gemfile.lock DELETED
@@ -1,49 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- UrgentcareCLI (0.1.0)
5
- nokogiri (~> 1.8.2)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- coderay (1.1.2)
11
- diff-lcs (1.3)
12
- method_source (0.9.0)
13
- mini_portile2 (2.3.0)
14
- nokogiri (1.8.2)
15
- mini_portile2 (~> 2.3.0)
16
- project (1.3.0)
17
- rspec (>= 1.2.9)
18
- pry (0.11.3)
19
- coderay (~> 1.1.0)
20
- method_source (~> 0.9.0)
21
- rake (12.3.1)
22
- rspec (3.7.0)
23
- rspec-core (~> 3.7.0)
24
- rspec-expectations (~> 3.7.0)
25
- rspec-mocks (~> 3.7.0)
26
- rspec-core (3.7.1)
27
- rspec-support (~> 3.7.0)
28
- rspec-expectations (3.7.0)
29
- diff-lcs (>= 1.2.0, < 2.0)
30
- rspec-support (~> 3.7.0)
31
- rspec-mocks (3.7.0)
32
- diff-lcs (>= 1.2.0, < 2.0)
33
- rspec-support (~> 3.7.0)
34
- rspec-support (3.7.1)
35
-
36
- PLATFORMS
37
- ruby
38
-
39
- DEPENDENCIES
40
- UrgentcareCLI!
41
- bundler (~> 1.16)
42
- nokogiri
43
- project
44
- pry
45
- rake
46
- rspec (~> 3.0)
47
-
48
- BUNDLED WITH
49
- 1.16.1
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2018: Pamela Torres-Rocca
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/Notes DELETED
@@ -1,41 +0,0 @@
1
- Find Urgent Care with shortest wait time
2
- Local Massachusetts facilities
3
-
4
- What are the next two things that you need to do?
5
-
6
- CLI Interaction
7
- - Welcome
8
- - Please provide your Massachusetts location
9
- - Wait times for closest Urgent Care centers are as follows:
10
- - Please enter another location, ask to display list, or exit
11
-
12
- Medford Physician One
13
- https://physicianoneurgentcare.com/find-us/locations/ma/medford-urgent-care
14
- Cape Cod Health
15
- https://www.capecodhealth.org/patients-visitors/wait-time/
16
- Dedham
17
- https://www.afcurgentcare.com/dedham/patient-resources/check-in-online/
18
- Southeast MA
19
- https://www.southcoast.org/services/urgent-care/
20
- Boston Area CareWell - next available appts.
21
- https://www.carewellurgentcare.com/locations/
22
- Boston Area AFC Urgent Care- wait times
23
- https://www.clockwisemd.com/groups/53
24
-
25
- Create one dependency that loads all others. Loads all files
26
- into memory.
27
-
28
- Rake is another way to run files. Like a bin file.
29
- Require bundler, the mother of all gems. Then tell it to require
30
- which requires all gems. This makes sure that the files are
31
- loaded in the correct order.
32
-
33
- :: is a unary operator that allows: constants, instance methods and class
34
- methods defined within a class or module, to be accessed from anywhere outside
35
- the class or module.
36
-
37
-
38
- Class CLI
39
- Class Scraper
40
- Class location list
41
- Class location
data/README.md DELETED
@@ -1,41 +0,0 @@
1
- # UrgentCare
2
-
3
- CLI Urgent Care returns current wait times at urgent care centers based on location.
4
-
5
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
8
-
9
- ```ruby
10
- gem 'project'
11
- ```
12
-
13
- And then execute:
14
-
15
- $ bundle
16
-
17
- Or install it yourself as:
18
-
19
- $ gem install project
20
-
21
- ## Usage
22
-
23
- TODO: Write usage instructions here
24
-
25
- ## Development
26
-
27
- 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.
28
-
29
- 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).
30
-
31
- ## Contributing
32
-
33
- Bug reports and pull requests are welcome on GitHub at https://github.com/Pamela454/Pamela-cli-app. 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.
34
-
35
- ## License
36
-
37
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
38
-
39
- ## Code of Conduct
40
-
41
- Everyone interacting in the Project project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/project/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task :default => :spec
data/UrgentCare.gemspec DELETED
@@ -1,39 +0,0 @@
1
-
2
- lib = File.expand_path("../lib", )
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "./lib/Urgentcare/version"
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "UrgentcareCLI"
8
- spec.version = Urgentcare::VERSION
9
- spec.authors = ["PamelaTorres-Rocca"]
10
- spec.email = ["pfrieze@gmail.com"]
11
-
12
- spec.summary = %q{Current Urgent Care wait times in Massachusetts based on location.}
13
- spec.homepage = "https://github.com/Pamela454/Pamela-cli-app.git"
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"] = ''
20
- #else
21
- # raise "RubyGems 2.0 or newer is required to protect against " \
22
- # "public gem pushes."
23
- #end
24
-
25
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
26
- f.match(%r{^(test|spec|features)/})
27
- end
28
- spec.bindir = "exe"
29
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
- spec.require_paths = ["lib"]
31
-
32
- spec.add_development_dependency "bundler", "~> 1.16" #locks gems to current versions
33
- spec.add_development_dependency "rake", "~> 10.0" #bundle update to update
34
- spec.add_development_dependency "rspec", "~> 3.0"
35
- spec.add_development_dependency "pry", "~> 0.11.3"
36
- #spec.add_development_dependency "open-uri"
37
-
38
- spec.add_dependency "nokogiri", "~> 1.8.2"
39
- end