gamesdb 1.0.3 → 1.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.
- data/Gemfile.lock +1 -1
- data/lib/gamesdb/models/game.rb +6 -6
- data/lib/gamesdb/models/platform.rb +5 -5
- data/lib/gamesdb/version.rb +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/lib/gamesdb/models/game.rb
CHANGED
@@ -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
|
40
|
+
images["fanart"].nil? ? [] : append_urls(images["fanart"])
|
41
41
|
end
|
42
42
|
|
43
43
|
def boxart
|
44
44
|
requires :images
|
45
|
-
append_urls
|
45
|
+
images["boxart"].nil? ? [] : append_urls(images["boxart"])
|
46
46
|
end
|
47
47
|
|
48
48
|
def banner
|
49
49
|
requires :images
|
50
|
-
append_urls
|
50
|
+
images["banner"].nil? ? [] : append_urls(images["banner"])
|
51
51
|
end
|
52
52
|
|
53
53
|
def screenshot
|
54
54
|
requires :images
|
55
|
-
append_urls
|
55
|
+
images["screenshot"].nil? ? [] : append_urls(images["screenshot"])
|
56
56
|
end
|
57
57
|
|
58
58
|
def clearlogo
|
59
59
|
requires :images
|
60
|
-
append_urls
|
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
|
47
|
+
images["fanart"].nil? ? [] : append_urls(images["fanart"])
|
48
48
|
end
|
49
49
|
|
50
50
|
def boxart
|
51
51
|
requires :images
|
52
|
-
append_urls
|
52
|
+
images["boxart"].nil? ? [] : append_urls(images["boxart"])
|
53
53
|
end
|
54
54
|
|
55
55
|
def banner
|
56
56
|
requires :images
|
57
|
-
append_urls
|
57
|
+
images["banner"].nil? ? [] : append_urls(images["banner"])
|
58
58
|
end
|
59
59
|
|
60
60
|
def consoleart
|
61
61
|
requires :images
|
62
|
-
append_urls
|
62
|
+
images["consoleart"].nil? ? [] : append_urls(images["consoleart"])
|
63
63
|
end
|
64
64
|
|
65
65
|
def controllerart
|
66
66
|
requires :images
|
67
|
-
append_urls
|
67
|
+
images["controllerart"].nil? ? [] : append_urls(images["controllerart"])
|
68
68
|
end
|
69
69
|
end
|
data/lib/gamesdb/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2013-02-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cistern
|