gamesdb 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gamesdb (1.0.2)
4
+ gamesdb (1.0.3)
5
5
  awesome_print
6
6
  cistern
7
7
  excon
@@ -2,7 +2,7 @@ class Gamesdb::Client::Game < Cistern::Model
2
2
  identity :id
3
3
 
4
4
  attribute :game_title, aliases: "GameTitle"
5
- attribute :release_date, aliases: "ReleaseDate"
5
+ attribute :release_date, aliases: "ReleaseDate", type: :date
6
6
  attribute :platform, aliases: "Platform"
7
7
  attribute :overview, aliases: "Overview"
8
8
  attribute :esrb, aliases: "ESRB"
@@ -37,26 +37,26 @@ class Gamesdb::Client::Game < Cistern::Model
37
37
 
38
38
  def fanart
39
39
  requires :images
40
- append_urls images["fanart"]
40
+ images["fanart"].nil? ? [] : append_urls(images["fanart"])
41
41
  end
42
42
 
43
43
  def boxart
44
44
  requires :images
45
- append_urls images["boxart"]
45
+ images["boxart"].nil? ? [] : append_urls(images["boxart"])
46
46
  end
47
47
 
48
48
  def banner
49
49
  requires :images
50
- append_urls images["banner"]
50
+ images["banner"].nil? ? [] : append_urls(images["banner"])
51
51
  end
52
52
 
53
53
  def screenshot
54
54
  requires :images
55
- append_urls images["screenshot"]
55
+ images["screenshot"].nil? ? [] : append_urls(images["screenshot"])
56
56
  end
57
57
 
58
58
  def clearlogo
59
59
  requires :images
60
- append_urls images["clearlogo"]
60
+ images["clearlogo"].nil? ? [] : append_urls(images["clearlogo"])
61
61
  end
62
62
  end
@@ -44,26 +44,26 @@ class Gamesdb::Client::Platform < Cistern::Model
44
44
 
45
45
  def fanart
46
46
  requires :images
47
- append_urls images["fanart"]
47
+ images["fanart"].nil? ? [] : append_urls(images["fanart"])
48
48
  end
49
49
 
50
50
  def boxart
51
51
  requires :images
52
- append_urls images["boxart"]
52
+ images["boxart"].nil? ? [] : append_urls(images["boxart"])
53
53
  end
54
54
 
55
55
  def banner
56
56
  requires :images
57
- append_urls images["banner"]
57
+ images["banner"].nil? ? [] : append_urls(images["banner"])
58
58
  end
59
59
 
60
60
  def consoleart
61
61
  requires :images
62
- append_urls images["consoleart"]
62
+ images["consoleart"].nil? ? [] : append_urls(images["consoleart"])
63
63
  end
64
64
 
65
65
  def controllerart
66
66
  requires :images
67
- append_urls images["controllerart"]
67
+ images["controllerart"].nil? ? [] : append_urls(images["controllerart"])
68
68
  end
69
69
  end
@@ -1,3 +1,3 @@
1
1
  module Gamesdb
2
- Version = "1.0.3"
2
+ Version = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gamesdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-15 00:00:00.000000000 Z
12
+ date: 2013-02-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cistern