boxoffice-cli-gem 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
  SHA256:
3
- metadata.gz: e700e5893eea2cbcdea81076eda669462f6fcf9e152f5d5799764ed4ea9f55c4
4
- data.tar.gz: 0033959391cfd78e0bdaaca559f07fc185a249ec7e91b8c09247f2ad3fa20f76
3
+ metadata.gz: fce59457cc96f8ff96b543b4a4bbf5e0438a4590c0e111ebbbf75baa2de47720
4
+ data.tar.gz: 5b6f48ac30610c83c6f5bc53aca18401276be0d497b106cad22df6335ecc6367
5
5
  SHA512:
6
- metadata.gz: bb0e1ffaea61dbe7fdf479e7b8720d6930f6dd453c891e79bff51f92f69c86edf20ec659b5276277393b537d0c4230b177d2c5a569f9278e1b433f9a1288bb4e
7
- data.tar.gz: adb13af26633d1dfb4d1f752cace716e54305d677c98ef13a5f009016adbd7911fb0f65d5e81594fb8196e2d5a271ebb257128b8c7d9aaf1c89fdc4f04e04d32
6
+ metadata.gz: 3fc2f31c5fb32f9cc0bdc5572796cdabbe70d1ca72a462d56088b4c0d11646102b3aebe7c47477f2c244ef818ff0b6731b991269aa7db053d6df9b267736374c
7
+ data.tar.gz: df071e51aebaadf5e439c1ab130c8ec088f73e6e350815ad156ac32a2c2bb93bda91155a0fc2e03b45716394eb16bc7f96e04af89417a76f9cdc85ca116ac822
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --require spec_helper
Binary file
data/lib/boxoffice/cli.rb CHANGED
@@ -8,6 +8,7 @@
8
8
 
9
9
  def list_movies
10
10
  puts "Today's Top 3 Box Office Movies:"
11
+ puts " "
11
12
  @top_three = BoxOffice::Movies.today
12
13
  @top_three.each.with_index(1) do |movie, i|
13
14
  puts "#{i}. '#{movie.name}' - Rotton Tomatoes: #{movie.rt_score}"
@@ -17,11 +18,13 @@
17
18
  def options
18
19
  input = nil
19
20
  while input != "exit"
21
+ puts " "
20
22
  puts "Type in the number of the movie you'd like more information on. Type 'list' to see today's top 3 box office movies again. Type 'exit' to quit at any time."
21
23
  input = gets.strip
22
24
  if input.to_i > 0 && input.to_i < 4
23
25
  movie = @top_three[input.to_i - 1]
24
26
  puts "'#{movie.name}'"
27
+ puts " "
25
28
  puts "Rotton Tomatoes: #{movie.rt_score}"
26
29
  puts "Audience Score: #{movie.a_score}"
27
30
  puts "#{movie.cc}"
@@ -1,3 +1,3 @@
1
1
  module BoxOffice
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxoffice-cli-gem
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
  - "'Ruby Weiner'"
@@ -90,6 +90,7 @@ extensions: []
90
90
  extra_rdoc_files: []
91
91
  files:
92
92
  - ".gitignore"
93
+ - ".rspec"
93
94
  - CODE_OF_CONDUCT.md
94
95
  - Gemfile
95
96
  - Gemfile.lock
@@ -99,6 +100,7 @@ files:
99
100
  - bin/bestmovies
100
101
  - bin/console
101
102
  - bin/setup
103
+ - boxoffice-cli-gem-0.1.0.gem
102
104
  - boxoffice-cli-gem.gemspec
103
105
  - lib/boxoffice.rb
104
106
  - lib/boxoffice/cli.rb