travel 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 +9 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +42 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/bin/travel +6 -0
- data/lib/travel/all_inclusive_resorts.rb +8 -0
- data/lib/travel/attractions.rb +8 -0
- data/lib/travel/beaches.rb +9 -0
- data/lib/travel/cli.rb +140 -0
- data/lib/travel/destinations.rb +7 -0
- data/lib/travel/destinations_on_the_rise.rb +7 -0
- data/lib/travel/hotels.rb +8 -0
- data/lib/travel/islands.rb +8 -0
- data/lib/travel/landmarks.rb +8 -0
- data/lib/travel/list.rb +17 -0
- data/lib/travel/museums.rb +9 -0
- data/lib/travel/restaurants.rb +11 -0
- data/lib/travel/scraper.rb +124 -0
- data/lib/travel/version.rb +3 -0
- data/lib/travel.rb +20 -0
- data/travel.gemspec +36 -0
- metadata +127 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5dd8878585490e0b75f1d2bfbd0e0e40842379fb
|
4
|
+
data.tar.gz: 61dd5294dbf11d9a07c1edb3ea65b44adc675db1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 50ca947349f4e58e7f9b66198dbf1d862c1407377e1bb50be04ea57b9325b633d604333c97b8db09e71e17635237360c4964d39be6e435c24772c8ab9998e244
|
7
|
+
data.tar.gz: d22238da172b72845778bb81434d8383be87d3daa57092aca5ca5d04b85cf1704f4bddfcd94bf397cac2784d04ea2005bce1fb2e159bdbd96ddc7273f1e995f8
|
data/.gitignore
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at a_papacostas@yahoo.com. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 ms94ap
|
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,42 @@
|
|
1
|
+
# Travel
|
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/travel`. 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 'travel'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install travel
|
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. 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]/travel. 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
|
+
|
42
|
+
# travel
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "travel"
|
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
|
data/bin/setup
ADDED
data/bin/travel
ADDED
data/lib/travel/cli.rb
ADDED
@@ -0,0 +1,140 @@
|
|
1
|
+
class Travel::CLI
|
2
|
+
|
3
|
+
def call
|
4
|
+
puts "Welcome to World Travelers'Awards for #{Time.now.year}"
|
5
|
+
list_awards
|
6
|
+
menu
|
7
|
+
goodbye
|
8
|
+
|
9
|
+
end
|
10
|
+
|
11
|
+
def list_awards
|
12
|
+
puts "Please select a category or type exit."
|
13
|
+
@lists = Travel::List.choices_awards
|
14
|
+
end
|
15
|
+
|
16
|
+
|
17
|
+
def menu
|
18
|
+
input = nil
|
19
|
+
puts "Enter the number of the Award you wish to see, list to see the main menu or type exit."
|
20
|
+
while input != "exit"
|
21
|
+
input = gets.strip.downcase
|
22
|
+
case input
|
23
|
+
when "1"
|
24
|
+
puts "All Inclusive Resorts"
|
25
|
+
puts all_inclusive_resorts
|
26
|
+
when "2"
|
27
|
+
puts"Attractions"
|
28
|
+
puts attractions
|
29
|
+
when "3"
|
30
|
+
puts"Beaches"
|
31
|
+
puts beaches
|
32
|
+
when "4"
|
33
|
+
puts"Destinations"
|
34
|
+
puts destinations
|
35
|
+
when "5"
|
36
|
+
puts"Destinations on the Rise"
|
37
|
+
puts destinations_on_the_rise
|
38
|
+
when "6"
|
39
|
+
puts"Hotels"
|
40
|
+
puts hotels
|
41
|
+
when "7"
|
42
|
+
puts"Islands"
|
43
|
+
puts islands
|
44
|
+
when "8"
|
45
|
+
puts"Landmarks"
|
46
|
+
puts landmarks
|
47
|
+
when "9"
|
48
|
+
puts"Museums"
|
49
|
+
puts museums
|
50
|
+
when "10"
|
51
|
+
puts"Restaurants"
|
52
|
+
puts restaurants
|
53
|
+
when "list"
|
54
|
+
list_awards
|
55
|
+
else
|
56
|
+
puts "Please type list or exit"
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
def goodbye
|
65
|
+
puts "Thank you for visiting Travelers Choice Awards. Have a nice day!"
|
66
|
+
end
|
67
|
+
|
68
|
+
def all_inclusive_resorts
|
69
|
+
Travel::Scraper.scrape_all_inclusive_resorts.each.with_index(1) do |winner, index|
|
70
|
+
puts "#{index}: #{winner.name} - #{winner.location}"
|
71
|
+
end
|
72
|
+
return nil
|
73
|
+
end
|
74
|
+
|
75
|
+
def attractions
|
76
|
+
Travel::Scraper.scrape_attractions.each.with_index(1) do |winner, index|
|
77
|
+
puts "#{index}: #{winner.name} - #{winner.location}"
|
78
|
+
end
|
79
|
+
return nil
|
80
|
+
end
|
81
|
+
|
82
|
+
def beaches
|
83
|
+
Travel::Scraper.scrape_beaches.each.with_index(1) do |winner, index|
|
84
|
+
puts "#{index}: #{winner.name} - #{winner.location}, #{winner.best_time}"
|
85
|
+
end
|
86
|
+
return nil
|
87
|
+
end
|
88
|
+
|
89
|
+
def destinations
|
90
|
+
Travel::Scraper.scrape_destinations.each.with_index(1) do |winner, index|
|
91
|
+
puts "#{index}: #{winner.name}"
|
92
|
+
end
|
93
|
+
return nil
|
94
|
+
end
|
95
|
+
|
96
|
+
def destinations_on_the_rise
|
97
|
+
Travel::Scraper.scrape_destinations_on_the_rise.each.each.with_index(1) do |winner, index|
|
98
|
+
puts "#{index}: #{winner.name}"
|
99
|
+
end
|
100
|
+
return nil
|
101
|
+
end
|
102
|
+
|
103
|
+
def hotels
|
104
|
+
Travel::Scraper.scrape_hotels.each.with_index(1) do |winner, index|
|
105
|
+
puts "#{index}: #{winner.name} - #{winner.location}"
|
106
|
+
end
|
107
|
+
return nil
|
108
|
+
end
|
109
|
+
|
110
|
+
|
111
|
+
def islands
|
112
|
+
Travel::Scraper.scrape_islands.each.with_index(1) do |winner, index|
|
113
|
+
puts "#{index}: #{winner.name}"
|
114
|
+
end
|
115
|
+
return nil
|
116
|
+
end
|
117
|
+
|
118
|
+
def landmarks
|
119
|
+
Travel::Scraper.scrape_landmarks.each.with_index(1) do |winner, index|
|
120
|
+
puts "#{index}: #{winner.name}- #{winner.location}"
|
121
|
+
end
|
122
|
+
return nil
|
123
|
+
end
|
124
|
+
|
125
|
+
def museums
|
126
|
+
Travel::Scraper.scrape_museums.each.with_index(1) do |winner, index|
|
127
|
+
puts "#{index}: #{winner.name}- #{winner.location}"
|
128
|
+
end
|
129
|
+
return nil
|
130
|
+
end
|
131
|
+
|
132
|
+
def restaurants
|
133
|
+
Travel::Scraper.scrape_restaurants.each.with_index(1) do |winner, index|
|
134
|
+
puts "#{index}: #{winner.name}- #{winner.location} - #{winner.cuisine}"
|
135
|
+
end
|
136
|
+
return nil
|
137
|
+
end
|
138
|
+
|
139
|
+
|
140
|
+
end
|
data/lib/travel/list.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
class Travel::List
|
2
|
+
|
3
|
+
def self.choices_awards
|
4
|
+
puts <<-DOC
|
5
|
+
1 - All Inclusive Resorts,
|
6
|
+
2 - Attractions,
|
7
|
+
3 - Beaches,
|
8
|
+
4 - Destinations,
|
9
|
+
5 - Destinations on the Rise,
|
10
|
+
6 - Hotels,
|
11
|
+
7 - Islands,
|
12
|
+
8 - Landmarks,
|
13
|
+
9 - Museums,
|
14
|
+
10 - Restaurants
|
15
|
+
DOC
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,124 @@
|
|
1
|
+
|
2
|
+
class Travel::Scraper
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
def self.scrape_beaches
|
7
|
+
doc = Nokogiri::HTML(open("https://www.tripadvisor.com/TravelersChoice-Beaches"))
|
8
|
+
category = doc.css("h1.laurelhdr").text
|
9
|
+
|
10
|
+
winners = doc.css("div.posRel.tcInner").map do |winner|
|
11
|
+
name = winner.css(".mainName a").first.text
|
12
|
+
location = winner.css(".smaller a").first.text
|
13
|
+
best_time = winner.css(".besttime").text
|
14
|
+
Beach.new(name, location, best_time)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
def self.scrape_attractions
|
21
|
+
doc = Nokogiri::HTML(open("https://www.tripadvisor.com/TravelersChoice-Attractions"))
|
22
|
+
category = doc.css("h1.laurelhdr").text
|
23
|
+
|
24
|
+
winners = doc.css("div.posRel.tcInner").map do |winner|
|
25
|
+
name = winner.css(".mainName a").first.text
|
26
|
+
location = winner.css(".smaller a").first.text
|
27
|
+
Attraction.new(name, location)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
def self.scrape_all_inclusive_resorts
|
34
|
+
doc = Nokogiri::HTML(open("https://www.tripadvisor.com/TravelersChoice-AllInclusive-cTop-g1"))
|
35
|
+
category = doc.css("h1.laurelhdr").text
|
36
|
+
|
37
|
+
winners = doc.css("div.posRel.tcInner").map do |winner|
|
38
|
+
name = winner.css(".mainName a").first.text
|
39
|
+
location = winner.css(".smaller a").first.text
|
40
|
+
AllInclusiveResort.new(name, location)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
def self.scrape_destinations
|
47
|
+
doc = Nokogiri::HTML(open("https://www.tripadvisor.com/TravelersChoice-Destinations"))
|
48
|
+
category = doc.css("h1.laurelhdr").text
|
49
|
+
|
50
|
+
winners = doc.css("div.posRel.tcInner").map do |winner|
|
51
|
+
name = winner.css(".mainName a").first.text
|
52
|
+
Destination.new(name)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
|
57
|
+
def self.scrape_destinations_on_the_rise
|
58
|
+
doc = Nokogiri::HTML(open("https://www.tripadvisor.com/TravelersChoice-DestinationsontheRise"))
|
59
|
+
category = doc.css("h1.laurelhdr").text
|
60
|
+
|
61
|
+
winners = doc.css("div.posRel.tcInner").map do |winner|
|
62
|
+
name = winner.css(".mainName a").first.text
|
63
|
+
DestinationOntheRise.new(name)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
def self.scrape_hotels
|
70
|
+
doc = Nokogiri::HTML(open("https://www.tripadvisor.com/TravelersChoice-Hotels"))
|
71
|
+
category = doc.css("h1.laurelhdr").text
|
72
|
+
|
73
|
+
winners = doc.css("div.posRel.tcInner").map do |winner|
|
74
|
+
name = winner.css(".mainName.extra a").first.text
|
75
|
+
location = winner.css(".smaller a").first.text
|
76
|
+
Hotel.new(name, location)
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
def self.scrape_islands
|
81
|
+
doc = Nokogiri::HTML(open("https://www.tripadvisor.com/TravelersChoice-Islands"))
|
82
|
+
category = doc.css("h1.laurelhdr").text
|
83
|
+
|
84
|
+
winners = doc.css("div.posRel.tcInner").map do |winner|
|
85
|
+
name = winner.css(".mainName a").first.text
|
86
|
+
Island.new(name)
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
def self.scrape_landmarks
|
91
|
+
doc = Nokogiri::HTML(open("https://www.tripadvisor.com/TravelersChoice-Landmarks"))
|
92
|
+
category = doc.css("h1.laurelhdr").text
|
93
|
+
|
94
|
+
winners = doc.css("div.posRel.tcInner").map do |winner|
|
95
|
+
name = winner.css(".mainName a").first.text
|
96
|
+
location = winner.css(".smaller a").first.text
|
97
|
+
Landmark.new(name, location)
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
def self.scrape_museums
|
102
|
+
doc = Nokogiri::HTML(open("https://www.tripadvisor.com/TravelersChoice-Museums"))
|
103
|
+
category = doc.css("h1.laurelhdr").text
|
104
|
+
|
105
|
+
winners = doc.css("div.posRel.tcInner").map do |winner|
|
106
|
+
name = winner.css(".mainName.extra a").first.text
|
107
|
+
location = winner.css(".smaller a").first.text
|
108
|
+
Museum.new(name, location)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
def self.scrape_restaurants
|
113
|
+
doc = Nokogiri::HTML(open("https://www.tripadvisor.com/TravelersChoice-Restaurants"))
|
114
|
+
category = doc.css("h1.laurelhdr").text
|
115
|
+
|
116
|
+
winners = doc.css("div.posRel.tcInner").map do |winner|
|
117
|
+
name = winner.css(".mainName a").first.text
|
118
|
+
location = winner.css(".smaller a").first.text
|
119
|
+
cuisine = winner.css(".cuisineTypes").text
|
120
|
+
Restaurant.new(name, location, cuisine)
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
end
|
data/lib/travel.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
#require "pry"
|
2
|
+
require "nokogiri"
|
3
|
+
require "open-uri"
|
4
|
+
|
5
|
+
require_relative "./travel/list"
|
6
|
+
require_relative "./travel/version"
|
7
|
+
require_relative "./travel/cli"
|
8
|
+
require_relative "./travel/scraper"
|
9
|
+
|
10
|
+
require_relative './travel/beaches'
|
11
|
+
require_relative './travel/attractions'
|
12
|
+
require_relative './travel/all_inclusive_resorts'
|
13
|
+
require_relative './travel/destinations'
|
14
|
+
require_relative './travel/destinations_on_the_rise'
|
15
|
+
require_relative './travel/hotels'
|
16
|
+
require_relative './travel/islands'
|
17
|
+
require_relative './travel/landmarks'
|
18
|
+
require_relative './travel/museums'
|
19
|
+
require_relative './travel/restaurants'
|
20
|
+
|
data/travel.gemspec
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'travel/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "travel"
|
8
|
+
spec.version = Travel::VERSION
|
9
|
+
spec.authors = ["ms94ap"]
|
10
|
+
spec.email = ["a_papacostas@yahoo.com"]
|
11
|
+
|
12
|
+
spec.summary = "This is a gem for www.tripadvisor.com World Travelers' Choice Awards"
|
13
|
+
spec.description = "It includes information for: Attractions, Beaches, All Inclusive Resorts, Destinations,
|
14
|
+
Destinations on the Rise, Hotels, Islands, Landmarks, Museums and Restaurants."
|
15
|
+
spec.homepage = "https://github.com/ms94ap/travel"
|
16
|
+
spec.license = "MIT"
|
17
|
+
|
18
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
19
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
20
|
+
# if spec.respond_to?(:metadata)
|
21
|
+
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
22
|
+
# else
|
23
|
+
# raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
24
|
+
# end
|
25
|
+
|
26
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
27
|
+
spec.bindir = "exe"
|
28
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
|
+
spec.require_paths = ["lib"]
|
30
|
+
|
31
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
32
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
33
|
+
spec.add_development_dependency 'pry', '~> 0.10.4'
|
34
|
+
spec.add_dependency "nokogiri"
|
35
|
+
|
36
|
+
end
|
metadata
ADDED
@@ -0,0 +1,127 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: travel
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- ms94ap
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-08-29 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.12'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.12'
|
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: pry
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.10.4
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.10.4
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: nokogiri
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: "It includes information for: Attractions, Beaches, All Inclusive Resorts,
|
70
|
+
Destinations, \n Destinations on the Rise, Hotels, Islands,
|
71
|
+
Landmarks, Museums and Restaurants."
|
72
|
+
email:
|
73
|
+
- a_papacostas@yahoo.com
|
74
|
+
executables: []
|
75
|
+
extensions: []
|
76
|
+
extra_rdoc_files: []
|
77
|
+
files:
|
78
|
+
- ".gitignore"
|
79
|
+
- CODE_OF_CONDUCT.md
|
80
|
+
- Gemfile
|
81
|
+
- LICENSE.txt
|
82
|
+
- README.md
|
83
|
+
- Rakefile
|
84
|
+
- bin/console
|
85
|
+
- bin/setup
|
86
|
+
- bin/travel
|
87
|
+
- lib/travel.rb
|
88
|
+
- lib/travel/all_inclusive_resorts.rb
|
89
|
+
- lib/travel/attractions.rb
|
90
|
+
- lib/travel/beaches.rb
|
91
|
+
- lib/travel/cli.rb
|
92
|
+
- lib/travel/destinations.rb
|
93
|
+
- lib/travel/destinations_on_the_rise.rb
|
94
|
+
- lib/travel/hotels.rb
|
95
|
+
- lib/travel/islands.rb
|
96
|
+
- lib/travel/landmarks.rb
|
97
|
+
- lib/travel/list.rb
|
98
|
+
- lib/travel/museums.rb
|
99
|
+
- lib/travel/restaurants.rb
|
100
|
+
- lib/travel/scraper.rb
|
101
|
+
- lib/travel/version.rb
|
102
|
+
- travel.gemspec
|
103
|
+
homepage: https://github.com/ms94ap/travel
|
104
|
+
licenses:
|
105
|
+
- MIT
|
106
|
+
metadata: {}
|
107
|
+
post_install_message:
|
108
|
+
rdoc_options: []
|
109
|
+
require_paths:
|
110
|
+
- lib
|
111
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '0'
|
116
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
|
+
requirements:
|
118
|
+
- - ">="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
121
|
+
requirements: []
|
122
|
+
rubyforge_project:
|
123
|
+
rubygems_version: 2.5.1
|
124
|
+
signing_key:
|
125
|
+
specification_version: 4
|
126
|
+
summary: This is a gem for www.tripadvisor.com World Travelers' Choice Awards
|
127
|
+
test_files: []
|