university_cli_app 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 +11 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +74 -0
- data/LICENSE.txt +21 -0
- data/NOTES.md +57 -0
- data/README.md +43 -0
- data/Rakefile +6 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/bin/university +8 -0
- data/lib/university_cli_app/university_cli.rb +81 -0
- data/lib/university_cli_app/university_scraper.rb +40 -0
- data/lib/university_cli_app/version.rb +3 -0
- data/lib/university_cli_app.rb +8 -0
- data/university_cli_app.gemspec +40 -0
- metadata +170 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c26073de54158a4844882c5931ce4051ce0089fec71999e99a9450c24e179e39
|
4
|
+
data.tar.gz: eedfea8193411196073ec66afed2ce386a218396d71b15c222be4065266ffd6a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ec53e46d44bbe93cda46d9c0a9b555e030680f6497cc6abc95c3e0882209f08f42b513fe733d5290e210cc451a153744a00d9c8baa2ffb2500e0f3bde8b68321
|
7
|
+
data.tar.gz: a00ad04ff9c91a83c7ea0f43805750177b36e5cc2913114f99ee6b705bf13c16c00019fea3ff783ee6d8c7224e9352dd314b86afb198b3331fe16c4d2552c7dc
|
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 yutingcxiang@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/Gemfile.lock
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
university_cli_app (0.1.0)
|
5
|
+
capybara
|
6
|
+
nokogiri
|
7
|
+
poltergeist
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: https://rubygems.org/
|
11
|
+
specs:
|
12
|
+
addressable (2.5.2)
|
13
|
+
public_suffix (>= 2.0.2, < 4.0)
|
14
|
+
capybara (3.4.2)
|
15
|
+
addressable
|
16
|
+
mini_mime (>= 0.1.3)
|
17
|
+
nokogiri (~> 1.8)
|
18
|
+
rack (>= 1.6.0)
|
19
|
+
rack-test (>= 0.6.3)
|
20
|
+
xpath (~> 3.1)
|
21
|
+
cliver (0.3.2)
|
22
|
+
coderay (1.1.2)
|
23
|
+
diff-lcs (1.3)
|
24
|
+
method_source (0.9.0)
|
25
|
+
mini_mime (1.0.0)
|
26
|
+
mini_portile2 (2.3.0)
|
27
|
+
nokogiri (1.8.4)
|
28
|
+
mini_portile2 (~> 2.3.0)
|
29
|
+
phantomjs (2.1.1.0)
|
30
|
+
poltergeist (1.18.1)
|
31
|
+
capybara (>= 2.1, < 4)
|
32
|
+
cliver (~> 0.3.1)
|
33
|
+
websocket-driver (>= 0.2.0)
|
34
|
+
pry (0.11.3)
|
35
|
+
coderay (~> 1.1.0)
|
36
|
+
method_source (~> 0.9.0)
|
37
|
+
public_suffix (3.0.2)
|
38
|
+
rack (2.0.5)
|
39
|
+
rack-test (1.1.0)
|
40
|
+
rack (>= 1.0, < 3)
|
41
|
+
rake (10.5.0)
|
42
|
+
rspec (3.7.0)
|
43
|
+
rspec-core (~> 3.7.0)
|
44
|
+
rspec-expectations (~> 3.7.0)
|
45
|
+
rspec-mocks (~> 3.7.0)
|
46
|
+
rspec-core (3.7.1)
|
47
|
+
rspec-support (~> 3.7.0)
|
48
|
+
rspec-expectations (3.7.0)
|
49
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
50
|
+
rspec-support (~> 3.7.0)
|
51
|
+
rspec-mocks (3.7.0)
|
52
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
53
|
+
rspec-support (~> 3.7.0)
|
54
|
+
rspec-support (3.7.1)
|
55
|
+
websocket-driver (0.7.0)
|
56
|
+
websocket-extensions (>= 0.1.0)
|
57
|
+
websocket-extensions (0.1.3)
|
58
|
+
xpath (3.1.0)
|
59
|
+
nokogiri (~> 1.8)
|
60
|
+
|
61
|
+
PLATFORMS
|
62
|
+
ruby
|
63
|
+
|
64
|
+
DEPENDENCIES
|
65
|
+
bundler (~> 1.16)
|
66
|
+
capybara
|
67
|
+
phantomjs
|
68
|
+
pry
|
69
|
+
rake (~> 10.0)
|
70
|
+
rspec (~> 3.0)
|
71
|
+
university_cli_app!
|
72
|
+
|
73
|
+
BUNDLED WITH
|
74
|
+
1.16.2
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Christine
|
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.md
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
Github name: university-cli-app
|
2
|
+
Spec.md file: check off and explain how you've met the requirement
|
3
|
+
README.md:
|
4
|
+
1. a short description
|
5
|
+
2. install instructions
|
6
|
+
3. a contributors guide
|
7
|
+
4. a link to the license for your code
|
8
|
+
require and require-relative files
|
9
|
+
|
10
|
+
irb bundle install university
|
11
|
+
|
12
|
+
require 'nokogiri'
|
13
|
+
require 'open uri'
|
14
|
+
require 'pry'
|
15
|
+
|
16
|
+
1) UniversityCLI
|
17
|
+
-"Welcome to the top 50 Colleges & Universities in America for 2018."
|
18
|
+
-"Please select an option:"
|
19
|
+
1. View college list
|
20
|
+
2. Select University by name
|
21
|
+
3. Select University by rank
|
22
|
+
4. Select university by location (state)
|
23
|
+
5. Exit
|
24
|
+
-> "Would you like additional details? (Y/N)"
|
25
|
+
-> Additional info + website link
|
26
|
+
-> "Would you like to see another college? (Y/N)"
|
27
|
+
-> Back to menu or quit
|
28
|
+
|
29
|
+
2) UniversityScraper
|
30
|
+
def university_list(url)
|
31
|
+
universities = Nokogiri::HTML(open(url))
|
32
|
+
university_list = []
|
33
|
+
1. Princeton University
|
34
|
+
2. Harvard University
|
35
|
+
3. Swarthmore College
|
36
|
+
end
|
37
|
+
|
38
|
+
def university_page(url)
|
39
|
+
university = Nokogiri::HTML(open(url))
|
40
|
+
university = {}
|
41
|
+
Acceptance Rate: 6%
|
42
|
+
ACT 25th-75th percentile: 32-35
|
43
|
+
Median age: 31.5
|
44
|
+
Median household income: $89,847
|
45
|
+
Cost of living index: 148.9
|
46
|
+
College degreed: 78.5%
|
47
|
+
end
|
48
|
+
|
49
|
+
3) University
|
50
|
+
Class University
|
51
|
+
attr_accessor :name, :rank, :location, :url,
|
52
|
+
:acceptance, :ACT, :age, :hhincome, :livingcost, :degreed
|
53
|
+
@all = []
|
54
|
+
|
55
|
+
def initialize
|
56
|
+
end
|
57
|
+
end
|
data/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# UniversityCliApp
|
2
|
+
|
3
|
+
This Ruby Gem provides a CLI to view the top 50 ranked colleges and universities in the U.S. in 2018 as recommended by The Best Colleges website at: https://www.thebestcolleges.org/rankings/top-50/
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'university_cli_app'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install university_cli_app
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
Type the below and follow the on screen prompts.
|
24
|
+
|
25
|
+
$ university
|
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]/university_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.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
40
|
+
|
41
|
+
## Code of Conduct
|
42
|
+
|
43
|
+
Everyone interacting in the UniversityCliApp project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/university_cli_app/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "university_cli_app"
|
5
|
+
require "pry"
|
6
|
+
|
7
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
+
# with your gem easier. You can also use a different console, if you like.
|
9
|
+
|
10
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
+
# require "pry"
|
12
|
+
# Pry.start
|
13
|
+
|
14
|
+
require "irb"
|
15
|
+
IRB.start
|
data/bin/setup
ADDED
data/bin/university
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
class University_cli
|
2
|
+
|
3
|
+
def call
|
4
|
+
menu
|
5
|
+
end
|
6
|
+
|
7
|
+
def menu
|
8
|
+
input = nil
|
9
|
+
unless input == "3"
|
10
|
+
puts "Welcome to the top 50 Colleges & Universities in America for 2018."
|
11
|
+
puts ""
|
12
|
+
puts "Please select an option and press enter:"
|
13
|
+
puts "1. View entire college list"
|
14
|
+
puts "2. Select University by rank"
|
15
|
+
puts "3. Exit"
|
16
|
+
puts ""
|
17
|
+
answer = gets.strip
|
18
|
+
|
19
|
+
if answer == "1"
|
20
|
+
list_colleges
|
21
|
+
elsif answer == "2"
|
22
|
+
list_by_rank
|
23
|
+
elsif answer == "3"
|
24
|
+
close_app
|
25
|
+
else
|
26
|
+
puts "Please try again."
|
27
|
+
menu
|
28
|
+
end
|
29
|
+
|
30
|
+
puts "Please choose another option and press enter:"
|
31
|
+
puts "1. Back to menu"
|
32
|
+
puts "2. Exit"
|
33
|
+
input = gets.strip
|
34
|
+
|
35
|
+
if input == "1"
|
36
|
+
menu
|
37
|
+
elsif input == "2"
|
38
|
+
close_app
|
39
|
+
else
|
40
|
+
puts "Please try again."
|
41
|
+
menu
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def list_colleges
|
47
|
+
puts "Top 50 Colleges & Universities in America for 2018"
|
48
|
+
list = University_scraper.school_list
|
49
|
+
list.each do |school|
|
50
|
+
puts "#{school[:rank]}. #{school[:name]}"
|
51
|
+
end
|
52
|
+
puts ""
|
53
|
+
end
|
54
|
+
|
55
|
+
def list_by_rank
|
56
|
+
puts "Please enter a number from 1-50 and press enter:"
|
57
|
+
answer = gets.strip
|
58
|
+
num = answer.to_i
|
59
|
+
|
60
|
+
unless num >= 1 && num <= 50
|
61
|
+
puts "Invalid. Please try again."
|
62
|
+
answer = gets.strip
|
63
|
+
end
|
64
|
+
|
65
|
+
list = University_scraper.school_list
|
66
|
+
list.each do |school|
|
67
|
+
if answer == school[:rank]
|
68
|
+
puts "#{school[:rank]}. #{school[:name]}"
|
69
|
+
puts "#{school[:location].capitalize}"
|
70
|
+
puts "#{school[:description]}"
|
71
|
+
puts "Learn more at: #{school[:url]}."
|
72
|
+
puts ""
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
def close_app
|
78
|
+
puts "Thank you for checking out the rankings. Good luck with your selection!"
|
79
|
+
exit
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# require 'capybara/poltergeist'
|
2
|
+
# require 'pry'
|
3
|
+
|
4
|
+
class University_scraper
|
5
|
+
attr_accessor :name, :rank, :location, :url, :description
|
6
|
+
|
7
|
+
def self.school_list
|
8
|
+
scrape_school_list
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.scrape_school_list
|
12
|
+
# options = {
|
13
|
+
# js_errors: false,
|
14
|
+
# }
|
15
|
+
|
16
|
+
Capybara.register_driver :poltergeist do |app|
|
17
|
+
Capybara::Poltergeist::Driver.new(app,
|
18
|
+
js_errors: false, phantomjs_logger: StringIO.new)
|
19
|
+
end
|
20
|
+
|
21
|
+
session = Capybara::Session.new(:poltergeist)
|
22
|
+
|
23
|
+
doc = session.visit('https://www.thebestcolleges.org/rankings/top-50/')
|
24
|
+
session.find('.js-rankings-expand-all').click
|
25
|
+
#puts session.document.title
|
26
|
+
|
27
|
+
list = []
|
28
|
+
session.all('table.rankings-list tbody tr').each do |item|
|
29
|
+
list << {
|
30
|
+
:rank => item.find('td.rank').text,
|
31
|
+
:name => item.find('td.title a.rank-title-link').text,
|
32
|
+
:location => item.find('td.title span.label').text,
|
33
|
+
:url => item.find('td.stat.link a')['href'],
|
34
|
+
:description => item.first("td.stat.copy p").text
|
35
|
+
}
|
36
|
+
end
|
37
|
+
#binding.pry
|
38
|
+
list
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "university_cli_app/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "university_cli_app"
|
8
|
+
spec.version = UniversityCliApp::VERSION
|
9
|
+
spec.authors = ["Christine Xiang"]
|
10
|
+
spec.email = ["yutingcxiang@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = "This app displays the top 50 colleges and universities in America for 2018."
|
13
|
+
spec.description = "This app will display a list of the top ranked national universities in the U.S. in 2018. When the app is started, the user is given a navigational menu and prompted to view the entire university list, to select a university by ranking number to get more information, or to quit the app. If the user chooses to view the entire university list, a scraped list of university names from https://www.thebestcolleges.org/rankings/top-50/ will be displayed. The user can then choose to retrieve details from a specific university by providing the rank number or to return to the navigational menu. If the user chooses to get more information on a specific university, additional details will be provided as well as a link to the university site. The app will be composed of a University class for each individual university, a UniversityScraper for retrieving the information from the site, and a UniversityCLI interface."
|
14
|
+
spec.homepage = "https://github.com/yutingcxiang/university-cli-app"
|
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.16"
|
34
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
35
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
36
|
+
spec.add_development_dependency "pry"
|
37
|
+
spec.add_dependency "nokogiri"
|
38
|
+
spec.add_dependency "capybara"
|
39
|
+
spec.add_dependency "poltergeist"
|
40
|
+
end
|
metadata
ADDED
@@ -0,0 +1,170 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: university_cli_app
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Christine Xiang
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-08-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.16'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.16'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.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: pry
|
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: nokogiri
|
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: capybara
|
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
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: poltergeist
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: This app will display a list of the top ranked national universities
|
112
|
+
in the U.S. in 2018. When the app is started, the user is given a navigational menu
|
113
|
+
and prompted to view the entire university list, to select a university by ranking
|
114
|
+
number to get more information, or to quit the app. If the user chooses to view
|
115
|
+
the entire university list, a scraped list of university names from https://www.thebestcolleges.org/rankings/top-50/
|
116
|
+
will be displayed. The user can then choose to retrieve details from a specific
|
117
|
+
university by providing the rank number or to return to the navigational menu. If
|
118
|
+
the user chooses to get more information on a specific university, additional details
|
119
|
+
will be provided as well as a link to the university site. The app will be composed
|
120
|
+
of a University class for each individual university, a UniversityScraper for retrieving
|
121
|
+
the information from the site, and a UniversityCLI interface.
|
122
|
+
email:
|
123
|
+
- yutingcxiang@gmail.com
|
124
|
+
executables: []
|
125
|
+
extensions: []
|
126
|
+
extra_rdoc_files: []
|
127
|
+
files:
|
128
|
+
- ".gitignore"
|
129
|
+
- ".rspec"
|
130
|
+
- ".travis.yml"
|
131
|
+
- CODE_OF_CONDUCT.md
|
132
|
+
- Gemfile
|
133
|
+
- Gemfile.lock
|
134
|
+
- LICENSE.txt
|
135
|
+
- NOTES.md
|
136
|
+
- README.md
|
137
|
+
- Rakefile
|
138
|
+
- bin/console
|
139
|
+
- bin/setup
|
140
|
+
- bin/university
|
141
|
+
- lib/university_cli_app.rb
|
142
|
+
- lib/university_cli_app/university_cli.rb
|
143
|
+
- lib/university_cli_app/university_scraper.rb
|
144
|
+
- lib/university_cli_app/version.rb
|
145
|
+
- university_cli_app.gemspec
|
146
|
+
homepage: https://github.com/yutingcxiang/university-cli-app
|
147
|
+
licenses:
|
148
|
+
- MIT
|
149
|
+
metadata: {}
|
150
|
+
post_install_message:
|
151
|
+
rdoc_options: []
|
152
|
+
require_paths:
|
153
|
+
- lib
|
154
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
|
+
requirements:
|
161
|
+
- - ">="
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: '0'
|
164
|
+
requirements: []
|
165
|
+
rubyforge_project:
|
166
|
+
rubygems_version: 2.7.7
|
167
|
+
signing_key:
|
168
|
+
specification_version: 4
|
169
|
+
summary: This app displays the top 50 colleges and universities in America for 2018.
|
170
|
+
test_files: []
|