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: 85d1ce2f2bb54573fe303c0ec2bdf4c00c3ca8b0
4
- data.tar.gz: 5fd366803383b832fe7ce43733ddbd2b9e6ee593
3
+ metadata.gz: 3908d0d6811769c9845cbef26aee2de5adb3059e
4
+ data.tar.gz: 29b3329554f2171c9e2c98fdc0c3b731cc7f3728
5
5
  SHA512:
6
- metadata.gz: 3ad836dd05a2e2936e516742d35c9c7ca3379190058878c38dcc0614b0b426857ee494bb8cfe5d100af97f0e423f18e8ce72b1369b74a605ac6d339b3c354f6e
7
- data.tar.gz: 5727390c2cc4016737ce73be4ce21b529894082334d07f8cc97ccc7058ae234d9e1991529b8275fb5c12e42e604da54a5cc660911d17925543fb0269e85a59ff
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 'base'
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 'base'
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'
@@ -1,3 +1,3 @@
1
1
  module ThetvdbApi
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
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.0
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/base.rb
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