destinations 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- 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 +6 -0
- data/Gemfile.lock +45 -0
- data/LICENSE.txt +21 -0
- data/README.md +31 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/bin/top-destinations +7 -0
- data/destinations.gemspec +31 -0
- data/lib/destinations/cli.rb +89 -0
- data/lib/destinations/travel_destinations.rb +54 -0
- data/lib/destinations/travel_destinations_info.rb +77 -0
- data/lib/destinations/version.rb +3 -0
- data/lib/destinations.rb +11 -0
- data/spec.md +6 -0
- metadata +133 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 712e04319e310e9762a06d1e2b6ff643cb693f16
|
4
|
+
data.tar.gz: 9742b705d2612877b394ded648dcebb83dfe113a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4dc84a55ccaad1b318d06fd19f697bfc1b9033971f4769b84ca8b4860dfaa71b0b606e58220bbe7e5f091838003be319a3e437bc69f87fc34974c14372b508cf
|
7
|
+
data.tar.gz: 459acabbfb6d7d8f838a6d3dffe2b1a1431c127b8150dd56d0f9fb970692f8a31c3530c6c1574023ea93456ce931c006993e3eaf351172303a9a996e5f728e60
|
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 annabelwilmerding@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,45 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
destinations (0.1.0)
|
5
|
+
nokogiri
|
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
|
+
pry (0.11.3)
|
17
|
+
coderay (~> 1.1.0)
|
18
|
+
method_source (~> 0.9.0)
|
19
|
+
rake (10.5.0)
|
20
|
+
rspec (3.7.0)
|
21
|
+
rspec-core (~> 3.7.0)
|
22
|
+
rspec-expectations (~> 3.7.0)
|
23
|
+
rspec-mocks (~> 3.7.0)
|
24
|
+
rspec-core (3.7.1)
|
25
|
+
rspec-support (~> 3.7.0)
|
26
|
+
rspec-expectations (3.7.0)
|
27
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
28
|
+
rspec-support (~> 3.7.0)
|
29
|
+
rspec-mocks (3.7.0)
|
30
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
31
|
+
rspec-support (~> 3.7.0)
|
32
|
+
rspec-support (3.7.1)
|
33
|
+
|
34
|
+
PLATFORMS
|
35
|
+
ruby
|
36
|
+
|
37
|
+
DEPENDENCIES
|
38
|
+
bundler (~> 1.16)
|
39
|
+
destinations!
|
40
|
+
pry
|
41
|
+
rake (~> 10.0)
|
42
|
+
rspec (~> 3.0)
|
43
|
+
|
44
|
+
BUNDLED WITH
|
45
|
+
1.16.1
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Annabel Wilmerding
|
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,31 @@
|
|
1
|
+
# Destinations
|
2
|
+
|
3
|
+
This Ruby Gem is a CLI application that produces information about the destinations listed on Lonely Planet's Best in Travel webpages.
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
You can install this application by running `gem install destinations` .
|
10
|
+
|
11
|
+
## Usage
|
12
|
+
|
13
|
+
Run `destinations` after installing the gem.
|
14
|
+
|
15
|
+
## Development
|
16
|
+
|
17
|
+
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.
|
18
|
+
|
19
|
+
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).
|
20
|
+
|
21
|
+
## Contributing
|
22
|
+
|
23
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/awilmerding1/awilmerding-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.
|
24
|
+
|
25
|
+
## License
|
26
|
+
|
27
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
28
|
+
|
29
|
+
## Code of Conduct
|
30
|
+
|
31
|
+
Everyone interacting in the Destinations project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/awilmerding1/awilmerding-cli-app/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "destinations"
|
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
@@ -0,0 +1,31 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "destinations/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "destinations"
|
8
|
+
spec.version = Destinations::VERSION
|
9
|
+
spec.authors = ["Annabel Wilmerding"]
|
10
|
+
spec.email = ["annabelwilmerding@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Top Vacation Spots}
|
13
|
+
spec.description = %q{Top Vacation Spots}
|
14
|
+
spec.homepage = "https://learn.co"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
27
|
+
spec.add_development_dependency "pry"
|
28
|
+
|
29
|
+
spec.add_dependency "nokogiri"
|
30
|
+
|
31
|
+
end
|
@@ -0,0 +1,89 @@
|
|
1
|
+
require 'pry'
|
2
|
+
class Destinations::CLI
|
3
|
+
|
4
|
+
def call
|
5
|
+
intro
|
6
|
+
main_menu_select
|
7
|
+
end
|
8
|
+
|
9
|
+
def intro
|
10
|
+
Destinations::TravelDestinationsLists.scrape_list
|
11
|
+
Destinations::TravelDestinations.new_countries
|
12
|
+
Destinations::TravelDestinations.new_cities
|
13
|
+
Destinations::TravelDestinations.new_regions
|
14
|
+
Destinations::TravelDestinations.new_value
|
15
|
+
puts "\nWelcome! Please select one of the lists above by number.\n\n"
|
16
|
+
puts "Type 'exit' to exit the program at anytime. Type 'main menu' to return to the list above at anytime."
|
17
|
+
end
|
18
|
+
|
19
|
+
def main_menu
|
20
|
+
Destinations::TravelDestinationsLists.scrape_list
|
21
|
+
puts "\nPlease select a list."
|
22
|
+
self.main_menu_select
|
23
|
+
end
|
24
|
+
|
25
|
+
def main_menu_select
|
26
|
+
input = gets.chomp
|
27
|
+
list = nil
|
28
|
+
if input.to_i == 1
|
29
|
+
Destinations::TravelDestinationsLists.puts_countries
|
30
|
+
elsif input.to_i == 2
|
31
|
+
Destinations::TravelDestinationsLists.puts_cities
|
32
|
+
elsif input.to_i == 3
|
33
|
+
Destinations::TravelDestinationsLists.puts_regions
|
34
|
+
elsif input.to_i == 4
|
35
|
+
Destinations::TravelDestinationsLists.puts_value
|
36
|
+
elsif input.to_i == 5
|
37
|
+
Destinations::TravelDestinations.put_all
|
38
|
+
else
|
39
|
+
self.exit_or_menu(input)
|
40
|
+
end
|
41
|
+
puts "\nIf you would like to read about one of these destinations, please enter it's number on the list.\n\n"
|
42
|
+
self.destination_more_info(input)
|
43
|
+
end
|
44
|
+
|
45
|
+
def destination_more_info(input)
|
46
|
+
more_input = gets.chomp.downcase
|
47
|
+
destination = nil
|
48
|
+
if more_input.to_i.between?(1,10)
|
49
|
+
destination = Destinations::TravelDestinations.find_input_to_index(input, more_input)
|
50
|
+
puts destination.summary
|
51
|
+
puts "If you would like more information about this destination please enter 'more info'."
|
52
|
+
self.destination_link(destination)
|
53
|
+
elsif more_input.to_i.between?(11,40)
|
54
|
+
destination = Destinations::TravelDestinations.all[more_input.to_i-1]
|
55
|
+
puts destination.summary
|
56
|
+
puts "If you would like more information about this destination please enter 'more info'."
|
57
|
+
self.destination_link(destination)
|
58
|
+
else
|
59
|
+
self.exit_or_menu(more_input)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
|
64
|
+
def destination_link(destination)
|
65
|
+
answer = gets.chomp.downcase
|
66
|
+
if answer == 'more info'
|
67
|
+
puts "\nPlease visit #{destination.link_url} for more information on #{destination.name}.\n\n"
|
68
|
+
puts "To exit the program, enter 'exit'. To return to the main menu, enter 'main menu'."
|
69
|
+
new_input = gets.chomp.downcase
|
70
|
+
self.exit_or_menu(new_input)
|
71
|
+
else
|
72
|
+
self.exit_or_menu(answer)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
def exit_or_menu(new_answer)
|
77
|
+
if new_answer == "main menu"
|
78
|
+
self.main_menu
|
79
|
+
elsif new_answer == "exit"
|
80
|
+
abort("Bye!")
|
81
|
+
else
|
82
|
+
puts "To exit the program, enter 'exit'. To return to the main menu, enter 'main menu'."
|
83
|
+
more_answer = gets.chomp.downcase
|
84
|
+
self.exit_or_menu(more_answer)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
|
89
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
require 'open-uri'
|
2
|
+
require 'pry'
|
3
|
+
class Destinations::TravelDestinationsLists
|
4
|
+
|
5
|
+
def self.scrape_list
|
6
|
+
Nokogiri::HTML(open("https://www.lonelyplanet.com/best-in-travel/")).css("a.js-page-navigation-spot span").each_with_index do |list, index|
|
7
|
+
puts "#{index+1}. #{list.text}"
|
8
|
+
end
|
9
|
+
puts "5. List of All Destinations"
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.scrape_countries
|
13
|
+
Nokogiri::HTML(open("https://www.lonelyplanet.com/best-in-travel/countries")).css(".marketing-article")
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.scrape_cities
|
17
|
+
Nokogiri::HTML(open("https://www.lonelyplanet.com/best-in-travel/cities")).css(".marketing-article")
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.scrape_regions
|
21
|
+
Nokogiri::HTML(open("https://www.lonelyplanet.com/best-in-travel/regions")).css(".marketing-article")
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.scrape_value
|
25
|
+
Nokogiri::HTML(open("https://www.lonelyplanet.com/best-in-travel/value")).css(".marketing-article")
|
26
|
+
end
|
27
|
+
|
28
|
+
|
29
|
+
def self.puts_countries
|
30
|
+
self.scrape_countries.css(".marketing-article__header h1").each do |lists|
|
31
|
+
puts lists.text
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.puts_cities
|
36
|
+
self.scrape_cities.css(".marketing-article__header h1").each do |lists|
|
37
|
+
puts lists.text
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.puts_regions
|
42
|
+
self.scrape_regions.css(".marketing-article__header h1").each do |lists|
|
43
|
+
puts lists.text
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
|
48
|
+
def self.puts_value
|
49
|
+
self.scrape_value.css(".marketing-article__header h1").each do |lists|
|
50
|
+
puts lists.text
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
require 'open-uri'
|
2
|
+
require 'pry'
|
3
|
+
class Destinations::TravelDestinations
|
4
|
+
|
5
|
+
attr_accessor :name, :summary, :list_number, :link_url
|
6
|
+
|
7
|
+
@@all = []
|
8
|
+
|
9
|
+
def self.new_countries
|
10
|
+
Destinations::TravelDestinationsLists.scrape_countries.each do |country|
|
11
|
+
new_country = self.new
|
12
|
+
new_country.name = country.css(".marketing-article__header h1").text.scan(/[a-zA-Z]+.*/).join
|
13
|
+
new_country.link_url = country.css("a").attribute("href").text
|
14
|
+
new_country.list_number = country.css(".marketing-article__header h1").text.scan(/\d+/).join.to_i
|
15
|
+
new_country.summary = country.css("p.marketing-article__content").text
|
16
|
+
self.all << new_country
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.new_cities
|
21
|
+
Destinations::TravelDestinationsLists.scrape_cities.each do |city|
|
22
|
+
new_city = self.new
|
23
|
+
new_city.name = city.css(".marketing-article__header h1").text.scan(/[a-zA-Z]+.*/).join
|
24
|
+
new_city.link_url = city.css("a").attribute("href").text
|
25
|
+
new_city.list_number = city.css(".marketing-article__header h1").text.scan(/\d+/).join.to_i
|
26
|
+
new_city.summary = city.css("p.marketing-article__content").text
|
27
|
+
self.all << new_city
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.new_regions
|
32
|
+
Destinations::TravelDestinationsLists.scrape_regions.each do |region|
|
33
|
+
new_region = self.new
|
34
|
+
new_region.name = region.css(".marketing-article__header h1").text.scan(/[a-zA-Z]+.*/).join
|
35
|
+
new_region.link_url = region.css("a").attribute("href").text
|
36
|
+
new_region.list_number = region.css(".marketing-article__header h1").text.scan(/\d+/).join.to_i
|
37
|
+
new_region.summary = region.css("p.marketing-article__content").text
|
38
|
+
self.all << new_region
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
def self.new_value
|
43
|
+
Destinations::TravelDestinationsLists.scrape_value.each do |value|
|
44
|
+
new_value = self.new
|
45
|
+
new_value.name = value.css(".marketing-article__header h1").text.scan(/[a-zA-Z]+.*/).join
|
46
|
+
new_value.link_url = value.css("a").attribute("href").text
|
47
|
+
new_value.list_number = value.css(".marketing-article__header h1").text.scan(/\d+/).join.to_i
|
48
|
+
new_value.summary = value.css("p.marketing-article__content").text
|
49
|
+
self.all << new_value
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
def self.all
|
54
|
+
@@all
|
55
|
+
end
|
56
|
+
|
57
|
+
def self.put_all
|
58
|
+
self.all.each_with_index do |destination, index|
|
59
|
+
puts "#{index+1}. #{destination.name}"
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
|
64
|
+
def self.find_input_to_index(input, more_input)
|
65
|
+
if input.to_i == 1
|
66
|
+
self.all[more_input.to_i-1]
|
67
|
+
elsif input.to_i == 2
|
68
|
+
self.all[10 + more_input.to_i-1]
|
69
|
+
elsif input.to_i == 3
|
70
|
+
self.all[20 + more_input.to_i-1]
|
71
|
+
elsif input.to_i == 4
|
72
|
+
self.all[30 + more_input.to_i-1]
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
|
77
|
+
end
|
data/lib/destinations.rb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'nokogiri'
|
2
|
+
require 'pry'
|
3
|
+
|
4
|
+
require_relative "./destinations/version"
|
5
|
+
require_relative './destinations/cli'
|
6
|
+
require_relative './destinations/travel_destinations'
|
7
|
+
require_relative './destinations/travel_destinations_info'
|
8
|
+
|
9
|
+
module Destinations
|
10
|
+
|
11
|
+
end
|
data/spec.md
ADDED
metadata
ADDED
@@ -0,0 +1,133 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: destinations
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Annabel Wilmerding
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-04-24 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
|
+
description: Top Vacation Spots
|
84
|
+
email:
|
85
|
+
- annabelwilmerding@gmail.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- ".gitignore"
|
91
|
+
- ".rspec"
|
92
|
+
- ".travis.yml"
|
93
|
+
- CODE_OF_CONDUCT.md
|
94
|
+
- Gemfile
|
95
|
+
- Gemfile.lock
|
96
|
+
- LICENSE.txt
|
97
|
+
- README.md
|
98
|
+
- Rakefile
|
99
|
+
- bin/console
|
100
|
+
- bin/setup
|
101
|
+
- bin/top-destinations
|
102
|
+
- destinations.gemspec
|
103
|
+
- lib/destinations.rb
|
104
|
+
- lib/destinations/cli.rb
|
105
|
+
- lib/destinations/travel_destinations.rb
|
106
|
+
- lib/destinations/travel_destinations_info.rb
|
107
|
+
- lib/destinations/version.rb
|
108
|
+
- spec.md
|
109
|
+
homepage: https://learn.co
|
110
|
+
licenses:
|
111
|
+
- MIT
|
112
|
+
metadata: {}
|
113
|
+
post_install_message:
|
114
|
+
rdoc_options: []
|
115
|
+
require_paths:
|
116
|
+
- lib
|
117
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
119
|
+
- - ">="
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
122
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
requirements: []
|
128
|
+
rubyforge_project:
|
129
|
+
rubygems_version: 2.5.2
|
130
|
+
signing_key:
|
131
|
+
specification_version: 4
|
132
|
+
summary: Top Vacation Spots
|
133
|
+
test_files: []
|