showtimes 0.1.14 → 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 +4 -4
- data/lib/showtimes/app.rb +20 -0
- data/lib/showtimes/theater.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7feec09b179b7b0495d17cff34ab37fa8f1bc18f
|
4
|
+
data.tar.gz: f2f7f172f450881eb3c69ce9ed28ef9fadff7ab2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87be228abeb955117100d3ce2cbdaf80459985b42ee1eda50093ea784a92d2ab9de64b15488797b297f35bf3399639259151abbc55966211cd0aef0cdd7cfd7d
|
7
|
+
data.tar.gz: 3e6aa1447f04b76bb1153d396050c27d34856becf87e3c8917eb4f721eae8f8e8302eb1a4f7f2d9000c863acf8d3e3f4355ed6eeb3415333371582d5954cfc74
|
data/lib/showtimes/app.rb
CHANGED
@@ -13,6 +13,7 @@ class Showtimes::App
|
|
13
13
|
|
14
14
|
def start
|
15
15
|
#TODO: offer a menu upon each prompt (go back, exit, etc)
|
16
|
+
Showtimes::Theater.clear
|
16
17
|
|
17
18
|
puts "What is your zipcode?"
|
18
19
|
begin
|
@@ -29,6 +30,25 @@ class Showtimes::App
|
|
29
30
|
puts "For which theater do you wish to see the showtimes? (enter the number)"
|
30
31
|
theater_choice = gets.strip.to_i
|
31
32
|
display_showtimes(theater_choice)
|
33
|
+
|
34
|
+
what_next
|
35
|
+
end
|
36
|
+
|
37
|
+
def what_next
|
38
|
+
puts "\n"
|
39
|
+
puts "That's it! What do you want to do next?"
|
40
|
+
puts "1: try another zipcode"
|
41
|
+
puts "2: exit"
|
42
|
+
next_up = gets.strip
|
43
|
+
if next_up == "1"
|
44
|
+
start
|
45
|
+
else
|
46
|
+
puts "***************************************"
|
47
|
+
puts " BYEEEEEEEEEEE. See you soon! ♥ "
|
48
|
+
puts "***************************************"
|
49
|
+
puts "\n"
|
50
|
+
exit
|
51
|
+
end
|
32
52
|
end
|
33
53
|
|
34
54
|
def display_theaters
|
data/lib/showtimes/theater.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: showtimes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marine Boudeau
|
@@ -108,7 +108,7 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 0.10.4
|
111
|
-
description: Enter your zipcode, and
|
111
|
+
description: Enter your zipcode, and see what movies you can go see today.
|
112
112
|
email:
|
113
113
|
- m14868@gmail.com
|
114
114
|
executables:
|