dustin-anderson-cli-app 0.1.0 → 0.1.1

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: 5a521a474e6ba3059f5f1845a4c70f5896a9396c
4
- data.tar.gz: ed62e77443d4a5b0ee243bd005b97aa4488fcf37
3
+ metadata.gz: d7bb4f01016ecd9eb6cc17ea8f77e01b03bfd573
4
+ data.tar.gz: 6043a0990a2d58a1c9313a13b6e42aa216862051
5
5
  SHA512:
6
- metadata.gz: 44a460b4a548a9fd87e40e71cf736320fc8462c2b42555f54f98ab0461fa177224f9bfad5609efd69428899f3d8f162d017fe25bf653bdbbaaf02d73be217092
7
- data.tar.gz: 1c4fcad81a2042fa53c16b3123afc9cbab0907ae24d0b01a8df407347f379502a6b34890f64de7cc9ab974790c4c030998230c95611507853a7162960e1c9932
6
+ metadata.gz: ec56a67620bfe40b0068fe594b2fb8c7d715ad3706225c11d4ef95ea9b40abf14bcc19b454e1272ba29c8180ee15997a59c58fcaf4de1f3b23ba41f6c962dba7
7
+ data.tar.gz: 9a21ac7925e2fa37877411c307e674d7521710d84d78f8d9cae87bfb6a32e5f92e7a22af65d159e0fb26e65033b0665081e5ecbfa4193b0cc633070f37534b94
Binary file
data/lib/CLI_class.rb CHANGED
@@ -19,7 +19,7 @@ module DustinAndersonCLIApp
19
19
  scrape = MovieScraper.new
20
20
  scrape.new_with_attributes
21
21
  while input.downcase != 'exit'
22
- input = gets.chomp
22
+ input = gets.strip!
23
23
  if input.downcase == 'top 10'
24
24
  DustinAndersonCLIApp::Movie.top_ten
25
25
  puts SUMMARY_REMINDER
data/lib/app/version.rb CHANGED
@@ -1,4 +1,3 @@
1
1
  module DustinAndersonCLIApp
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
4
-
@@ -48,13 +48,13 @@ module DustinAndersonCLIApp
48
48
  end
49
49
 
50
50
  def self.movie_summary
51
- another_summary = 'yes'
51
+ another_summary = ""
52
52
  while another_summary != 'options'
53
53
  if another_summary == 'exit'
54
54
  break
55
55
  end
56
56
  puts "Please enter the rank of the move you would like the summary of: "
57
- summary_input = gets.chomp
57
+ summary_input = gets.strip!
58
58
  if summary_input == 'exit'
59
59
  break
60
60
  end
@@ -63,16 +63,15 @@ module DustinAndersonCLIApp
63
63
  if film.rank == summary_input
64
64
  puts "#{film.title}:"
65
65
  puts film.summary
66
- puts "\nIf you would like a few more details about the movie enter 'more'.If you wnat another movie summary enter 'yes'. Else type 'options' for list of options."
67
- another_summary = gets.downcase.chomp
66
+ puts "\nIf you would like a few more details about the movie enter 'more'.If you want another movie summary enter 'yes' or press the enter key. Else type 'options' for list of options."
67
+ another_summary = gets.downcase.strip!
68
68
  if another_summary == 'more'
69
69
  puts "#{film.title}: "
70
70
  puts " Parental Rating: #{film.parental}\n Film Genre: #{film.genre}\n In Theatres: #{film.theatre_date}\n Studio: #{film.studio}\n"
71
- puts "\n.If you want another movie summary enter 'yes'. Else type 'options' for list of options."
72
- another_summary = gets.downcase.chomp
73
- if another_summary == 'options'
74
- break
75
- end
71
+ puts "\nIf you want another movie summary enter 'yes' or press the enter key. Else type 'options' for list of options."
72
+ another_summary = gets.downcase.strip!
73
+ elsif another_summary == 'options' || another_summary == ""
74
+ break
76
75
  end
77
76
  end
78
77
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dustin-anderson-cli-app
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
  - Dustin Anderson
@@ -87,6 +87,7 @@ files:
87
87
  - bin/console
88
88
  - bin/setup
89
89
  - config/environment.rb
90
+ - dustin-anderson-cli-app-0.1.0.gem
90
91
  - dustin-anderson-cli-app.gemspec
91
92
  - lib/CLI_class.rb
92
93
  - lib/app/version.rb