bolognese 0.9.40 → 0.9.41
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 956ed80d752de61863794950ad58b19dab738c56
|
4
|
+
data.tar.gz: 845e5d73cc57093c4cf6bc93103ae9779d41e33f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbe599c3a2ffbdbb97c4574d621e3e157b43482cd3f5854f57e1cd94a81e1e033dac3ebe27f0322a1ddd788c1bfa4dbf23e7269ea25169b2597406652cf6ecbe
|
7
|
+
data.tar.gz: 073ed81d68a3ca11040a683704d887a8bee2994487491928f15b3292a072df017e4b93229add2942f844f96dc59593983a3cae8dd87255c4bbcde6a57027d7b9
|
data/Gemfile.lock
CHANGED
@@ -64,7 +64,7 @@ module Bolognese
|
|
64
64
|
"description" => meta.fetch("abstract", nil).present? ? { "text" => sanitize(meta.fetch("abstract")) } : nil,
|
65
65
|
#{ }"license" => { "id" => meta.field?(:copyright) && meta.copyright.to_s.presence },
|
66
66
|
"version" => meta.fetch("version", nil),
|
67
|
-
"keywords" =>
|
67
|
+
"keywords" => meta.fetch("categories", nil)
|
68
68
|
}
|
69
69
|
end
|
70
70
|
end
|
data/lib/bolognese/version.rb
CHANGED
@@ -5,7 +5,7 @@ module Bolognese
|
|
5
5
|
hsh = {
|
6
6
|
"type" => citeproc_type,
|
7
7
|
"id" => id,
|
8
|
-
"categories" => keywords
|
8
|
+
"categories" => parse_attributes(keywords, content: "text"),
|
9
9
|
"language" => language,
|
10
10
|
"author" => to_citeproc(author),
|
11
11
|
"editor" => to_citeproc(editor),
|
data/spec/fixtures/citeproc.json
CHANGED
@@ -7,6 +7,15 @@
|
|
7
7
|
"container-title": "DataCite Blog",
|
8
8
|
"publisher": "DataCite",
|
9
9
|
"abstract": "Eating your own dog food is a slang term to describe that an organization should itself use the products and services it provides. For DataCite this means that we should use DOIs with appropriate metadata and strategies for long-term preservation for...",
|
10
|
+
"categories": [
|
11
|
+
"Phylogeny",
|
12
|
+
"Malaria",
|
13
|
+
"Parasites",
|
14
|
+
"Taxonomy",
|
15
|
+
"Mitochondrial genome",
|
16
|
+
"Africa",
|
17
|
+
"Plasmodium"
|
18
|
+
],
|
10
19
|
"issued": {
|
11
20
|
"date-parts": [
|
12
21
|
[
|
@@ -101,9 +101,10 @@ describe Bolognese::Metadata, vcr: true do
|
|
101
101
|
expect(ris[4]).to eq("DO - 10.5438/4k3m-nyvg")
|
102
102
|
expect(ris[5]).to eq("UR - https://blog.datacite.org/eating-your-own-dog-food")
|
103
103
|
expect(ris[6]).to eq("AB - Eating your own dog food is a slang term to describe that an organization should itself use the products and services it provides. For DataCite this means that we should use DOIs with appropriate metadata and strategies for long-term preservation for...")
|
104
|
-
expect(ris[7]).to eq("
|
105
|
-
expect(ris[
|
106
|
-
expect(ris[
|
104
|
+
expect(ris[7]).to eq("KW - Phylogeny")
|
105
|
+
expect(ris[14]).to eq("PY - 2016")
|
106
|
+
expect(ris[15]).to eq("PB - DataCite")
|
107
|
+
expect(ris[16]).to eq("ER - ")
|
107
108
|
end
|
108
109
|
|
109
110
|
it "BlogPosting DataCite JSON" do
|
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: 0.9.
|
4
|
+
version: 0.9.41
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Fenner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: maremma
|