mirror of
https://github.com/dkam/openlib.git
synced 2025-12-28 03:04:53 +00:00
Bug fix for book with no authors publishers or subjects
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
PATH
|
||||
remote: .
|
||||
specs:
|
||||
openlib (0.1.1)
|
||||
openlib (0.1.2)
|
||||
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
|
||||
@@ -37,7 +37,7 @@ module Openlib
|
||||
|
||||
def data_data(req:)
|
||||
case req
|
||||
when :authors, :publishers, :subjects then data.dig(req.to_s).map { |p| p.dig('name') }
|
||||
when :authors, :publishers, :subjects then data.dig(req.to_s)&.map { |p| p.dig('name') }
|
||||
else
|
||||
data.dig(req.to_s)
|
||||
end
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
module Openlib
|
||||
VERSION = "0.1.2"
|
||||
VERSION = "0.1.3"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user