tripadvisor_best 0.1.0 → 1.0.1
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 +4 -4
- data/lib/tripadvisor_best/cli.rb +7 -4
- data/lib/tripadvisor_best/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93628745e00cfa40e25fcd447bd27658ab78fbbc
|
4
|
+
data.tar.gz: 9b022fd04f47f899827fbd99309e8ec8880c00ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d71891a3f5da862d12ca9accd9479a45cf389adf38b9913bc9c3e25faafbfec7b80210faa2b1aa19313e142b797c1ab659e8122d0a215ecda4977b840afceda3
|
7
|
+
data.tar.gz: 7aae0ad169d783978a25086fbafc0242268c3fd74f990583d2347b66a8d8e72ab5b856ca25aba0cffeed73899e8b14c229a4d7dea66facbe7a22133eec1e0cdf
|
data/lib/tripadvisor_best/cli.rb
CHANGED
@@ -36,9 +36,11 @@ class TripAdvisorBest::CLI
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def welcome
|
39
|
-
puts "The TripAdvisor Traveler's Choice Awards are out."
|
39
|
+
puts "The TripAdvisor Traveler's Choice Awards are out.".colorize(:red)
|
40
|
+
puts ""
|
40
41
|
puts "Are you ready to travel the world?"
|
41
42
|
puts " (Type 'exit' to leave program.)"
|
43
|
+
puts ""
|
42
44
|
end
|
43
45
|
|
44
46
|
def menu
|
@@ -48,15 +50,15 @@ class TripAdvisorBest::CLI
|
|
48
50
|
input = gets.strip.downcase
|
49
51
|
case input
|
50
52
|
when "1"
|
51
|
-
puts "Here are the top 25 Museums in the world..."
|
53
|
+
puts "Here are the top 25 Museums in the world...".colorize(:red)
|
52
54
|
list_hightlights(sites[0][:class_name])
|
53
55
|
list_highlight_details(sites[0][:class_name])
|
54
56
|
when "2"
|
55
|
-
puts "Here are the top 25 Attractions in the world..."
|
57
|
+
puts "Here are the top 25 Attractions in the world...".colorize(:red)
|
56
58
|
list_hightlights(sites[1][:class_name])
|
57
59
|
list_highlight_details(sites[1][:class_name])
|
58
60
|
when "3"
|
59
|
-
puts "Here are the top 25 Landmarks in the world..."
|
61
|
+
puts "Here are the top 25 Landmarks in the world...".colorize(:red)
|
60
62
|
list_hightlights(sites[2][:class_name])
|
61
63
|
list_highlight_details(sites[2][:class_name])
|
62
64
|
when "list"
|
@@ -65,6 +67,7 @@ class TripAdvisorBest::CLI
|
|
65
67
|
goodbye
|
66
68
|
else
|
67
69
|
puts "I'm not sure what you want. Either type 'list' or 'exit'."
|
70
|
+
puts ""
|
68
71
|
end
|
69
72
|
end
|
70
73
|
end
|