rottentomatoes 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -45,7 +45,7 @@ module RottenTomatoes
45
45
  url += "&type=imdb&id=%07d" % options[:imdb].to_i if (method == "movie_alias")
46
46
 
47
47
  response = get_url(url)
48
- return nil if(response.code.to_i != 200)
48
+ return nil if(response == false || response.code.to_i != 200)
49
49
  body = JSON(response.body)
50
50
 
51
51
  if (body["total"] == 0 && body["title"].nil?)
@@ -1,3 +1,3 @@
1
1
  module RottenTomatoes
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rottentomatoes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-23 00:00:00.000000000 Z
12
+ date: 2015-06-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler