tmdb_rexx 0.1.0 → 0.2.0
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.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/bin/console +0 -0
- data/bin/setup +0 -0
- data/lib/tmdb_rexx/client/person.rb +168 -0
- data/lib/tmdb_rexx/client.rb +2 -0
- data/lib/tmdb_rexx/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b386c7c20aad837f72bdc96f1b6856263cfb008
|
4
|
+
data.tar.gz: 3c8fcaa672fd2d1252120b3a31d7bde0b812627c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3358486bd25dfa29ebc5218c8aa18aefcbab67d3a7450a82857aa5980ec0b6c95ed03bc08ef4dc62aab76e1f551afbe0ebefc57d4303dbb0fb11d9fbe4b5d6e
|
7
|
+
data.tar.gz: 4cb5d2ab5b8032c49936619cd32164a9542a9a41e6ca03b27cf3b5d0b94e32a63520d3c24aae07eccc585ed2e98ad941e74b8c32f66fb78c90c1c753e713df6d
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# TmdbRexx
|
2
2
|
|
3
|
-
[](https://travis-ci.org/jasontruluck/tmdb_rexx)
|
4
|
+
[](https://codeclimate.com/github/jasontruluck/tmdb_rexx)
|
5
|
+
[](https://codeclimate.com/github/jasontruluck/tmdb_rexx/coverage)
|
6
6
|
|
7
7
|
This is TmdbRexx a simple wrapper around the TMDB API v3 written in ruby.
|
8
8
|
|
@@ -24,7 +24,7 @@ Or install it yourself as:
|
|
24
24
|
|
25
25
|
## Documentation
|
26
26
|
|
27
|
-
http://rdoc.info/github/
|
27
|
+
http://rdoc.info/github/jasontruluck/tmdb_rexx/master/index
|
28
28
|
|
29
29
|
## Configuration
|
30
30
|
|
data/bin/console
CHANGED
File without changes
|
data/bin/setup
CHANGED
File without changes
|
@@ -0,0 +1,168 @@
|
|
1
|
+
module TmdbRexx
|
2
|
+
class Client
|
3
|
+
module Person
|
4
|
+
RESOURCE = "person".freeze
|
5
|
+
|
6
|
+
# Get the general person information for a specific id.
|
7
|
+
#
|
8
|
+
# @see http://docs.themoviedb.apiary.io/#reference/person/personid
|
9
|
+
#
|
10
|
+
# @param [String] id the person id
|
11
|
+
#
|
12
|
+
# @return [Hashie::Mash] person response
|
13
|
+
#
|
14
|
+
# @example Get the person api response
|
15
|
+
# TmdbRexx::Client.person("person-id")
|
16
|
+
def person(person_id, options = {})
|
17
|
+
get([RESOURCE, person_id].join("/"), options)
|
18
|
+
end
|
19
|
+
|
20
|
+
# Get the movie credits for a specific person id.
|
21
|
+
#
|
22
|
+
# @see http://docs.themoviedb.apiary.io/#reference/people/personidmoviecredits
|
23
|
+
#
|
24
|
+
# @param [String] id the person id
|
25
|
+
#
|
26
|
+
# @return [Hashie::Mash] person response
|
27
|
+
#
|
28
|
+
# @example Get the person movie credits api response
|
29
|
+
# TmdbRexx::Client.person_movie_credits("person-id")
|
30
|
+
def person_movie_credits(person_id, options = {})
|
31
|
+
get([RESOURCE, person_id, "movie_credits"].join("/"), options)
|
32
|
+
end
|
33
|
+
|
34
|
+
# Get the TV credits for a specific person id.To get the expanded details
|
35
|
+
# for each record, call the /credit method with the provided credit_id.
|
36
|
+
# This will provide details about which episode and/or season the credit
|
37
|
+
# is for.
|
38
|
+
#
|
39
|
+
# @see http://docs.themoviedb.apiary.io/#reference/people/personidtvcredits
|
40
|
+
#
|
41
|
+
# @param [String] id the person id
|
42
|
+
#
|
43
|
+
# @return [Hashie::Mash] person response
|
44
|
+
#
|
45
|
+
# @example Get the person tv credits api response
|
46
|
+
# TmdbRexx::Client.person_tv_credits("person-id")
|
47
|
+
def person_tv_credits(person_id, options = {})
|
48
|
+
get([RESOURCE, person_id, "tv_credits"].join("/"), options)
|
49
|
+
end
|
50
|
+
|
51
|
+
# Get the combined (movie and TV) credits for a specific person id.To get
|
52
|
+
# the expanded details for each TV record, call the /credit method with
|
53
|
+
# the provided credit_id. This will provide details about which episode
|
54
|
+
# and/or season the credit is for.
|
55
|
+
#
|
56
|
+
# @see http://docs.themoviedb.apiary.io/#reference/people/personidcombinedcredits
|
57
|
+
#
|
58
|
+
# @param [String] id the person id
|
59
|
+
#
|
60
|
+
# @return [Hashie::Mash] person response
|
61
|
+
#
|
62
|
+
# @example Get the person combined credits api response
|
63
|
+
# TmdbRexx::Client.person_combined_credits("person-id")
|
64
|
+
def person_combined_credits(person_id, options = {})
|
65
|
+
get([RESOURCE, person_id, "combined_credits"].join("/"), options)
|
66
|
+
end
|
67
|
+
|
68
|
+
# Get the external ids for a specific person id.
|
69
|
+
#
|
70
|
+
# @see http://docs.themoviedb.apiary.io/#reference/people/personidexternalids
|
71
|
+
#
|
72
|
+
# @param [String] id the person id
|
73
|
+
#
|
74
|
+
# @return [Hashie::Mash] person response
|
75
|
+
#
|
76
|
+
# @example Get the person external ids api response
|
77
|
+
# TmdbRexx::Client.person_external_ids("person-id")
|
78
|
+
def person_external_ids(person_id, options = {})
|
79
|
+
get([RESOURCE, person_id, "external_ids"].join("/"), options)
|
80
|
+
end
|
81
|
+
|
82
|
+
# Get the images for a specific person id.
|
83
|
+
#
|
84
|
+
# @see http://docs.themoviedb.apiary.io/#reference/people/personidimages
|
85
|
+
#
|
86
|
+
# @param [String] id the person id
|
87
|
+
#
|
88
|
+
# @return [Hashie::Mash] person response
|
89
|
+
#
|
90
|
+
# @example Get the person images api response
|
91
|
+
# TmdbRexx::Client.person_images("person-id")
|
92
|
+
def person_images(person_id, options = {})
|
93
|
+
get([RESOURCE, person_id, "images"].join("/"), options)
|
94
|
+
end
|
95
|
+
|
96
|
+
# Get the images that have been tagged with a specific person id. We
|
97
|
+
# return all of the image results with a media object mapped for each
|
98
|
+
# image.
|
99
|
+
#
|
100
|
+
# @see http://docs.themoviedb.apiary.io/#reference/people/personidtaggedimages
|
101
|
+
#
|
102
|
+
# @param [String] id the person id
|
103
|
+
#
|
104
|
+
# @return [Hashie::Mash] person response
|
105
|
+
#
|
106
|
+
# @example Get the person tagged images api response
|
107
|
+
# TmdbRexx::Client.tagged_images("person-id")
|
108
|
+
def tagged_images(person_id, options = {})
|
109
|
+
get([RESOURCE, person_id, "tagged_images"].join("/"), options)
|
110
|
+
end
|
111
|
+
|
112
|
+
# Get the person profile images for a specific person id.
|
113
|
+
# This is a convenience method base on .person_images
|
114
|
+
#
|
115
|
+
# @param [String] id the person id
|
116
|
+
#
|
117
|
+
# @return [Hashie::Mash] person response
|
118
|
+
#
|
119
|
+
# @example Get the person profile images
|
120
|
+
# TmdbRexx::Client.person_profiles("person-id")
|
121
|
+
def person_profiles(person_id, options = {})
|
122
|
+
get([RESOURCE, person_id, "images"].join("/"), options).profiles
|
123
|
+
end
|
124
|
+
|
125
|
+
# Get the changes made to the movie.
|
126
|
+
#
|
127
|
+
# @see http://docs.themoviedb.apiary.io/#reference/people/personidchanges
|
128
|
+
#
|
129
|
+
# @param [String] id the person id
|
130
|
+
#
|
131
|
+
# @return [Hashie::Mash] person response
|
132
|
+
#
|
133
|
+
# @example Get the person changes
|
134
|
+
# TmdbRexx::Client.person_changes("person-id")
|
135
|
+
def person_changes(person_id, options = {})
|
136
|
+
get([RESOURCE, person_id, "changes"].join("/"), options)
|
137
|
+
end
|
138
|
+
|
139
|
+
# Get the latest movie id.
|
140
|
+
#
|
141
|
+
# @see http://docs.themoviedb.apiary.io/#reference/people/personidlatest
|
142
|
+
#
|
143
|
+
# @param [String] id the person id
|
144
|
+
#
|
145
|
+
# @return [Hashie::Mash] person response
|
146
|
+
#
|
147
|
+
# @example Get the person latest
|
148
|
+
# TmdbRexx::Client.latest_person("person-id")
|
149
|
+
def latest_person(person_id, options = {})
|
150
|
+
get([RESOURCE, "latest"].join("/"), options)
|
151
|
+
end
|
152
|
+
|
153
|
+
# Get the list of popular movies on The Movie Database. This list refreshes every day.
|
154
|
+
#
|
155
|
+
# @see http://docs.themoviedb.apiary.io/#reference/people/personidpopular
|
156
|
+
#
|
157
|
+
# @param [String] id the person id
|
158
|
+
#
|
159
|
+
# @return [Hashie::Mash] person response
|
160
|
+
#
|
161
|
+
# @example Get the people popular_people
|
162
|
+
# TmdbRexx::Client.popular_people("person-id")
|
163
|
+
def popular_people(person_id, options = {})
|
164
|
+
get([RESOURCE, "popular"].join("/"), options)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
data/lib/tmdb_rexx/client.rb
CHANGED
@@ -18,6 +18,7 @@ require 'tmdb_rexx/client/keyword'
|
|
18
18
|
require 'tmdb_rexx/client/network'
|
19
19
|
require 'tmdb_rexx/client/review'
|
20
20
|
require 'tmdb_rexx/client/timezone'
|
21
|
+
require 'tmdb_rexx/client/person'
|
21
22
|
|
22
23
|
module TmdbRexx
|
23
24
|
class Client
|
@@ -40,6 +41,7 @@ module TmdbRexx
|
|
40
41
|
include TmdbRexx::Client::Network
|
41
42
|
include TmdbRexx::Client::Review
|
42
43
|
include TmdbRexx::Client::Timezone
|
44
|
+
include TmdbRexx::Client::Person
|
43
45
|
|
44
46
|
def initialize(options = {})
|
45
47
|
TmdbRexx::Configuration.keys.each do |key|
|
data/lib/tmdb_rexx/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tmdb_rexx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Truluck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -211,6 +211,7 @@ files:
|
|
211
211
|
- lib/tmdb_rexx/client/keyword.rb
|
212
212
|
- lib/tmdb_rexx/client/movie.rb
|
213
213
|
- lib/tmdb_rexx/client/network.rb
|
214
|
+
- lib/tmdb_rexx/client/person.rb
|
214
215
|
- lib/tmdb_rexx/client/review.rb
|
215
216
|
- lib/tmdb_rexx/client/timezone.rb
|
216
217
|
- lib/tmdb_rexx/configuration.rb
|
@@ -240,8 +241,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
240
241
|
version: '0'
|
241
242
|
requirements: []
|
242
243
|
rubyforge_project:
|
243
|
-
rubygems_version: 2.4.
|
244
|
+
rubygems_version: 2.4.6
|
244
245
|
signing_key:
|
245
246
|
specification_version: 4
|
246
247
|
summary: Ruby wrapper for TMDB API
|
247
248
|
test_files: []
|
249
|
+
has_rdoc:
|