thetvdb_api 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3908d0d6811769c9845cbef26aee2de5adb3059e
|
4
|
+
data.tar.gz: 29b3329554f2171c9e2c98fdc0c3b731cc7f3728
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfea95ba9b1391d05a56e5ed61a7ecc8a1f0eb0d8f3dac102a89b52cb7e95b89b1c528d303562b7bea59f823990a0439cb039cbc4195099f9843fc0fa1e56e83
|
7
|
+
data.tar.gz: 5ef3fa81e626b31cf682a52396271a1640bf5b361d7b4463a1e2e5a5501e26d792e49864a8b93102c095fa27d247c5600eac370c7e24e29d3b8e48cb7a3683c6
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'happymapper'
|
2
|
+
|
3
|
+
module ThetvdbApi::Mappers::BaseMapper
|
4
|
+
def self.included(base)
|
5
|
+
base.send :element, :id, Integer
|
6
|
+
base.send :element, :first_aired, Date, tag: 'FirstAired'
|
7
|
+
base.send :element, :imdb_id, String, tag: 'IMDB_ID'
|
8
|
+
base.send :element, :language, String, tag: 'Language'
|
9
|
+
base.send :element, :overview, String, tag: 'Overview'
|
10
|
+
base.send :element, :rating, Float, tag: 'Rating'
|
11
|
+
base.send :element, :rating_count, Integer, tag: 'RatingCount'
|
12
|
+
end
|
13
|
+
end
|
@@ -1,7 +1,10 @@
|
|
1
1
|
require 'happymapper'
|
2
|
-
require '
|
2
|
+
require 'thetvdb_api/mappers/base_mapper'
|
3
|
+
|
4
|
+
class ThetvdbApi::Mappers::Episode
|
5
|
+
include HappyMapper
|
6
|
+
include ThetvdbApi::Mappers::BaseMapper
|
3
7
|
|
4
|
-
class ThetvdbApi::Mappers::Episode < ThetvdbApi::Mappers::Base
|
5
8
|
tag 'Episode'
|
6
9
|
|
7
10
|
element :combined_episode_number, Integer, tag: 'Combined_episodenumber'
|
@@ -1,7 +1,10 @@
|
|
1
1
|
require 'happymapper'
|
2
|
-
require '
|
2
|
+
require 'thetvdb_api/mappers/base_mapper'
|
3
|
+
|
4
|
+
class ThetvdbApi::Mappers::Series
|
5
|
+
include HappyMapper
|
6
|
+
include ThetvdbApi::Mappers::BaseMapper
|
3
7
|
|
4
|
-
class ThetvdbApi::Mappers::Series < ThetvdbApi::Mappers::Base
|
5
8
|
tag 'Series'
|
6
9
|
|
7
10
|
element :actors, String, tag: 'Actors'
|
data/lib/thetvdb_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thetvdb_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Wawer
|
@@ -148,7 +148,7 @@ files:
|
|
148
148
|
- lib/thetvdb_api/mappers/actors.rb
|
149
149
|
- lib/thetvdb_api/mappers/banner.rb
|
150
150
|
- lib/thetvdb_api/mappers/banners.rb
|
151
|
-
- lib/thetvdb_api/mappers/
|
151
|
+
- lib/thetvdb_api/mappers/base_mapper.rb
|
152
152
|
- lib/thetvdb_api/mappers/episode.rb
|
153
153
|
- lib/thetvdb_api/mappers/full_series.rb
|
154
154
|
- lib/thetvdb_api/mappers/search_episode.rb
|
@@ -1,13 +0,0 @@
|
|
1
|
-
require 'happymapper'
|
2
|
-
|
3
|
-
class ThetvdbApi::Mappers::Base
|
4
|
-
include HappyMapper
|
5
|
-
|
6
|
-
element :id, Integer
|
7
|
-
element :first_aired, Date, tag: 'FirstAired'
|
8
|
-
element :imdb_id, String, tag: 'IMDB_ID'
|
9
|
-
element :language, String, tag: 'Language'
|
10
|
-
element :overview, String, tag: 'Overview'
|
11
|
-
element :rating, Float, tag: 'Rating'
|
12
|
-
element :rating_count, Integer, tag: 'RatingCount'
|
13
|
-
end
|