box-office-cli 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 5d5c9b82d14e579bc298fffb028786a69cbafaaee19cd6e4f4ee8a0fedce3c3f
4
- data.tar.gz: a01ef0f1d81dd2c947bc9370e40d568ea6c0b696f473a0b2bb83d695c2994d0b
3
+ metadata.gz: 2db3e8d8d4c070cb193b30668a6965607fa8f0840f3d3fd57c96836895d37811
4
+ data.tar.gz: cb8c03f19bda4e492a1c2ca82940e97d3833e64dccc5625b6508b546c0954ba6
5
5
  SHA512:
6
- metadata.gz: 65e680956850fed991766a5f7bee9c340d57f8dbc77519e44c5aa1c8d997888ba4a3989c25058ecc7ab127082d5be8d8e01172cc1e8a3180e61a4948f4db051d
7
- data.tar.gz: e13e67249220735ce0fa6250ac925c3607536dada66f92dc3875955f672abc5fe6d040703f0242a4a3bee69b44f8629aa8cc7ecce1bb621c432792cfbbf0d98f
6
+ metadata.gz: dd57b5cf5c00bf1f8a69e2a555b7396899d4ba72634fe9e14fde7cf26d38b659dd91238b1bb93dcaae9767d88dbfb0fc9a69579cdbf1ff5cc2859368f7721a43
7
+ data.tar.gz: e7b7151e26748e91590065aa601f5be35455f91bb8f1e7ee0151c81c77316402f674c758a55c3a13b470f3b9ba5cc9aa9f1cbaee876d384d89c90bd40aabbcd2
@@ -28,17 +28,16 @@ class BoxOffice::CLI
28
28
 
29
29
  def display_movie_info(user_input)
30
30
  movie = BoxOffice::Movie.all[user_input]
31
-
32
31
  puts "---"
33
32
  puts "#{movie.title}".colorize(:red)
34
- puts "#{movie.synopsis}" if !movie.synopsis.nil?
35
- puts "" if !movie.synopsis.nil?
33
+ puts "#{movie.synopsis}" if movie.synopsis != ""
34
+ puts "" if movie.synopsis != ""
36
35
  puts "Genres:".colorize(:blue) + " #{movie.genres}" if !movie.genres.nil?
37
36
  puts "Rating:".colorize(:blue) + " #{movie.rating}" if !movie.rating.nil?
38
37
  puts "Studio:".colorize(:blue) + " #{movie.studio}" if !movie.studio.nil?
39
38
  puts "Director:".colorize(:blue) + " #{movie.director}" if !movie.director.nil?
40
39
  puts "Writers:".colorize(:blue) + " #{movie.writers}" if !movie.writers.nil?
41
- puts "Cast:".colorize(:blue) + " #{movie.cast}" if !movie.cast.nil?
40
+ puts "Cast:".colorize(:blue) + " #{movie.cast}" if movie.cast != ""
42
41
  puts "Release Date:".colorize(:blue) + " #{movie.release_date}" if !movie.release_date.nil?
43
42
  puts "Runtime:".colorize(:blue) + " #{movie.runtime}" if !movie.runtime.nil?
44
43
  puts "Critic Score:".colorize(:blue) + " #{movie.critic_score}"
@@ -1,3 +1,3 @@
1
1
  module BoxOffice
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: box-office-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Mei