gamesdb 1.0.1 → 1.0.2

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.
@@ -0,0 +1 @@
1
+ *.gem
@@ -13,10 +13,41 @@ class Gamesdb::Client::Game < Cistern::Model
13
13
  attribute :publisher, aliases: "Publisher"
14
14
  attribute :developer, aliases: "Developer"
15
15
  attribute :rating, aliases: "Rating"
16
- attribute :fanart, aliases: "Images", squash: "fanart", type: Array
17
- attribute :boxart, aliases: "Images", squash: "boxart", type: Array
18
- attribute :banner, aliases: "Images", squash: "banner", type: Array
19
- attribute :screenshot, aliases: "Images", squash: "screenshot", type: Array
20
- attribute :thumb, aliases: "Images", squash: "thumb", type: Array
21
- attribute :clearlogo, aliases: "Images", squash: "clearlogo", type: Array
16
+ attribute :images, aliases: "Images"
17
+ #attribute :fanart, aliases: "Images", squash: "fanart"
18
+ #attribute :boxart, aliases: "Images", squash: "boxart"
19
+ #attribute :banner, aliases: "Images", squash: "banner"
20
+ #attribute :screenshot, aliases: "Images", squash: "screenshot"
21
+ #attribute :thumb, aliases: "Images", squash: "thumb"
22
+ #attribute :clearlogo, aliases: "Images", squash: "clearlogo"
23
+
24
+ def fanart
25
+ requires :images
26
+ images["fanart"]
27
+ end
28
+
29
+ def boxart
30
+ requires :images
31
+ images["boxart"]
32
+ end
33
+
34
+ def banner
35
+ requires :images
36
+ images["banner"]
37
+ end
38
+
39
+ def screenshot
40
+ requires :images
41
+ images["screenshot"]
42
+ end
43
+
44
+ def thumb
45
+ requires :images
46
+ images["thumb"]
47
+ end
48
+
49
+ def clearlogo
50
+ requires :images
51
+ images["clearlogo"]
52
+ end
22
53
  end
@@ -16,14 +16,40 @@ class Gamesdb::Client::Platform < Cistern::Model
16
16
  attribute :media
17
17
  attribute :maxcontrollers
18
18
  attribute :rating, aliases: "Rating"
19
- attribute :fanart, aliases: "Images", squash: "fanart", type: Array
20
- attribute :boxart, aliases: "Images", squash: "boxart", type: Array
21
- attribute :banner, aliases: "Images", squash: "banner", type: Array
22
- attribute :consoleart, aliases: "Images", squash: "consoleart", type: Array
23
- attribute :controllerart, aliases: "Images", squash: "controllerart", type: Array
19
+ attribute :images, aliases: "Images"
20
+ #attribute :fanart, aliases: "Images", squash: "fanart", type: Array
21
+ #attribute :boxart, aliases: "Images", squash: "boxart", type: Array
22
+ #attribute :banner, aliases: "Images", squash: "banner", type: Array
23
+ #attribute :consoleart, aliases: "Images", squash: "consoleart", type: Array
24
+ #attribute :controllerart, aliases: "Images", squash: "controllerart", type: Array
24
25
 
25
26
  def games
26
27
  data = connection.get_platform_games(identity)["Game"]
27
28
  connection.games.load(data)
28
29
  end
30
+
31
+ def fanart
32
+ requires :images
33
+ images["fanart"]
34
+ end
35
+
36
+ def boxart
37
+ requires :images
38
+ images["boxart"]
39
+ end
40
+
41
+ def banner
42
+ requires :images
43
+ images["banner"]
44
+ end
45
+
46
+ def consoleart
47
+ requires :images
48
+ images["consoleart"]
49
+ end
50
+
51
+ def controllerart
52
+ requires :images
53
+ images["controllerart"]
54
+ end
29
55
  end
@@ -1,3 +1,3 @@
1
1
  module Gamesdb
2
- Version = "1.0.1"
2
+ Version = "1.0.2"
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.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -97,6 +97,7 @@ executables: []
97
97
  extensions: []
98
98
  extra_rdoc_files: []
99
99
  files:
100
+ - .gitignore
100
101
  - Gemfile
101
102
  - Gemfile.lock
102
103
  - README.md