thetvdb_mapper 0.0.3 → 0.0.4

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: df92a0026f71306f5581b42f4229459c664526f5
4
- data.tar.gz: 5de89ef49942d7cfdb76385d0169edf6bb98ac20
3
+ metadata.gz: ede54fbc1b8f301492dffe4b0e4cf437aa2dff18
4
+ data.tar.gz: 4fa1c97f5dfc76c201de14b546dcc8e8f6f8c7a6
5
5
  SHA512:
6
- metadata.gz: 55a049dfa7a7fd87bad41192f413eac9c25b285ab035e30ce092fd740d558580faab4b696a333c17c4ee9746ffd9b7e9ed141f432ce161f843a7f344e904de38
7
- data.tar.gz: 8dc7e5deefb4b41b6f2f90eace3b295c4a3779281c0598e1574f4f4fb10b0ad1a369487e3a02c357da74f158a0f42fc9e5a27fba01e11aca02db93e4a99503a7
6
+ metadata.gz: 5160079ad7df3fb5783774d05f06e3626b736dd6fed7701628700177caed4f447c48c52f840db6f1bf278ed80fa8440de2a83f4273e4c6ce0a60d4896ea029c8
7
+ data.tar.gz: f0d4b7e8460b0cfaf0ae5f39b911b11bb4ce3ec18bb825da003a3869269d33bfbb719b6b3e26d65798acba5e0af5aef729a9104bfb5852c4cc5c2f5e132cf7ee
@@ -5,8 +5,8 @@ class ThetvdbMapper::Mapping::Banner < ThetvdbMapper::Mapping::Base
5
5
  'BannerPath' => :path,
6
6
  'ThumbnailPath' => :thumbnail_path,
7
7
  'VignettePath' => :vignette_path,
8
- 'BannerType' => :type,
9
- 'BannerType2' => :type2,
8
+ 'BannerType' => :kind,
9
+ 'BannerType2' => :kind2,
10
10
  'Language' => :language,
11
11
  'Season' => :season,
12
12
  'Rating' => :rating,
@@ -1,3 +1,3 @@
1
1
  module ThetvdbMapper
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
@@ -5,7 +5,7 @@ describe ThetvdbMapper::Mapping::Banner do
5
5
 
6
6
  describe '#map' do
7
7
  it 'should return specific keys' do
8
- model.map.keys.sort.should == [:path, :thumbnail_path, :vignette_path, :type, :type2, :language, :season,
8
+ model.map.keys.sort.should == [:path, :thumbnail_path, :vignette_path, :kind, :kind2, :language, :season,
9
9
  :rating, :rating_count, :series_name, :colors, :id].sort
10
10
  end
11
11
 
@@ -31,12 +31,12 @@ describe ThetvdbMapper::Mapping::Banner do
31
31
 
32
32
  it 'should map BannerType' do
33
33
  model.stub(:data).and_return('BannerType' => 'test')
34
- model.map[:type].should == 'test'
34
+ model.map[:kind].should == 'test'
35
35
  end
36
36
 
37
37
  it 'should map BannerType2' do
38
38
  model.stub(:data).and_return('BannerType2' => 'test')
39
- model.map[:type2].should == 'test'
39
+ model.map[:kind2].should == 'test'
40
40
  end
41
41
 
42
42
  it 'should map Language' do
@@ -20,11 +20,11 @@ describe ThetvdbMapper::Mapping::Banner do
20
20
  end
21
21
 
22
22
  it 'should map BannerType' do
23
- model.rules['BannerType'].should == :type
23
+ model.rules['BannerType'].should == :kind
24
24
  end
25
25
 
26
26
  it 'should map BannerType2' do
27
- model.rules['BannerType2'].should == :type2
27
+ model.rules['BannerType2'].should == :kind2
28
28
  end
29
29
 
30
30
  it 'should map Language' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thetvdb_mapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Wawer