thetvdb_api 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +72 -1
- data/lib/thetvdb_api.rb +4 -1
- data/lib/thetvdb_api/actor.rb +2 -2
- data/lib/thetvdb_api/banner.rb +2 -2
- data/lib/thetvdb_api/base.rb +30 -9
- data/lib/thetvdb_api/episode.rb +10 -10
- data/lib/thetvdb_api/mappers/actor.rb +17 -0
- data/lib/thetvdb_api/mappers/actors.rb +10 -0
- data/lib/thetvdb_api/mappers/banner.rb +32 -0
- data/lib/thetvdb_api/mappers/banners.rb +10 -0
- data/lib/thetvdb_api/mappers/base.rb +13 -0
- data/lib/thetvdb_api/mappers/episode.rb +32 -0
- data/lib/thetvdb_api/mappers/full_series.rb +12 -0
- data/lib/thetvdb_api/mappers/search_episode.rb +10 -0
- data/lib/thetvdb_api/mappers/search_series.rb +10 -0
- data/lib/thetvdb_api/mappers/search_series/series.rb +25 -0
- data/lib/thetvdb_api/mappers/series.rb +37 -0
- data/lib/thetvdb_api/mappers/update.rb +14 -0
- data/lib/thetvdb_api/mappers/update/banner.rb +19 -0
- data/lib/thetvdb_api/mappers/update/element.rb +10 -0
- data/lib/thetvdb_api/mappers/update/episode.rb +8 -0
- data/lib/thetvdb_api/mappers/update/series.rb +8 -0
- data/lib/thetvdb_api/response.rb +30 -0
- data/lib/thetvdb_api/search.rb +8 -8
- data/lib/thetvdb_api/series.rb +4 -4
- data/lib/thetvdb_api/update.rb +42 -8
- data/lib/thetvdb_api/version.rb +1 -1
- data/spec/integrations/actor_spec.rb +1 -1
- data/spec/integrations/banner_spec.rb +1 -1
- data/spec/integrations/client_spec.rb +16 -16
- data/spec/integrations/episode_spec.rb +4 -4
- data/spec/integrations/search_spec.rb +5 -5
- data/spec/integrations/series_spec.rb +2 -2
- data/spec/integrations/update_spec.rb +10 -4
- data/spec/spec_helper.rb +4 -0
- data/spec/thetvdb_api/base_spec.rb +39 -7
- data/spec/thetvdb_api/episode_spec.rb +4 -4
- data/spec/thetvdb_api/mappers/actor_spec.rb +15 -0
- data/spec/thetvdb_api/mappers/banner_spec.rb +31 -0
- data/spec/thetvdb_api/mappers/search_series/series_spec.rb +15 -0
- data/spec/thetvdb_api/mappers/series_spec.rb +31 -0
- data/spec/thetvdb_api/mappers/update/banner_spec.rb +15 -0
- data/spec/thetvdb_api/response_spec.rb +60 -0
- data/spec/thetvdb_api/search_spec.rb +13 -13
- data/spec/thetvdb_api/series_spec.rb +6 -6
- data/spec/thetvdb_api/update_spec.rb +24 -0
- data/thetvdb_api.gemspec +2 -1
- metadata +48 -5
data/thetvdb_api.gemspec
CHANGED
@@ -19,8 +19,9 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
21
|
spec.add_runtime_dependency 'confiture', '~> 0.1.4'
|
22
|
-
spec.add_runtime_dependency '
|
22
|
+
spec.add_runtime_dependency 'faraday', '~> 0.8.8'
|
23
23
|
spec.add_runtime_dependency 'uri_template', '~> 0.6.0'
|
24
|
+
spec.add_runtime_dependency 'happymapper', '~> 0.4.1'
|
24
25
|
|
25
26
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
26
27
|
spec.add_development_dependency 'rake'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thetvdb_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Wawer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: confiture
|
@@ -25,19 +25,19 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.1.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: faraday
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.8.8
|
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: 0.8.8
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: uri_template
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.6.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: happymapper
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.4.1
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.4.1
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: bundler
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,6 +144,23 @@ files:
|
|
130
144
|
- lib/thetvdb_api/client.rb
|
131
145
|
- lib/thetvdb_api/configuration.rb
|
132
146
|
- lib/thetvdb_api/episode.rb
|
147
|
+
- lib/thetvdb_api/mappers/actor.rb
|
148
|
+
- lib/thetvdb_api/mappers/actors.rb
|
149
|
+
- lib/thetvdb_api/mappers/banner.rb
|
150
|
+
- lib/thetvdb_api/mappers/banners.rb
|
151
|
+
- lib/thetvdb_api/mappers/base.rb
|
152
|
+
- lib/thetvdb_api/mappers/episode.rb
|
153
|
+
- lib/thetvdb_api/mappers/full_series.rb
|
154
|
+
- lib/thetvdb_api/mappers/search_episode.rb
|
155
|
+
- lib/thetvdb_api/mappers/search_series.rb
|
156
|
+
- lib/thetvdb_api/mappers/search_series/series.rb
|
157
|
+
- lib/thetvdb_api/mappers/series.rb
|
158
|
+
- lib/thetvdb_api/mappers/update.rb
|
159
|
+
- lib/thetvdb_api/mappers/update/banner.rb
|
160
|
+
- lib/thetvdb_api/mappers/update/element.rb
|
161
|
+
- lib/thetvdb_api/mappers/update/episode.rb
|
162
|
+
- lib/thetvdb_api/mappers/update/series.rb
|
163
|
+
- lib/thetvdb_api/response.rb
|
133
164
|
- lib/thetvdb_api/search.rb
|
134
165
|
- lib/thetvdb_api/series.rb
|
135
166
|
- lib/thetvdb_api/update.rb
|
@@ -148,6 +179,12 @@ files:
|
|
148
179
|
- spec/thetvdb_api/base_spec.rb
|
149
180
|
- spec/thetvdb_api/client_spec.rb
|
150
181
|
- spec/thetvdb_api/episode_spec.rb
|
182
|
+
- spec/thetvdb_api/mappers/actor_spec.rb
|
183
|
+
- spec/thetvdb_api/mappers/banner_spec.rb
|
184
|
+
- spec/thetvdb_api/mappers/search_series/series_spec.rb
|
185
|
+
- spec/thetvdb_api/mappers/series_spec.rb
|
186
|
+
- spec/thetvdb_api/mappers/update/banner_spec.rb
|
187
|
+
- spec/thetvdb_api/response_spec.rb
|
151
188
|
- spec/thetvdb_api/search_spec.rb
|
152
189
|
- spec/thetvdb_api/series_spec.rb
|
153
190
|
- spec/thetvdb_api/update_spec.rb
|
@@ -191,6 +228,12 @@ test_files:
|
|
191
228
|
- spec/thetvdb_api/base_spec.rb
|
192
229
|
- spec/thetvdb_api/client_spec.rb
|
193
230
|
- spec/thetvdb_api/episode_spec.rb
|
231
|
+
- spec/thetvdb_api/mappers/actor_spec.rb
|
232
|
+
- spec/thetvdb_api/mappers/banner_spec.rb
|
233
|
+
- spec/thetvdb_api/mappers/search_series/series_spec.rb
|
234
|
+
- spec/thetvdb_api/mappers/series_spec.rb
|
235
|
+
- spec/thetvdb_api/mappers/update/banner_spec.rb
|
236
|
+
- spec/thetvdb_api/response_spec.rb
|
194
237
|
- spec/thetvdb_api/search_spec.rb
|
195
238
|
- spec/thetvdb_api/series_spec.rb
|
196
239
|
- spec/thetvdb_api/update_spec.rb
|