movies_client 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
@@ -24,7 +24,7 @@ class TmdbClient
|
|
24
24
|
f = movie.length
|
25
25
|
i = 0
|
26
26
|
while i != f
|
27
|
-
unless movie[i][:release_date]
|
27
|
+
unless movie[i][:release_date].nil? || movie[i][:release_date].empty?
|
28
28
|
date = Date.parse movie[i][:release_date]
|
29
29
|
if date.year == Date.today.year or date.year == Date.today.prev_year
|
30
30
|
movie_id = movie[i][:id]
|
data/test/movies_client_test.rb
CHANGED
@@ -50,7 +50,7 @@ class MoviesClientTest < Test::Unit::TestCase
|
|
50
50
|
should 'do the whole process' do
|
51
51
|
#Define result expected
|
52
52
|
result_expected = {}
|
53
|
-
@result = MoviesClient.get_info(File.join('..', 'data', '
|
53
|
+
@result = MoviesClient.get_info(File.join('..', 'data', 'PROG_GB_JUILLET_2015.ods'), '7f0b035c164b74d6eec69ebcd8ff8d12', 'w500')
|
54
54
|
assert_equal result_expected, @result
|
55
55
|
end
|
56
56
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: movies_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.15
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-07-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|