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 +4 -4
- data/README.md +4 -0
- data/imdb_movies.gemspec +1 -1
- data/lib/imdb_movies/cli.rb +2 -2
- data/lib/imdb_movies/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 675d52e56e1355437050877ac17c7871380679d7
|
4
|
+
data.tar.gz: 40da35c6df6d21481ac42d1930219bd49c58dad2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/imdb_movies/cli.rb
CHANGED
@@ -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
|
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
|
data/lib/imdb_movies/version.rb
CHANGED