paapi 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 474cf36a8c7a5ead892c056bfff05b8fac000f55b97fc4f1e770ccaa7d0f9518
4
- data.tar.gz: 4302e8b86104693b25c1e58d6c0843c4bc81da88f23d96b9ae931e89df41e946
3
+ metadata.gz: 99af0da84eb04ee803306a7c04518488b279982604acce76f54ffcc16b8b0984
4
+ data.tar.gz: 4a8914111dd1ed898563b4c9885a9b53214dbb3c127b7c57aa14c49b8b844bd4
5
5
  SHA512:
6
- metadata.gz: 6b31a600c0615283007c9475aa0605cb9183bf95b3a77733150e4031ed5eb965d653b22aba403797dcf39cbdeb9f171d9a80fbf39a668a5f77ef2493cb7fedf0
7
- data.tar.gz: afff2903379fa6724b418bf92ca5218d801489133fcdda9ba55481311ee59c749e58ec1bc6df7907c9cedf07131963315ddc97cb7b53f262de100ba28c8b7876
6
+ metadata.gz: 33bb54ce2d4a4618e31050486ad0b52918c850c991da0f437f175af9bbd92dbe83f15ba102b97a41c49988df36811fa20c9b76898a57942e2de8f7e28d924617
7
+ data.tar.gz: f8a5a57c739b38117be110a8e0ffa47349ce6fb0efb8d6dceaffea0677480f0634a049119d568b109977dac1f8093f8066d33d6c7453dade69533f77efcb837e
@@ -1,3 +1,6 @@
1
+ ## 0.0.9
2
+ - Fix bug with no contributors in response
3
+
1
4
  ## 0.0.8
2
5
  - Fix a bug when accessing an empty name via Item
3
6
 
@@ -51,18 +51,14 @@ module Paapi
51
51
  end
52
52
 
53
53
  def contributors
54
- get(%w{ItemInfo ByLineInfo Contributors})
54
+ Array(get(%w{ItemInfo ByLineInfo Contributors}))
55
55
  end
56
56
 
57
57
  def contributors_of(kind)
58
- contributors&.select { |e| e['Role'] == kind.to_s.gsub(/([[:alpha:]]+)/) { |w| w.capitalize } }&.map do |e|
58
+ contributors&.select { |e| e['Role'] == kind.to_s.gsub(/([[:alpha:]]+)/).each { |w| w.capitalize } }&.map do |e|
59
59
  r = e['Name']
60
60
  Nameable(r) unless r.to_s.empty?
61
- end.compact
62
- end
63
-
64
- def contributors_of1(kind)
65
- contributors&.select { |e| e['Role'] == kind.to_s.gsub(/([[:alpha:]]+)/) { |w| w.capitalize } }&.map { |e| Nameable(e['Name'])}
61
+ end&.compact
66
62
  end
67
63
 
68
64
  def actors
@@ -1,3 +1,3 @@
1
1
  module Paapi
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Milne