tmdb-api 0.0.5 → 0.0.6

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.
@@ -7,14 +7,11 @@ describe TMDb::Changes do
7
7
 
8
8
  changes = TMDb::Changes.movies
9
9
 
10
- expect(changes['results']).to have(100).items
11
- expect(changes['total_results']).to eql(4645)
12
- expect(changes['total_pages']).to eql(47)
13
- expect(changes['page']).to eql(1)
14
- expect(changes['results'].first).to eql({
15
- 'id' => 128149,
16
- 'adult' => false
17
- })
10
+ expect(changes.changes).to have(100).items
11
+ expect(changes.total_results).to eql(4645)
12
+ expect(changes.total_pages).to eql(47)
13
+ expect(changes.page).to eql(1)
14
+ expect(changes.changes.first).to eql(128149)
18
15
  end
19
16
 
20
17
  it 'raises with a bad request' do
@@ -185,12 +185,12 @@ describe TMDb::Movie do
185
185
 
186
186
  describe '.cast' do
187
187
  it 'returns the cast for a specific movie' do
188
- stub_get('/movie/550/casts')
189
- .to_return(json_response('movie/cast.json'))
188
+ stub_get('/movie/550/credits')
189
+ .to_return(json_response('movie/credits.json'))
190
190
 
191
191
  cast = TMDb::Movie.cast(550)
192
192
 
193
- expect(cast).to have(31).items
193
+ expect(cast).to have(72).items
194
194
 
195
195
  expect(cast.first).to eq(
196
196
  {
@@ -204,7 +204,7 @@ describe TMDb::Movie do
204
204
  end
205
205
 
206
206
  it 'raises with a bad request' do
207
- stub_get('/movie/invalid-id/casts').to_return(status: 404)
207
+ stub_get('/movie/invalid-id/credits').to_return(status: 404)
208
208
 
209
209
  expect { TMDb::Movie.cast('invalid-id') }
210
210
  .to raise_error ArgumentError
@@ -213,8 +213,8 @@ describe TMDb::Movie do
213
213
 
214
214
  describe '.crew' do
215
215
  it 'returns the crew for a specific movie' do
216
- stub_get('/movie/550/casts')
217
- .to_return(json_response('movie/crew.json'))
216
+ stub_get('/movie/550/credits')
217
+ .to_return(json_response('movie/credits.json'))
218
218
 
219
219
  crew = TMDb::Movie.crew(550)
220
220
 
@@ -231,7 +231,7 @@ describe TMDb::Movie do
231
231
  end
232
232
 
233
233
  it 'raises with a bad request' do
234
- stub_get('/movie/invalid-id/casts').to_return(status: 404)
234
+ stub_get('/movie/invalid-id/credits').to_return(status: 404)
235
235
 
236
236
  expect { TMDb::Movie.crew('invalid-id') }
237
237
  .to raise_error ArgumentError
@@ -18,10 +18,10 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "httparty"
22
- spec.add_dependency "activesupport"
21
+ spec.add_dependency "httparty", "~> 0.13.0"
22
+ spec.add_dependency "activesupport", "~> 4.1.0.rc1"
23
23
 
24
- spec.add_development_dependency "bundler", "~> 1.3"
24
+ spec.add_development_dependency "bundler", "~> 1.5"
25
25
  spec.add_development_dependency "rake"
26
26
  spec.add_development_dependency "rspec"
27
27
  spec.add_development_dependency "webmock"
metadata CHANGED
@@ -1,111 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tmdb-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andriel Nuernberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-13 00:00:00.000000000 Z
11
+ date: 2014-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.13.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 0.13.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 4.1.0.rc1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 4.1.0.rc1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.3'
47
+ version: '1.5'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.3'
54
+ version: '1.5'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
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: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
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: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: webmock
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
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: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: pry
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
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: '0'
111
111
  description: The Movie Database API v3
@@ -115,9 +115,10 @@ executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
- - .gitignore
119
- - .rspec
120
- - .travis.yml
118
+ - ".gitignore"
119
+ - ".rspec"
120
+ - ".ruby-version"
121
+ - ".travis.yml"
121
122
  - Gemfile
122
123
  - LICENSE.txt
123
124
  - README.md
@@ -137,8 +138,7 @@ files:
137
138
  - lib/tmdb-api/version.rb
138
139
  - spec/fixtures/changes/movies.json
139
140
  - spec/fixtures/movie/alternative_titles.json
140
- - spec/fixtures/movie/cast.json
141
- - spec/fixtures/movie/crew.json
141
+ - spec/fixtures/movie/credits.json
142
142
  - spec/fixtures/movie/find.json
143
143
  - spec/fixtures/movie/images.json
144
144
  - spec/fixtures/movie/keywords.json
@@ -169,25 +169,24 @@ require_paths:
169
169
  - lib
170
170
  required_ruby_version: !ruby/object:Gem::Requirement
171
171
  requirements:
172
- - - '>='
172
+ - - ">="
173
173
  - !ruby/object:Gem::Version
174
174
  version: '0'
175
175
  required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  requirements:
177
- - - '>='
177
+ - - ">="
178
178
  - !ruby/object:Gem::Version
179
179
  version: '0'
180
180
  requirements: []
181
181
  rubyforge_project:
182
- rubygems_version: 2.0.3
182
+ rubygems_version: 2.2.2
183
183
  signing_key:
184
184
  specification_version: 4
185
185
  summary: The Mobie Database API v3
186
186
  test_files:
187
187
  - spec/fixtures/changes/movies.json
188
188
  - spec/fixtures/movie/alternative_titles.json
189
- - spec/fixtures/movie/cast.json
190
- - spec/fixtures/movie/crew.json
189
+ - spec/fixtures/movie/credits.json
191
190
  - spec/fixtures/movie/find.json
192
191
  - spec/fixtures/movie/images.json
193
192
  - spec/fixtures/movie/keywords.json
@@ -1,253 +0,0 @@
1
- {
2
- "cast":
3
- [
4
- {
5
- "id": 819,
6
- "name": "Edward Norton",
7
- "character": "The Narrator",
8
- "order": 0,
9
- "cast_id": 4,
10
- "profile_path": "/588Hrov6wwM9WcU88nJHlw2iufN.jpg"
11
- },
12
- {
13
- "id": 287,
14
- "name": "Brad Pitt",
15
- "character": "Tyler Durden",
16
- "order": 1,
17
- "cast_id": 5,
18
- "profile_path": "/kc3M04QQAuZ9woUvH3Ju5T7ZqG5.jpg"
19
- },
20
- {
21
- "id": 1283,
22
- "name": "Helena Bonham Carter",
23
- "character": "Marla Singer",
24
- "order": 2,
25
- "cast_id": 6,
26
- "profile_path": "/58oJPFG1wefMC0Vj7sFzHPrm67J.jpg"
27
- },
28
- {
29
- "id": 7470,
30
- "name": "Meat Loaf",
31
- "character": "Robert 'Bob' Paulson",
32
- "order": 3,
33
- "cast_id": 7,
34
- "profile_path": "/pwNyXgegO1nlZ8uWT847JM8EjGj.jpg"
35
- },
36
- {
37
- "id": 7471,
38
- "name": "Zach Grenier",
39
- "character": "Richard Chesler",
40
- "order": 4,
41
- "cast_id": 8,
42
- "profile_path": "/jghYiKdNkVehKpiVyE97AWrU9KQ.jpg"
43
- },
44
- {
45
- "id": 7472,
46
- "name": "Richmond Arquette",
47
- "character": "Intern",
48
- "order": 5,
49
- "cast_id": 9,
50
- "profile_path": null
51
- },
52
- {
53
- "id": 7219,
54
- "name": "David Andrews",
55
- "character": "Thomas",
56
- "order": 6,
57
- "cast_id": 10,
58
- "profile_path": "/pxmxn29UHW9r6uvLrd7bEwLswlQ.jpg"
59
- },
60
- {
61
- "id": 7473,
62
- "name": "Rachel Singer",
63
- "character": "Chloe",
64
- "order": 11,
65
- "cast_id": 11,
66
- "profile_path": null
67
- },
68
- {
69
- "id": 7497,
70
- "name": "Holt McCallany",
71
- "character": "The Mechanic",
72
- "order": 20,
73
- "cast_id": 22,
74
- "profile_path": "/hQBfcw9KVszdenlTZTR8AIrSpex.jpg"
75
- },
76
- {
77
- "id": 7498,
78
- "name": "Eion Bailey",
79
- "character": "Ricky",
80
- "order": 22,
81
- "cast_id": 23,
82
- "profile_path": "/4MnRgrwuiJvHsfoiJrIUL4TkfoC.jpg"
83
- },
84
- {
85
- "id": 7499,
86
- "name": "Jared Leto",
87
- "character": "Angel Face",
88
- "order": 23,
89
- "cast_id": 24,
90
- "profile_path": "/lzQSuu5o0JC9mCncYjVnncSH5lO.jpg"
91
- },
92
- {
93
- "id": 7500,
94
- "name": "Peter Iacangelo",
95
- "character": "Lou",
96
- "order": 24,
97
- "cast_id": 25,
98
- "profile_path": null
99
- },
100
- {
101
- "id": 56112,
102
- "name": "David Lee Smith",
103
- "character": "Walter",
104
- "order": 19,
105
- "cast_id": 30,
106
- "profile_path": "/xYkMA9AWtUN93KV5hWzlDkcnebB.jpg"
107
- },
108
- {
109
- "id": 1129738,
110
- "name": "George Maguire",
111
- "character": "Group Leader",
112
- "order": 7,
113
- "cast_id": 31,
114
- "profile_path": null
115
- },
116
- {
117
- "id": 197790,
118
- "name": "Eugenie Bondurant",
119
- "character": "Weeping Woman",
120
- "order": 8,
121
- "cast_id": 32,
122
- "profile_path": null
123
- },
124
- {
125
- "id": 68277,
126
- "name": "Christina Cabot",
127
- "character": "Group Leader",
128
- "order": 9,
129
- "cast_id": 33,
130
- "profile_path": "/7UBTv5lW6apPdVLnOqTTBMTJWwY.jpg"
131
- },
132
- {
133
- "id": 202080,
134
- "name": "Sydney 'Big Dawg' Colston",
135
- "character": "Speaker",
136
- "order": 10,
137
- "cast_id": 34,
138
- "profile_path": null
139
- },
140
- {
141
- "id": 1172435,
142
- "name": "Christie Cronenweth",
143
- "character": "Airline Attendant",
144
- "order": 12,
145
- "cast_id": 35,
146
- "profile_path": null
147
- },
148
- {
149
- "id": 956719,
150
- "name": "Tim De Zarn",
151
- "character": "Inspector Bird",
152
- "order": 13,
153
- "cast_id": 36,
154
- "profile_path": null
155
- },
156
- {
157
- "id": 59285,
158
- "name": "Ezra Buzzington",
159
- "character": "Inspector Dent",
160
- "order": 14,
161
- "cast_id": 37,
162
- "profile_path": "/dl0SIqpOqS05UpJHKuDQqZTwUvP.jpg"
163
- },
164
- {
165
- "id": 1269622,
166
- "name": "Dierdre Downing-Jackson",
167
- "character": "Woman on Plane",
168
- "order": 15,
169
- "cast_id": 38,
170
- "profile_path": null
171
- },
172
- {
173
- "id": 543293,
174
- "name": "Bob Stephenson",
175
- "character": "Airport Security Officer (as Robert J. Stephenson)",
176
- "order": 16,
177
- "cast_id": 39,
178
- "profile_path": "/iH86ZmoSGOCnWZ8aycavGdlu3ht.jpg"
179
- },
180
- {
181
- "id": 62846,
182
- "name": "Charlie Dell",
183
- "character": "Doorman",
184
- "order": 17,
185
- "cast_id": 40,
186
- "profile_path": "/z0JgZxazJAVlHxLYXWM8eUZlOk8.jpg"
187
- },
188
- {
189
- "id": 530040,
190
- "name": "Rob Lanza",
191
- "character": "Man in Suit",
192
- "order": 18,
193
- "cast_id": 41,
194
- "profile_path": null
195
- },
196
- {
197
- "id": 137425,
198
- "name": "Joel Bissonnette",
199
- "character": "Food Court Maitre D'",
200
- "order": 21,
201
- "cast_id": 42,
202
- "profile_path": null
203
- },
204
- {
205
- "id": 175120,
206
- "name": "Evan Mirand",
207
- "character": "Steph",
208
- "order": 25,
209
- "cast_id": 43,
210
- "profile_path": null
211
- },
212
- {
213
- "id": 169636,
214
- "name": "Robby Robinson",
215
- "character": "Next Month's Opponent",
216
- "order": 26,
217
- "cast_id": 44,
218
- "profile_path": null
219
- },
220
- {
221
- "id": 168924,
222
- "name": "Lou Beatty Jr.",
223
- "character": "Cop at Marla's Building",
224
- "order": 27,
225
- "cast_id": 45,
226
- "profile_path": null
227
- },
228
- {
229
- "id": 1219497,
230
- "name": "Thom Gossom Jr.",
231
- "character": "Detective Stern",
232
- "order": 28,
233
- "cast_id": 46,
234
- "profile_path": null
235
- },
236
- {
237
- "id": 157938,
238
- "name": "Valerie Bickford",
239
- "character": "Susan, Cosmetics Dealer",
240
- "order": 29,
241
- "cast_id": 47,
242
- "profile_path": null
243
- },
244
- {
245
- "id": 42824,
246
- "name": "Carl Ciarfalio",
247
- "character": "Lou's Body Guard (as Carl N. Ciarfalio)",
248
- "order": 30,
249
- "cast_id": 48,
250
- "profile_path": null
251
- }
252
- ]
253
- }