bolognese 1.0.30 → 1.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: db57de7769dfb3d60d3650db32bb4da33cb688437605edd09f342c2dc8c4eea0
|
|
4
|
+
data.tar.gz: 289506a053d20125d2e2da026b29d2a70b6407fcc5f236d09391a58ddbf4d92d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d96bd487af44a8aaf7e2a7a4a02ab4a33a9facc7f3624f9e9bc63b3a7bda882c0e6b4fe196e87ad8d05238564e01fc4983e658b5c8359193f51ef81cea8449d4
|
|
7
|
+
data.tar.gz: 53d8ce4bff425a7d550b1c2c7700700a1bdbd1f87c4061588194779f01fc0f4c3eaf2cfaa1ceb8d1e796ff9ce0f472bf4454bfcc713ef0b25630c88d12df62f0
|
data/Gemfile.lock
CHANGED
|
@@ -115,7 +115,7 @@ module Bolognese
|
|
|
115
115
|
|
|
116
116
|
{
|
|
117
117
|
"type" => types["citeproc"],
|
|
118
|
-
"id" =>
|
|
118
|
+
"id" => normalize_doi(doi),
|
|
119
119
|
"categories" => Array.wrap(subjects).map { |k| parse_attributes(k, content: "subject", first: true) }.presence,
|
|
120
120
|
"language" => language,
|
|
121
121
|
"author" => to_citeproc(creators),
|
|
@@ -137,7 +137,7 @@ module Bolognese
|
|
|
137
137
|
|
|
138
138
|
def crosscite_hsh
|
|
139
139
|
{
|
|
140
|
-
"id" =>
|
|
140
|
+
"id" => normalize_doi(doi),
|
|
141
141
|
"doi" => doi,
|
|
142
142
|
"url" => url,
|
|
143
143
|
"types" => types,
|
data/lib/bolognese/version.rb
CHANGED
|
@@ -6,7 +6,7 @@ module Bolognese
|
|
|
6
6
|
def citation
|
|
7
7
|
cp = CiteProc::Processor.new(style: style, locale: locale, format: 'html')
|
|
8
8
|
cp.import Array.wrap(citeproc_hsh)
|
|
9
|
-
bibliography = cp.render :bibliography, id:
|
|
9
|
+
bibliography = cp.render :bibliography, id: normalize_doi(doi)
|
|
10
10
|
bibliography.first
|
|
11
11
|
end
|
|
12
12
|
end
|
|
@@ -9,7 +9,7 @@ module Bolognese
|
|
|
9
9
|
hsh = {
|
|
10
10
|
"@context" => id.present? ? "https://raw.githubusercontent.com/codemeta/codemeta/master/codemeta.jsonld" : nil,
|
|
11
11
|
"@type" => types["schemaOrg"],
|
|
12
|
-
"@id" =>
|
|
12
|
+
"@id" => normalize_doi(doi),
|
|
13
13
|
"identifier" => to_schema_org_identifiers(identifiers),
|
|
14
14
|
"codeRepository" => url,
|
|
15
15
|
"title" => parse_attributes(titles, content: "title", first: true),
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bolognese
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.31
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Martin Fenner
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-12-
|
|
11
|
+
date: 2018-12-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: maremma
|