girls_stem_camps 0.4.1 → 0.4.2

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: 8d8cd79cb842d1295f2ff69ae36f4362ae0c96e7
4
- data.tar.gz: b913f997f506219ebf1bd7c2a0059d048b5f5395
3
+ metadata.gz: 29e9c7f5151c3262466edb9897db401c93f51e42
4
+ data.tar.gz: c02277415871d1dbaeffdae5de216b5ca112a059
5
5
  SHA512:
6
- metadata.gz: d2e117b831e183d77a4eda53c78548711e0269349b077821d980249282864747e5f4eb59e4c3ecebbe8321e64cb67fa1e800284da8841111d0fa060461aece66
7
- data.tar.gz: 71a8c1e7ea4f401fc223a982e1042d17e8d3f2782d998cb2551755ef15ad71433213fc92ffd09d3306601e6d9d95b3d1e94d8ee3b00d3297587732974d4eb7c4
6
+ metadata.gz: 0231613140b058248966d5af88d549a9d3ef190bca8be317dd74a99df88b706f325c3f8648925d0e958f9c1404f28bbb03c36115de29f42b5777dc0caa002725
7
+ data.tar.gz: 8eb857d8dd078747dc141af0faa2912375da84063075b21ced493cd80f0211701547ce8f46db7e163a8c805d980849bf9a575c33c1392399d06b7dddc5ce2880
Binary file
@@ -15,31 +15,31 @@ class GirlsStemCamps::CLI
15
15
  end
16
16
 
17
17
  def menu
18
- input = nil
19
- while input != "exit"
18
+ current_choice = nil
19
+ while current_choice != "exit"
20
20
  puts "Enter the number of the camp that you would like more information about"
21
- input = gets.strip.downcase
22
- if input.to_i.between?(1, @camps.size)
23
- puts @camps[input.to_i - 1].name
21
+ current_choice = gets.strip.downcase
22
+ if current_choice.to_i.between?(1, @camps.size)
23
+ puts @camps[current_choice.to_i - 1].name
24
24
  puts " "
25
25
  puts "Camp Price:"
26
- puts @camps[input.to_i - 1].price
26
+ puts @camps[current_choice.to_i - 1].price
27
27
  puts " "
28
28
  puts "Camp Dates:"
29
- puts @camps[input.to_i - 1].date
29
+ puts @camps[current_choice.to_i - 1].date
30
30
  puts " "
31
31
  puts "Camp Description:"
32
- puts @camps[input.to_i - 1].description
32
+ puts @camps[current_choice.to_i - 1].description
33
33
  puts " "
34
34
  puts "Camp Website:"
35
- puts @camps[input.to_i - 1].url
35
+ puts @camps[current_choice.to_i - 1].url
36
36
  puts " "
37
37
  puts "Would you like to open the website?"
38
38
  input = gets.strip.downcase
39
39
  if input == "yes"
40
- `open "#{@camps[input.to_i-1].url}"`
40
+ `open "#{@camps[current_choice.to_i-1].url}"`
41
41
  end
42
- elsif input == "list"
42
+ elsif current_choice == "list"
43
43
  list_camps
44
44
  else puts "Please enter exit, list, or a number"
45
45
  end
@@ -1,3 +1,3 @@
1
1
  module GirlsStemCamps
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: girls_stem_camps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - jmheyd
@@ -101,6 +101,7 @@ files:
101
101
  - bin/console
102
102
  - bin/girls-stem-camps
103
103
  - bin/setup
104
+ - girls_stem_camps-0.4.1.gem
104
105
  - girls_stem_camps.gemspec
105
106
  - lib/girls_stem_camps.rb
106
107
  - lib/girls_stem_camps/camp.rb