bolognese 1.0.30 → 1.0.31

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: 968c22fa1751729204364c0b2e5bf39b7718402122babccde0f6eaf0ccca71a6
4
- data.tar.gz: fded31c2e41b95272b2bcb42ccd3a6e7760c82ed98dbceea022d2d7b90cd5029
3
+ metadata.gz: db57de7769dfb3d60d3650db32bb4da33cb688437605edd09f342c2dc8c4eea0
4
+ data.tar.gz: 289506a053d20125d2e2da026b29d2a70b6407fcc5f236d09391a58ddbf4d92d
5
5
  SHA512:
6
- metadata.gz: 7e67269661948b71dc7c398594835e800eab6261aed23abe970125d68c19dfcfd30476993ac923bd23923e1a5f8d6fb66a766fadf93cfd1c42745811f36ed8e7
7
- data.tar.gz: 81fd6cd2910f372d232c329e8187a85d3e89ffa039dc769df56d104f1d6314b15cbb80d4d9b08dab900389c5f2600446016458d141cfec37d251f653a1de95b1
6
+ metadata.gz: d96bd487af44a8aaf7e2a7a4a02ab4a33a9facc7f3624f9e9bc63b3a7bda882c0e6b4fe196e87ad8d05238564e01fc4983e658b5c8359193f51ef81cea8449d4
7
+ data.tar.gz: 53d8ce4bff425a7d550b1c2c7700700a1bdbd1f87c4061588194779f01fc0f4c3eaf2cfaa1ceb8d1e796ff9ce0f472bf4454bfcc713ef0b25630c88d12df62f0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (1.0.30)
4
+ bolognese (1.0.31)
5
5
  activesupport (>= 4.2.5, < 6)
6
6
  benchmark_methods (~> 0.7)
7
7
  bibtex-ruby (~> 4.1)
@@ -115,7 +115,7 @@ module Bolognese
115
115
 
116
116
  {
117
117
  "type" => types["citeproc"],
118
- "id" => 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" => id,
140
+ "id" => normalize_doi(doi),
141
141
  "doi" => doi,
142
142
  "url" => url,
143
143
  "types" => types,
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "1.0.30"
2
+ VERSION = "1.0.31"
3
3
  end
@@ -10,7 +10,7 @@ module Bolognese
10
10
 
11
11
  bib = {
12
12
  bibtex_type: types["bibtex"].presence || "misc",
13
- bibtex_key: id,
13
+ bibtex_key: normalize_doi(doi),
14
14
  doi: doi,
15
15
  url: url,
16
16
  author: authors_as_string(creators),
@@ -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: 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" => 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.30
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-09 00:00:00.000000000 Z
11
+ date: 2018-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: maremma