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: bf1779ef4d91877bf2b06945a51a3a0430542c6e
4
- data.tar.gz: 4e0052824a230f9c68aa4803bac7dd24268d9915
3
+ metadata.gz: 956ed80d752de61863794950ad58b19dab738c56
4
+ data.tar.gz: 845e5d73cc57093c4cf6bc93103ae9779d41e33f
5
5
  SHA512:
6
- metadata.gz: f508b3d4c273ec582e01569c3b11ddf4d9c5078aa3efc4e6ce8482f69023dd8c537298fdefd287ac13a7d6dffc1da81900b1ebf555e117fe9ef6d9636f2aab58
7
- data.tar.gz: 88f68548d0d8f83440e4e2f49e8975a6ee09d3758579628faf8c0b732af184f23129241c0bdfe243939f2a0cf573896e9a145ffb68328fcd0253a69a4a4cfdaf
6
+ metadata.gz: dbe599c3a2ffbdbb97c4574d621e3e157b43482cd3f5854f57e1cd94a81e1e033dac3ebe27f0322a1ddd788c1bfa4dbf23e7269ea25169b2597406652cf6ecbe
7
+ data.tar.gz: 073ed81d68a3ca11040a683704d887a8bee2994487491928f15b3292a072df017e4b93229add2942f844f96dc59593983a3cae8dd87255c4bbcde6a57027d7b9
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (0.9.40)
4
+ bolognese (0.9.41)
5
5
  activesupport (>= 4.2.5, < 6)
6
6
  benchmark_methods (~> 0.7)
7
7
  bibtex-ruby (~> 4.1)
@@ -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" => Array.wrap(meta.fetch("categories", nil)).split(", ")
67
+ "keywords" => meta.fetch("categories", nil)
68
68
  }
69
69
  end
70
70
  end
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "0.9.40"
2
+ VERSION = "0.9.41"
3
3
  end
@@ -5,7 +5,7 @@ module Bolognese
5
5
  hsh = {
6
6
  "type" => citeproc_type,
7
7
  "id" => id,
8
- "categories" => keywords.present? ? keywords.split(", ") : nil,
8
+ "categories" => parse_attributes(keywords, content: "text"),
9
9
  "language" => language,
10
10
  "author" => to_citeproc(author),
11
11
  "editor" => to_citeproc(editor),
@@ -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("PY - 2016")
105
- expect(ris[8]).to eq("PB - DataCite")
106
- expect(ris[9]).to eq("ER - ")
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.40
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-02 00:00:00.000000000 Z
11
+ date: 2017-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: maremma