neo-tmdb 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Changelog.markdown +6 -0
- data/lib/tmdb/person.rb +4 -2
- data/lib/tmdb/version.rb +1 -1
- metadata +2 -2
data/Changelog.markdown
CHANGED
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
|
-
|
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
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.
|
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-
|
12
|
+
date: 2012-06-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|