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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8d75e9461d2f622ae77f3e1babf24baadd8d34b
4
- data.tar.gz: 4b23a127501e59fda0dd87fc7688cb86fb48fe5d
3
+ metadata.gz: 7feec09b179b7b0495d17cff34ab37fa8f1bc18f
4
+ data.tar.gz: f2f7f172f450881eb3c69ce9ed28ef9fadff7ab2
5
5
  SHA512:
6
- metadata.gz: 646cdd4387642cc5488f3d54e5a9686a22f22187e6ca2d4c46c7b1a2fa956be386dfb951102e7c868b02b8cba608d627507bfeb3a8cdbc239f55d989a531306b
7
- data.tar.gz: ae214667d353da87cc2e71cad6d6742299fdc1a24fd06275b43fbbc54bfe99719daf2acf756337f595aff0db0fcd148cd0c1b059c1510129cc5c535eab8c7ed9
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
@@ -32,5 +32,9 @@ class Showtimes::Theater
32
32
  def self.all
33
33
  @@all_theaters
34
34
  end
35
+
36
+ def self.clear
37
+ @@all_theaters.clear
38
+ end
35
39
 
36
40
  end
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.1.14
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 we will tell you what movies you can go see tonight.
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: