tmdb_rexx 0.6.1 → 0.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b22cc96af0758bc2bb98e90228abcbcb0b68836
4
- data.tar.gz: 19ab8f7c7bbab7af5e1094fb1d9818e669df13cf
3
+ metadata.gz: dc10255701dad5ddf24c0039b0508af355538a1c
4
+ data.tar.gz: 15ec16fd9386f502c7f36979e6f2eb7191d0e0bc
5
5
  SHA512:
6
- metadata.gz: 97c029079026b23ec390af557753069f5136b9fe343c9b7fb337ce048211b1fa24d03a4939b6efc3e9a88f18f255030d6e6c3aa476338e28532cce3406876495
7
- data.tar.gz: 0f14df21c674bd52a421cc53b79e027505a7769e72ac85e1f299826930aa5f1bfe425fc45e2c7f015cfcf8a302cbad12e4e021ba886384da5d41b8a7d4e73c37
6
+ metadata.gz: 6063792f3eb7bd395be2f1774a579785bcb98af660d1a6b99a3880567a3118cf445c22e4a8d0ef41813aef1c8d97937133322f3f4a17aef11c23763c23e783c8
7
+ data.tar.gz: 2e74f67e2fbd3fd3eb231cd74ec26995fb382f44bac338f0b714686eaa69dd209e342f5a583ec50bad1af9dbdc24bb055d31444be12561d85418ec62a5f4ae97
@@ -21,6 +21,7 @@ require 'tmdb_rexx/client/timezone'
21
21
  require 'tmdb_rexx/client/person'
22
22
  require 'tmdb_rexx/client/search'
23
23
  require 'tmdb_rexx/client/tv'
24
+ require 'tmdb_rexx/client/tv_seasons'
24
25
 
25
26
  module TmdbRexx
26
27
  class Client
@@ -46,6 +47,7 @@ module TmdbRexx
46
47
  include TmdbRexx::Client::Person
47
48
  include TmdbRexx::Client::Search
48
49
  include TmdbRexx::Client::Tv
50
+ include TmdbRexx::Client::TvSeasons
49
51
 
50
52
  def initialize(options = {})
51
53
  TmdbRexx::Configuration.keys.each do |key|
@@ -0,0 +1,101 @@
1
+ module TmdbRexx
2
+ class Client
3
+ module TvSeasons
4
+ PARENT_RESOURCE = "tv".freeze
5
+ RESOURCE = "season".freeze
6
+
7
+ # Get the primary information about a TV season by its season number.
8
+ #
9
+ # @see http://docs.themoviedb.apiary.io/#reference/tv-seasons
10
+ #
11
+ # @param [String] id the tv id
12
+ # @param [Integer] season_number the season number of the tv show
13
+ #
14
+ # @example Get the tv seasons api response
15
+ # TmdbRexx::Client.tv_seasons("tv-id", "season-number')
16
+ def tv_season(tv_id, season_number, options = {})
17
+ get([PARENT_RESOURCE, tv_id, RESOURCE, season_number].join("/"), options)
18
+ end
19
+
20
+ # Look up a TV season's changes by season ID. This method is used in
21
+ # conjunction with the /tv/{id}/changes method. This method uses the
22
+ # season_id value found in the change entries.
23
+ #
24
+ # @see http://docs.themoviedb.apiary.io/#reference/tv-seasons/tvseasonidchanges
25
+ #
26
+ # @param [String] season_id the tv season id
27
+ #
28
+ # @example Get the tv seasons changs api response
29
+ # TmdbRexx::Client.tv_season_changes("tv-id", "season-number')
30
+ def tv_season_changes(season_id, options = {})
31
+ get([PARENT_RESOURCE, RESOURCE, season_id, "changes"].join("/"), options)
32
+ end
33
+
34
+ # This method lets users get the status of whether or not the TV episodes
35
+ # of a season have been rated. A valid session id is required.
36
+ #
37
+ # @see http://docs.themoviedb.apiary.io/#reference/tv-seasons/tvidseasonseasonnumberaccountstates
38
+ #
39
+ # @param [String] id the tv id
40
+ # @param [Integer] season_number the season number of the tv show
41
+ #
42
+ # @example Get the tv seasons account states api response
43
+ # TmdbRexx::Client.tv_seasons_account_states("tv-id", "season-number')
44
+ def tv_season_account_states(tv_id, season_number, options = {})
45
+ get([PARENT_RESOURCE, tv_id, RESOURCE, season_number, "account_states"].join("/"), options)
46
+ end
47
+
48
+ # Get the cast & crew credits for a TV season by season number.
49
+ #
50
+ # @see http://docs.themoviedb.apiary.io/#reference/tv-seasons/tvidseasonseasonnumbercredits
51
+ #
52
+ # @param [String] id the tv id
53
+ # @param [Integer] season_number the season number of the tv show
54
+ #
55
+ # @example Get the tv seasons credits api response
56
+ # TmdbRexx::Client.tv_seasons_credits("tv-id", "season-number')
57
+ def tv_season_credits(tv_id, season_number, options = {})
58
+ get([PARENT_RESOURCE, tv_id, RESOURCE, season_number, "credits"].join("/"), options)
59
+ end
60
+
61
+ # Get the external ids that we have stored for a TV season by season number.
62
+ #
63
+ # @see http://docs.themoviedb.apiary.io/#reference/tv-seasons/tvidseasonseasonnumberexternalids
64
+ #
65
+ # @param [String] id the tv id
66
+ # @param [Integer] season_number the season number of the tv show
67
+ #
68
+ # @example Get the tv seasons external_ids api response
69
+ # TmdbRexx::Client.tv_seasons_external_ids("tv-id", "season-number')
70
+ def tv_season_external_ids(tv_id, season_number, options = {})
71
+ get([PARENT_RESOURCE, tv_id, RESOURCE, season_number, "external_ids"].join("/"), options)
72
+ end
73
+
74
+ # Get the images (posters) that we have stored for a TV season by season number.
75
+ #
76
+ # @see http://docs.themoviedb.apiary.io/#reference/tv-seasons/tvidseasonseasonnumberimages
77
+ #
78
+ # @param [String] id the tv id
79
+ # @param [Integer] season_number the season number of the tv show
80
+ #
81
+ # @example Get the tv seasons images api response
82
+ # TmdbRexx::Client.tv_seasons_images("tv-id", "season-number')
83
+ def tv_season_images(tv_id, season_number, options = {})
84
+ get([PARENT_RESOURCE, tv_id, RESOURCE, season_number, "images"].join("/"), options)
85
+ end
86
+
87
+ # Get the videos that have been added to a TV season (trailers, teasers, etc...)
88
+ #
89
+ # @see http://docs.themoviedb.apiary.io/#reference/tv-seasons/tvidseasonseasonnumbervideos
90
+ #
91
+ # @param [String] id the tv id
92
+ # @param [Integer] season_number the season number of the tv show
93
+ #
94
+ # @example Get the tv seasons videos api response
95
+ # TmdbRexx::Client.tv_seasons_videos("tv-id", "season-number')
96
+ def tv_season_videos(tv_id, season_number, options = {})
97
+ get([PARENT_RESOURCE, tv_id, RESOURCE, season_number, "videos"].join("/"), options)
98
+ end
99
+ end
100
+ end
101
+ end
@@ -1,3 +1,3 @@
1
1
  module TmdbRexx
2
- VERSION = "0.6.1"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,167 +1,167 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tmdb_rexx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Truluck
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-28 00:00:00.000000000 Z
11
+ date: 2015-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: bundler
14
15
  requirement: !ruby/object:Gem::Requirement
15
16
  requirements:
16
- - - ~>
17
+ - - "~>"
17
18
  - !ruby/object:Gem::Version
18
19
  version: '1.9'
19
- name: bundler
20
- prerelease: false
21
20
  type: :development
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.9'
27
27
  - !ruby/object:Gem::Dependency
28
+ name: faraday
28
29
  requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ~>
31
+ - - "~>"
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0.9'
33
- name: faraday
34
- prerelease: false
35
34
  type: :runtime
35
+ prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.9'
41
41
  - !ruby/object:Gem::Dependency
42
+ name: faraday_middleware
42
43
  requirement: !ruby/object:Gem::Requirement
43
44
  requirements:
44
- - - ~>
45
+ - - "~>"
45
46
  - !ruby/object:Gem::Version
46
47
  version: '0.10'
47
- name: faraday_middleware
48
- prerelease: false
49
48
  type: :runtime
49
+ prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0.10'
55
55
  - !ruby/object:Gem::Dependency
56
+ name: multi_json
56
57
  requirement: !ruby/object:Gem::Requirement
57
58
  requirements:
58
- - - ~>
59
+ - - "~>"
59
60
  - !ruby/object:Gem::Version
60
61
  version: '1.11'
61
- name: multi_json
62
- prerelease: false
63
62
  type: :runtime
63
+ prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.11'
69
69
  - !ruby/object:Gem::Dependency
70
+ name: rspec
70
71
  requirement: !ruby/object:Gem::Requirement
71
72
  requirements:
72
- - - ~>
73
+ - - "~>"
73
74
  - !ruby/object:Gem::Version
74
75
  version: '3.3'
75
- name: rspec
76
- prerelease: false
77
76
  type: :development
77
+ prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '3.3'
83
83
  - !ruby/object:Gem::Dependency
84
+ name: json_spec
84
85
  requirement: !ruby/object:Gem::Requirement
85
86
  requirements:
86
- - - ~>
87
+ - - "~>"
87
88
  - !ruby/object:Gem::Version
88
89
  version: '1.1'
89
- name: json_spec
90
- prerelease: false
91
90
  type: :development
91
+ prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.1'
97
97
  - !ruby/object:Gem::Dependency
98
+ name: rake
98
99
  requirement: !ruby/object:Gem::Requirement
99
100
  requirements:
100
- - - ~>
101
+ - - "~>"
101
102
  - !ruby/object:Gem::Version
102
103
  version: '10'
103
- name: rake
104
- prerelease: false
105
104
  type: :development
105
+ prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '10'
111
111
  - !ruby/object:Gem::Dependency
112
+ name: vcr
112
113
  requirement: !ruby/object:Gem::Requirement
113
114
  requirements:
114
- - - ~>
115
+ - - "~>"
115
116
  - !ruby/object:Gem::Version
116
117
  version: '2.9'
117
- name: vcr
118
- prerelease: false
119
118
  type: :development
119
+ prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '2.9'
125
125
  - !ruby/object:Gem::Dependency
126
+ name: webmock
126
127
  requirement: !ruby/object:Gem::Requirement
127
128
  requirements:
128
- - - ~>
129
+ - - "~>"
129
130
  - !ruby/object:Gem::Version
130
131
  version: '1.21'
131
- name: webmock
132
- prerelease: false
133
132
  type: :development
133
+ prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ~>
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: '1.21'
139
139
  - !ruby/object:Gem::Dependency
140
+ name: pry
140
141
  requirement: !ruby/object:Gem::Requirement
141
142
  requirements:
142
- - - ~>
143
+ - - "~>"
143
144
  - !ruby/object:Gem::Version
144
145
  version: '0.10'
145
- name: pry
146
- prerelease: false
147
146
  type: :development
147
+ prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ~>
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0.10'
153
153
  - !ruby/object:Gem::Dependency
154
+ name: codeclimate-test-reporter
154
155
  requirement: !ruby/object:Gem::Requirement
155
156
  requirements:
156
- - - ~>
157
+ - - "~>"
157
158
  - !ruby/object:Gem::Version
158
159
  version: '0.4'
159
- name: codeclimate-test-reporter
160
- prerelease: false
161
160
  type: :development
161
+ prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ~>
164
+ - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0.4'
167
167
  description: Ruby wrapper for TMDB API
@@ -171,9 +171,9 @@ executables: []
171
171
  extensions: []
172
172
  extra_rdoc_files: []
173
173
  files:
174
- - .gitignore
175
- - .rspec
176
- - .travis.yml
174
+ - ".gitignore"
175
+ - ".rspec"
176
+ - ".travis.yml"
177
177
  - CODE_OF_CONDUCT.md
178
178
  - Gemfile
179
179
  - LICENSE.txt
@@ -198,6 +198,7 @@ files:
198
198
  - lib/tmdb_rexx/client/search.rb
199
199
  - lib/tmdb_rexx/client/timezone.rb
200
200
  - lib/tmdb_rexx/client/tv.rb
201
+ - lib/tmdb_rexx/client/tv_seasons.rb
201
202
  - lib/tmdb_rexx/configuration.rb
202
203
  - lib/tmdb_rexx/connection.rb
203
204
  - lib/tmdb_rexx/default.rb
@@ -209,24 +210,25 @@ homepage: https://github.com/FilmRexx/tmdb_rexx
209
210
  licenses:
210
211
  - MIT
211
212
  metadata: {}
212
- post_install_message:
213
+ post_install_message:
213
214
  rdoc_options: []
214
215
  require_paths:
215
216
  - lib
216
217
  required_ruby_version: !ruby/object:Gem::Requirement
217
218
  requirements:
218
- - - '>='
219
+ - - ">="
219
220
  - !ruby/object:Gem::Version
220
221
  version: '0'
221
222
  required_rubygems_version: !ruby/object:Gem::Requirement
222
223
  requirements:
223
- - - '>='
224
+ - - ">="
224
225
  - !ruby/object:Gem::Version
225
226
  version: '0'
226
227
  requirements: []
227
- rubyforge_project:
228
+ rubyforge_project:
228
229
  rubygems_version: 2.4.6
229
- signing_key:
230
+ signing_key:
230
231
  specification_version: 4
231
232
  summary: Ruby wrapper for TMDB API
232
233
  test_files: []
234
+ has_rdoc: