upcoming_concerts 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5bc436aa49abe696b6c2165b979edab48c7dd7e7
4
- data.tar.gz: b781dfac7fc86fe73cdcc7e4486db96a844e357d
3
+ metadata.gz: 9b560aaddee06b5dd5687bef0a43f40c2a7a3b1c
4
+ data.tar.gz: 8d0ef1ad446a77f672c49a198ebb81d523c470e5
5
5
  SHA512:
6
- metadata.gz: ee939f5cb4aa877df820b5fcec994c026f90b341225a9fd9e1ff2675ac4f035dd15ee3815ed520261b3dea4630692f558159e1b46b0dcf056f76fc7b52e6db75
7
- data.tar.gz: 6befe623d6380a04a9d6aee261812c771de8ee2ceeeef3edd07e13610886a288888fd9f4fcefa8393afd1379cbf52bd8f8ea65bd76bcff56cb4896edf745ff9b
6
+ metadata.gz: a450c99c15336e7b164bd35fcac70b75d2c38910b1e691cc9833fb0f6a0476785ef8274b23cc047a34bbde84c27a74f0b2d656b900692c863b694b74f994ede5
7
+ data.tar.gz: cfff2fe8e7c646a0c4db1f1e16e3da739759cbde405ba39f981e317ae87ae8cf0437b040818732df5ecfe1cc322bb31e0941fcd4241fdebd1f01ff8bb40fee0b
@@ -8,40 +8,55 @@ class UpcomingConcerts::CLI
8
8
  end
9
9
 
10
10
  def show_concerts
11
+ puts "------------------------------------------------------"
11
12
  puts "Here are the next five concerts in the Phoenix Area:"
12
13
 
13
14
  Concerts.all.each_with_index do |num, x|
14
15
  x = 1
16
+
15
17
  puts "#{x}. " + Concerts.concert_1[:artist]
16
18
  puts "#{x + 1}. " + Concerts.concert_2[:artist]
17
19
  puts "#{x + 2}. " + Concerts.concert_3[:artist]
18
20
  puts "#{x + 3}. " + Concerts.concert_4[:artist]
19
21
  puts "#{x + 4}. " + Concerts.concert_5[:artist]
22
+ puts "------------------------------------------------------"
20
23
  end
21
24
  end
22
25
 
23
26
  def menu ##### This will redirect the user to the concert they are interested in ######
24
27
  input = nil
25
28
  while input != "exit"
29
+ puts "------------------------------------------------------"
26
30
  puts "Which concert would you like to know more about? Type 1 - 5, list, or type exit."
27
31
  input = gets.strip.downcase
28
32
 
29
33
  if input == "1"
30
34
  loop do
35
+ puts "------------------------------------------------------"
31
36
  puts "What would you like to know? Please Type: Date, Venue, City, Time, Day, All, or exit"
32
37
  one = gets.strip.downcase
33
38
  if one == "exit"
34
39
  break
35
40
  elsif one == "date"
41
+ puts "--------------------------------------------"
36
42
  puts "Concert Date: " + Concerts.concert_1[:date]
43
+ puts "--------------------------------------------"
37
44
  elsif one == "venue"
45
+ puts "--------------------------------------------"
38
46
  puts "Venue Location: " + Concerts.concert_1[:venue_name]
47
+ puts "--------------------------------------------"
39
48
  elsif one == "city"
49
+ puts "--------------------------------------------"
40
50
  puts "City: " + Concerts.concert_1[:city]
51
+ puts "--------------------------------------------"
41
52
  elsif one == "time"
53
+ puts "--------------------------------------------"
42
54
  puts "Concert Time: " + Concerts.concert_1[:time]
55
+ puts "--------------------------------------------"
43
56
  elsif one == "day"
57
+ puts "--------------------------------------------"
44
58
  puts "Concert Day: " + Concerts.concert_1[:day]
59
+ puts "--------------------------------------------"
45
60
  elsif one == "all"
46
61
  puts Concerts.call_1
47
62
  break
@@ -54,15 +69,25 @@ end
54
69
  if one == "exit"
55
70
  break
56
71
  elsif one == "date"
72
+ puts "--------------------------------------------"
57
73
  puts "Concert Date: " + Concerts.concert_2[:date]
74
+ puts "--------------------------------------------"
58
75
  elsif one == "venue"
76
+ puts "--------------------------------------------"
59
77
  puts "Venue Location: " + Concerts.concert_2[:venue_name]
78
+ puts "--------------------------------------------"
60
79
  elsif one == "city"
80
+ puts "--------------------------------------------"
61
81
  puts "City: " + Concerts.concert_2[:city]
82
+ puts "--------------------------------------------"
62
83
  elsif one == "time"
84
+ puts "--------------------------------------------"
63
85
  puts "Concert Time: " + Concerts.concert_2[:time]
