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 +4 -4
- data/dustin-anderson-cli-app-0.1.0.gem +0 -0
- data/lib/CLI_class.rb +1 -1
- data/lib/app/version.rb +1 -2
- data/lib/dustin_anderson_cli_app.rb +8 -9
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7bb4f01016ecd9eb6cc17ea8f77e01b03bfd573
|
4
|
+
data.tar.gz: 6043a0990a2d58a1c9313a13b6e42aa216862051
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
@@ -48,13 +48,13 @@ module DustinAndersonCLIApp
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def self.movie_summary
|
51
|
-
another_summary =
|
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.
|
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
|
67
|
-
another_summary = gets.downcase.
|
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 "\
|
72
|
-
another_summary = gets.downcase.
|
73
|
-
|
74
|
-
|
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.
|
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
|