pawesome_parks 0.1.2 → 0.1.3

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pawesome_parks/cli.rb +12 -12
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b30e7f4c423b63566e93c01a62984a36c924cc9582e40647aae22957fcdd632
4
- data.tar.gz: eaae4b9c6d2685705f7a50a6458fd8e89c6c9289c11351900d1cb3834d5169ea
3
+ metadata.gz: 3cfceaabccc8843c8ced3145ec6632910c9f8c3bd1232c66052b1d3233e9422a
4
+ data.tar.gz: 74aec0740139ceae5ab605b1650ecdb8b872778896ed0c7294715e90d4119649
5
5
  SHA512:
6
- metadata.gz: 836c9c54900e541358c75533ad8f4c855bad871589041a65dc7bbf3b6ae923a0b8c0328400d174cfc0802e97c9a6bb0f6cee34e15f8c80f106388fcdf9ddcecc
7
- data.tar.gz: c7cc5a210322d9bd1628b51091cbb8f509518072cd82c33c6e494f406d48f7ad37bbd5e1cf7cc2ee895bd2d72e01e0595780693ee9a5443802f5393f19387d3b
6
+ metadata.gz: 45de3ab79ae991f45fad642be9dafa0bd664b5e0f1dad13c96e595ab09a6080fecc3e799f48c3d517087a9957531d2dc610152f9099f85459e884887f6780ad0
7
+ data.tar.gz: 67b3af7ae1d404b49ff859e012bc7f146ae242c1a1951ee1d6d87e954d654e9c8c8bc4c8d1a1ab5c9b2c6f5438abee414dce77ca3e3d0b6d707e1f0c3411c345
@@ -8,7 +8,7 @@ class PawesomeParks::CLI
8
8
  ██╔═══╝ ██╔══██║██║███╗██║██╔══╝ ╚════██║██║ ██║██║╚██╔╝██║██╔══╝ ██╔═══╝ ██╔══██║██╔══██╗██╔═██╗ ╚════██║
9
9
  ██║ ██║ ██║╚███╔███╔╝███████╗███████║╚██████╔╝██║ ╚═╝ ██║███████╗ ██║ ██║ ██║██║ ██║██║ ██╗███████║
10
10
  ╚═╝ ╚═╝ ╚═╝ ╚══╝╚══╝ ╚══════╝╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝
11
- \n".light_green
11
+ \n".green
12
12
  puts "\nWelcome to Pawesome Parks!\n\n"
13
13
  puts "There are currently 51 dog-friendly parks within the City of Sydney council region in NSW, Australia. With a range of off-leash hours and other restrictions, this app will let you explore the most suitable park to take your furry friend!"
14
14
  retrieve_dog_parks
@@ -43,7 +43,7 @@ class PawesomeParks::CLI
43
43
  elsif choice.downcase == "exit"
44
44
  exit_app
45
45
  else
46
- puts "\nSorry, that is an invalid selection, please enter another option:".light_green
46
+ puts "\nSorry, that is an invalid selection, please enter another option:".green
47
47
  end
48
48
  end
49
49
  end
@@ -53,14 +53,14 @@ class PawesomeParks::CLI
53
53
  puts "1 - List all dog parks"
54
54
  puts "2 - Search for dog parks by suburb or postcode"
55
55
  puts "3 - View parks with unrestricted off-leash hours\n"
56
- puts "\nPlease select an option from the menu above by entering '1', '2', or '3' below. You can also enter 'exit' to leave the application and 'menu' to bring up this menu at any time:".light_green
56
+ puts "\nPlease select an option from the menu above by entering '1', '2', or '3' below. You can also enter 'exit' to leave the application and 'menu' to bring up this menu at any time:".green
57
57
  gets.strip.downcase
58
58
  end
59
59
 
60
60
  def list_dog_parks
61
61
  puts "\nAll Dog Parks:\n"
62
62
  PawesomeParks::Park.park_names.each { |park| puts park }
63
- puts "\nEnter one of the above park names to see more details, or enter 'menu' to return to the main menu:".light_green
63
+ puts "\nEnter one of the above park names to see more details, or enter 'menu' to return to the main menu:".green
64
64
  get_park_details_by_name
65
65
  end
66
66
 
@@ -72,31 +72,31 @@ class PawesomeParks::CLI
72
72
  puts ""
73
73
  chosen_park_instance = PawesomeParks::Park.find_by_name choice
74
74
  print_park chosen_park_instance
75
- puts "\nPlease enter another park name for more details or enter 'menu' to return to the main menu:".light_green
75
+ puts "\nPlease enter another park name for more details or enter 'menu' to return to the main menu:".green
76
76
  elsif choice == "exit"
77
77
  exit_app
78
78
  elsif choice == "menu"
79
79
  menu_selection
80
80
  else
81
- puts "\nInvalid park name. Please enter a park name included in the list above:".light_green
81
+ puts "\nInvalid park name. Please enter a park name included in the list above:".green
82
82
  end
83
83
  end
84
84
  end
85
85
 
86
86
  def search_for_park
87
- puts "\nPlease enter a suburb name or postcode within the City of Sydney:".light_green
87
+ puts "\nPlease enter a suburb name or postcode within the City of Sydney:".green
88
88
  loop do
89
89
  location = gets.strip.downcase
90
90
  if location.to_i != 0
91
91
  search_by_postcode location
92
- puts "\nPlease enter another postcode or suburb name for park details, enter 'menu' to return to the main menu:".light_green
92
+ puts "\nPlease enter another postcode or suburb name for park details, enter 'menu' to return to the main menu:".green
93
93
  elsif location == "exit"
94
94
  exit_app
95
95
  elsif location == "menu"
96
96
  menu_selection
97
97
  else
98
98
  search_by_suburb location
99
- puts "\nPlease enter another suburb name or postcode for park details, enter 'menu' to return to the main menu:".light_green
99
+ puts "\nPlease enter another suburb name or postcode for park details, enter 'menu' to return to the main menu:".green
100
100
  end
101
101
  end
102
102
  end
@@ -107,7 +107,7 @@ class PawesomeParks::CLI
107
107
  puts "\nDog parks at postcode #{location} include:\n\n"
108
108
  parks.each { |park| print_park park }
109
109
  else
110
- puts "\nUnable to locate a dog park at that postcode. Postcodes with a dog park include:\n".light_green
110
+ puts "\nUnable to locate a dog park at that postcode. Postcodes with a dog park include:\n".green
111
111
  puts PawesomeParks::Park.postcodes.each { |postcode| postcode }
112
112
  puts ""
113
113
  end
@@ -119,7 +119,7 @@ class PawesomeParks::CLI
119
119
  puts "\nDog parks in #{location.capitalize} include:\n\n"
120
120
  parks.each { |park| print_park park }
121
121
  else
122
- puts "\nUnable to locate a dog park at that suburb name. Suburbs with a dog park include:\n".light_green
122
+ puts "\nUnable to locate a dog park at that suburb name. Suburbs with a dog park include:\n".green
123
123
  PawesomeParks::Park.suburbs.each { |suburb| puts suburb.capitalize }
124
124
  puts ""
125
125
  end
@@ -129,7 +129,7 @@ class PawesomeParks::CLI
129
129
  puts "\nParks with unrestricted off-leash hours include:\n\n"
130
130
  parks = PawesomeParks::Park.unrestricted_off_leash_hours
131
131
  parks.each { |park| puts park.name }
132
- puts "\nEnter one of the above parks name's to see more details, or enter 'menu' to return to the main menu:".light_green
132
+ puts "\nEnter one of the above parks name's to see more details, or enter 'menu' to return to the main menu:".green
133
133
  get_park_details_by_name
134
134
  end
135
135
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pawesome_parks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lauren Giordano