86
+ puts "--------------------------------------------"
64
87
  elsif one == "day"
88
+ puts "--------------------------------------------"
65
89
  puts "Concert Day: " + Concerts.concert_2[:day]
90
+ puts "--------------------------------------------"
66
91
  elsif one == "all"
67
92
  puts Concerts.call_2
68
93
  break
@@ -75,15 +100,25 @@ end
75
100
  if one == "exit"
76
101
  break
77
102
  elsif one == "date"
103
+ puts "--------------------------------------------"
78
104
  puts "Concert Date: " + Concerts.concert_3[:date]
105
+ puts "--------------------------------------------"
79
106
  elsif one == "venue"
107
+ puts "--------------------------------------------"
80
108
  puts "Venue Location: " + Concerts.concert_3[:venue_name]
109
+ puts "--------------------------------------------"
81
110
  elsif one == "city"
111
+ puts "--------------------------------------------"
82
112
  puts "City: " + Concerts.concert_3[:city]
113
+ puts "--------------------------------------------"
83
114
  elsif one == "time"
115
+ puts "--------------------------------------------"
84
116
  puts "Concert Time: " + Concerts.concert_3[:time]
117
+ puts "--------------------------------------------"
85
118
  elsif one == "day"
119
+ puts "--------------------------------------------"
86
120
  puts "Concert Day: " + Concerts.concert_3[:day]
121
+ puts "--------------------------------------------"
87
122
  elsif one == "all"
88
123
  puts Concerts.call_3
89
124
  break
@@ -96,15 +131,25 @@ end
96
131
  if one == "exit"
97
132
  break
98
133
  elsif one == "date"
134
+ puts "--------------------------------------------"
99
135
  puts "Concert Date: " + Concerts.concert_4[:date]
136
+ puts "--------------------------------------------"
100
137
  elsif one == "venue"
138
+ puts "--------------------------------------------"
101
139
  puts "Venue Location: " + Concerts.concert_4[:venue_name]
140
+ puts "--------------------------------------------"
102
141
  elsif one == "city"
142
+ puts "--------------------------------------------"
103
143
  puts "City: " + Concerts.concert_4[:city]
144
+ puts "--------------------------------------------"
104
145
  elsif one == "time"
146
+ puts "--------------------------------------------"
105
147
  puts "Concert Time: " + Concerts.concert_4[:time]
148
+ puts "--------------------------------------------"
106
149
  elsif one == "day"
150
+ puts "--------------------------------------------"
107
151
  puts "Concert Day: " + Concerts.concert_4[:day]
152
+ puts "--------------------------------------------"
108
153
  elsif one == "all"
109
154
  puts Concerts.call_4
110
155
  break
@@ -117,15 +162,25 @@ end
117
162
  if one == "exit"
118
163
  break
119
164
  elsif one == "date"
165
+ puts "--------------------------------------------"
120
166
  puts "Concert Date: " + Concerts.concert_5[:date]
167
+ puts "--------------------------------------------"
121
168
  elsif one == "venue"
169
+ puts "--------------------------------------------"
122
170
  puts "Venue Location: " + Concerts.concert_5[:venue_name]
171
+ puts "--------------------------------------------"
123
172
  elsif one == "city"
173
+ puts "--------------------------------------------"
124
174
  puts "City: " + Concerts.concert_5[:city]
175
+ puts "--------------------------------------------"
125
176
  elsif one == "time"
177
+ puts "--------------------------------------------"
126
178
  puts "Concert Time: " + Concerts.concert_5[:time]
179
+ puts "--------------------------------------------"
127
180
  elsif one == "day"
181
+ puts "--------------------------------------------"
128
182
  puts "Concert Day: " + Concerts.concert_5[:day]
183
+ puts "--------------------------------------------"
129
184
  elsif one == "all"
130
185
  puts Concerts.call_5
131
186
  break
@@ -1,7 +1,7 @@
1
1
  require 'pry'
2
2
  class Concerts
3
3
 
4
- attr_accessor :name, :date, :ticket, :url, :venue
4
+ # attr_accessor :name, :date, :ticket, :url, :venue
5
5
 
6
6
  def self.all
7
7
 
@@ -1,3 +1,3 @@
1
1
  module UpcomingConcerts
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upcoming_concerts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - benser1
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-27 00:00:00.000000000 Z
11
+ date: 2016-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -101,6 +101,7 @@ files:
101
101
  - lib/upcoming_concerts/cli.rb
102
102
  - lib/upcoming_concerts/concerts.rb
103
103
  - lib/upcoming_concerts/version.rb
104
+ - upcoming_concerts-0.1.0.gem
104
105
  - upcoming_concerts.gemspec
105
106
  homepage: https://github.com/benser1/cli-upcoming-concerts
106
107
  licenses: