paapi 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/paapi/item.rb +12 -8
- data/lib/paapi/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 259e83f7564df1078faa89b5c4c284bb732c4ef4d325bbf5148cac06943469a7
|
4
|
+
data.tar.gz: 07fd0a94307184a443a86821d40ee3c9e8f9a25c2343e09e321828f90701e50d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5e1cd4cc02383c8b6b3d6a3da997e847cb103e8e0a4abfaea50300c43a429dec2695269fa5c02ecbcf978c78020b08358c0804db03434f8981de761a30ce548
|
7
|
+
data.tar.gz: cdf7e41cd53b99b4402348ea17dd32e092d67d05144358dfcc87c8ac1ed79b130133be27a754421b392b8be10ba9dcbbe702571071ee4095aea7b4e6c323fd84
|
data/CHANGELOG.md
CHANGED
data/lib/paapi/item.rb
CHANGED
@@ -54,32 +54,36 @@ module Paapi
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def contributors_of(kind)
|
57
|
-
kind = kind.to_s.gsub(/([[:alpha:]]+)/) { |w| w.
|
58
|
-
contributors.select { |e| e['
|
57
|
+
kind = kind.to_s.gsub(/([[:alpha:]]+)/) { |w| w.downcase }
|
58
|
+
contributors.select { |e| e['RoleType'] == kind }&.map { |e| e.dig('Name') }&.reject {|n| n.to_s.empty?}
|
59
59
|
end
|
60
60
|
|
61
61
|
def actors
|
62
|
-
contributors_of '
|
62
|
+
contributors_of 'actor'
|
63
63
|
end
|
64
64
|
|
65
65
|
def artists
|
66
|
-
contributors_of '
|
66
|
+
contributors_of 'artist'
|
67
67
|
end
|
68
68
|
|
69
69
|
def authors
|
70
|
-
contributors_of '
|
70
|
+
contributors_of 'author'
|
71
|
+
end
|
72
|
+
|
73
|
+
def director
|
74
|
+
contributors_of 'director'
|
71
75
|
end
|
72
76
|
|
73
77
|
def illustrators
|
74
|
-
contributors_of '
|
78
|
+
contributors_of 'illustrator'
|
75
79
|
end
|
76
80
|
|
77
81
|
def narrators
|
78
|
-
contributors_of '
|
82
|
+
contributors_of 'narrator'
|
79
83
|
end
|
80
84
|
|
81
85
|
def publishers
|
82
|
-
contributors_of '
|
86
|
+
contributors_of 'publisher'
|
83
87
|
end
|
84
88
|
|
85
89
|
def languages
|
data/lib/paapi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Milne
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -108,7 +108,7 @@ dependencies:
|
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '1'
|
111
|
-
description:
|
111
|
+
description:
|
112
112
|
email:
|
113
113
|
- d@nmilne.com
|
114
114
|
executables: []
|
@@ -137,7 +137,7 @@ licenses:
|
|
137
137
|
metadata:
|
138
138
|
homepage_uri: https://github.com/dkam/paapi
|
139
139
|
source_code_uri: https://github.com/dkam/paapi
|
140
|
-
post_install_message:
|
140
|
+
post_install_message:
|
141
141
|
rdoc_options: []
|
142
142
|
require_paths:
|
143
143
|
- lib
|
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
153
|
version: '0'
|
154
154
|
requirements: []
|
155
155
|
rubygems_version: 3.1.2
|
156
|
-
signing_key:
|
156
|
+
signing_key:
|
157
157
|
specification_version: 4
|
158
158
|
summary: Client library for Amazon's Product Advertising API v5
|
159
159
|
test_files: []
|