mirror of
https://github.com/dkam/paapi.git
synced 2025-12-27 22:54:52 +00:00
Remove Nameable dependancy and return API data directly
This commit is contained in:
@@ -55,10 +55,8 @@ module Paapi
|
||||
end
|
||||
|
||||
def contributors_of(kind)
|
||||
contributors&.select { |e| e['Role'] == kind.to_s.gsub(/([[:alpha:]]+)/).each { |w| w.capitalize } }&.map do |e|
|
||||
r = e['Name']
|
||||
Nameable(r) unless r.to_s.empty?
|
||||
end&.compact
|
||||
kind = kind.to_s.gsub(/([[:alpha:]]+)/) { |w| w.capitalize }
|
||||
contributors.select { |e| e['Role'] == kind }&.map { |e| e.dig('Name') }&.reject {|n| n.to_s.empty?}
|
||||
end
|
||||
|
||||
def actors
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
module Paapi
|
||||
VERSION = '0.0.8'
|
||||
VERSION = '0.1.0'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user