travel 0.1.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5dd8878585490e0b75f1d2bfbd0e0e40842379fb
4
- data.tar.gz: 61dd5294dbf11d9a07c1edb3ea65b44adc675db1
3
+ metadata.gz: 10befe82951e2d9b4fe933e4cfdda4cd33a1070e
4
+ data.tar.gz: 4fcb7f968f2dc4fa9b9796e2f177600427c1b07e
5
5
  SHA512:
6
- metadata.gz: 50ca947349f4e58e7f9b66198dbf1d862c1407377e1bb50be04ea57b9325b633d604333c97b8db09e71e17635237360c4964d39be6e435c24772c8ab9998e244
7
- data.tar.gz: d22238da172b72845778bb81434d8383be87d3daa57092aca5ca5d04b85cf1704f4bddfcd94bf397cac2784d04ea2005bce1fb2e159bdbd96ddc7273f1e995f8
6
+ metadata.gz: ccf7229691506bde3610b2b63b5cef4f553cf903d227a4147306926b0f76de53512a027b3ce43113db5005bfe039c25363bb222b1b63afc8d361c54bdcdd713f
7
+ data.tar.gz: ac8ee6a04ea9d994dc5bc81d97f4e5f63c0c215a9a66af8a80c711676b907e6308dd25d0347cdf050a06e0fa97e82506b03f3c93ae6628ad40e43fef2fcd0d69
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Travel
2
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.
3
+ It includes information for: Attractions, Beaches, All Inclusive Resorts, Destinations,
4
+ Destinations on the Rise, Hotels, Islands, Landmarks, Museums and Restaurants.
4
5
 
5
- TODO: Delete this and the text above, and describe your gem
6
6
 
7
7
  ## Installation
8
8
 
@@ -20,9 +20,7 @@ Or install it yourself as:
20
20
 
21
21
  $ gem install travel
22
22
 
23
- ## Usage
24
23
 
25
- TODO: Write usage instructions here
26
24
 
27
25
  ## Development
28
26
 
data/bin/travel CHANGED
@@ -2,5 +2,4 @@
2
2
 
3
3
  require "bundler/setup"
4
4
  require "travel"
5
- Travel::CLI.new.call
6
-
5
+ Travel::CLI.new.call
data/lib/travel/cli.rb CHANGED
@@ -4,7 +4,6 @@ class Travel::CLI
4
4
  puts "Welcome to World Travelers'Awards for #{Time.now.year}"
5
5
  list_awards
6
6
  menu
7
- goodbye
8
7
 
9
8
  end
10
9
 
@@ -16,44 +15,48 @@ class Travel::CLI
16
15
 
17
16
  def menu
18
17
  input = nil
19
- puts "Enter the number of the Award you wish to see, list to see the main menu or type exit."
18
+
20
19
  while input != "exit"
20
+ puts "Enter the number of the Award you wish to see, list to see the main menu or type exit."
21
21
  input = gets.strip.downcase
22
22
  case input
23
+
23
24
  when "1"
24
25
  puts "All Inclusive Resorts"
25
- puts all_inclusive_resorts
26
+ all_inclusive_resorts
26
27
  when "2"
27
28
  puts"Attractions"
28
- puts attractions
29
+ attractions
29
30
  when "3"
30
31
  puts"Beaches"
31
- puts beaches
32
+ beaches
32
33
  when "4"
33
34
  puts"Destinations"
34
- puts destinations
35
+ destinations
35
36
  when "5"
36
37
  puts"Destinations on the Rise"
37
- puts destinations_on_the_rise
38
+ destinations_on_the_rise
38
39
  when "6"
39
40
  puts"Hotels"
40
- puts hotels
41
+ hotels
41
42
  when "7"
42
43
  puts"Islands"
43
- puts islands
44
+ islands
44
45
  when "8"
45
46
  puts"Landmarks"
46
- puts landmarks
47
+ landmarks
47
48
  when "9"
48
49
  puts"Museums"
49
- puts museums
50
+ museums
50
51
  when "10"
51
52
  puts"Restaurants"
52
- puts restaurants
53
+ restaurants
53
54
  when "list"
54
55
  list_awards
56
+ when "exit"
57
+ goodbye
55
58
  else
56
- puts "Please type list or exit"
59
+ puts "Wrong Number!!!"
57
60
  end
58
61
  end
59
62
 
@@ -63,6 +66,7 @@ class Travel::CLI
63
66
 
64
67
  def goodbye
65
68
  puts "Thank you for visiting Travelers Choice Awards. Have a nice day!"
69
+ exit
66
70
  end
67
71
 
68
72
  def all_inclusive_resorts
data/lib/travel/list.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  class Travel::List
2
2
 
3
3
  def self.choices_awards
4
+
4
5
  puts <<-DOC
5
6
  1 - All Inclusive Resorts,
6
7
  2 - Attractions,
@@ -1,6 +1,7 @@
1
1
 
2
2
  class Travel::Scraper
3
3
 
4
+
4
5
 
5
6
 
6
7
  def self.scrape_beaches
@@ -1,3 +1,3 @@
1
1
  module Travel
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: travel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ms94ap
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-29 00:00:00.000000000 Z
11
+ date: 2016-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler