lib/bolognese/writers/schema_org_writer.rb in bolognese-1.0.21 vs lib/bolognese/writers/schema_org_writer.rb in bolognese-1.0.23
- old
+ new
@@ -13,10 +13,10 @@
"name" => parse_attributes(titles, content: "title", first: true),
"author" => to_schema_org(creator),
"editor" => to_schema_org(contributor),
"description" => parse_attributes(descriptions, content: "description", first: true),
"license" => Array.wrap(rights_list).map { |l| l["rightsUri"] }.compact.unwrap,
- "version" => version,
+ "version" => version_info,
"keywords" => subjects.present? ? Array.wrap(subjects).map { |k| parse_attributes(k, content: "subject", first: true) }.join(", ") : nil,
"inLanguage" => language,
"contentSize" => Array.wrap(sizes).unwrap,
"encodingFormat" => Array.wrap(formats).unwrap,
"dateCreated" => get_date(dates, "Created"),