imdb_movies 1.0.6 → 1.0.10

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: 0358af84ea07e6522acd36a70735567d372d46a0
4
- data.tar.gz: ae8259f1a5cedd56ed433956f827d388bff30957
3
+ metadata.gz: 675d52e56e1355437050877ac17c7871380679d7
4
+ data.tar.gz: 40da35c6df6d21481ac42d1930219bd49c58dad2
5
5
  SHA512:
6
- metadata.gz: d4ff009df862f8ca7cd9c95bcb02304cb17ca90ee9ad88307687489c2e8bd670553a7176bea63f59ddfd9aa4f2b1131e8459a8a000c1fde73eb018ae8abfc1d7
7
- data.tar.gz: 31014695b1c78565ce2976ac9265a0a127c67a9d48acbc24a232f3c573d301cb467cc99bb035b36ad59b47398c606fdd714e83bbd0f261d2bcf06d0aaf1f43cd
6
+ metadata.gz: a0285379e8d4df3a67dbd42125af9ba748a9bff2b47ed644adde951361a036bb35da41679f4c78ddfa7ec5737815eaf5ccfe376ca1be1446034111203879fb75
7
+ data.tar.gz: bbfc38b0cdbf88d534cc6120f002b36d619c51badb698d20bbd6060dcbadc78e7808ad531b819e2adb54362a68b656a5cc550c294ac0ad6cbb90422d852bc3d4
data/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  Welcome to IMDB Movies. This is a Ruby gem that works through CLI. It pulls the info for top current and upcoming films on IMDB's website. Use the CLI to navigate and display information about films you are curious about. Want to see the trailer? We can show it to you.
4
4
 
5
+ * Version 1.0.3 was downloaded about 100 times but open trailer feature only worked for Macs. Did not want to yank for those 100 people.
6
+ * Version 1.0.5 is a working version but code is not readable. Apologies if you were interested in looking at the code.
7
+ * Version 1.0.6 is the same as 1.0.5 in terms of functionality but code structure, design, and variable names were changed to improve readability. Load time is slightly longer though (about 1 sec).
8
+
5
9
  ## Usage
6
10
 
7
11
  When loaded, the movies will display in 3 categories: Opening This Week, Now Playing, and Coming Soon. The CLI works through text input and is not case sensitive.
data/imdb_movies.gemspec CHANGED
@@ -23,6 +23,6 @@ Gem::Specification.new do |spec|
23
23
 
24
24
  spec.add_development_dependency "bundler", "~> 1.10"
25
25
  spec.add_development_dependency "rake", "~> 10.0"
26
- spec.add_development_dependency "rspec"
26
+ spec.add_development_dependency "rspec"
27
27
  spec.add_development_dependency "pry"
28
28
  end
@@ -32,7 +32,7 @@ class ImdbMovies::CLI
32
32
  puts "The movie name does not have to be case sensitive to get the info."
33
33
  print "\nInput : "
34
34
 
35
- user_input = gets.strip.downcase
35
+ user_input = gets.strip.downcase.gsub(/[^\w\s]+/, '').squeeze(" ")
36
36
  input(user_input)
37
37
 
38
38
  # Only displays the menu again if they entered a movie name or 'menu'
@@ -84,7 +84,7 @@ class ImdbMovies::CLI
84
84
  movie = Movie.new(@all_movie_links[found_movie_index])
85
85
  movie.display_info
86
86
 
87
- print "\nDo you want to see the trailer on Youtube? Y / N "
87
+ print "\nDo you want to see the trailer on Youtube (Y/N)? "
88
88
  input = gets.strip.downcase
89
89
  movie.open_trailer if input == "yes" || input == "y"
90
90
  else
@@ -1,3 +1,3 @@
1
1
  module ImdbMovies
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imdb_movies
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - azheng249