neo-tmdb 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog.markdown CHANGED
@@ -4,6 +4,12 @@
4
4
 
5
5
  Nothing yet.
6
6
 
7
+ ## 0.3.1 (2012-06-27)
8
+
9
+ Fixes:
10
+
11
+ * Return nil from `Person#profile_image_url` when `Person#profile_path` is nil.
12
+
7
13
  ## 0.3.0 (2012-06-25)
8
14
 
9
15
  New features:
data/lib/tmdb/person.rb CHANGED
@@ -41,10 +41,12 @@ module TMDb
41
41
 
42
42
  # Returns a URL for the person's profile image at the given +size+. Valid
43
43
  # sizes should be discovered via the +Configuration.image_profile_sizes+
44
- # method.
44
+ # method. Returns nil if the person does not have a profile image.
45
45
  #
46
46
  def profile_image_url(size)
47
- [TMDb.configuration.image_base_url, size, profile_path].join
47
+ if profile_path
48
+ [TMDb.configuration.image_base_url, size, profile_path].join
49
+ end
48
50
  end
49
51
  end
50
52
  end
data/lib/tmdb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module TMDb
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo-tmdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
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: 2012-06-25 00:00:00.000000000 Z
12
+ date: 2012-06-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday