commonmeta-ruby 3.3.13 → 3.3.14

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: 268a974a3bf6756e996b5643f5e574319e9ce20e155e152edfd4cd8c8c2b956d
4
- data.tar.gz: f69f6ab42980113d6b4630b14444145a325395589195aa83c9784719af79c17c
3
+ metadata.gz: 5ee69e57863623e144f88a33b390d82e7091e164251e18126dc91506aa1dbb46
4
+ data.tar.gz: 18a2dbf7ca68ab099441811fae3535164f9ecd32257a75b06327c2978adb2d86
5
5
  SHA512:
6
- metadata.gz: d6adbd54eeb59c3bd0bffffb506a991063f0c45059a52cc461026608e9c2210a46754a028a939c95d2b65768fd1c57dd9984de0f24b2870f8273cfa9c73277ec
7
- data.tar.gz: 1dda3637e1eb87022101634203bde4ab94fe4a906891d748424d6c361084aaf674b74147258dd6613e39d8e09c6c67fff488a95a048b6f1cb38caeed433f4c32
6
+ metadata.gz: ece7f1c165c734f8654329f809b2163013d6e837fc29a4b50e17f449e0754b6fa0ef3a6afd22c1601c0cd27c7659f068d1d59a9f166a7bc44b67e6d227a75366
7
+ data.tar.gz: 3eada0a28b0ccc7ea570b7ca45ee07c2a614725b0d55ca8fd6964c67579d27e9c538a51bc1e76e30c6faccff871e93959063702062df9f8a1cc25d9ae4468ba4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- commonmeta-ruby (3.3.13)
4
+ commonmeta-ruby (3.3.14)
5
5
  activesupport (>= 4.2.5, < 8.0)
6
6
  addressable (~> 2.8.1, < 2.8.2)
7
7
  base32-url (>= 0.7.0, < 1)
@@ -161,8 +161,8 @@ module Commonmeta
161
161
  xml.author(ref["author"]) if ref["author"].present?
162
162
  xml.volume(ref["volume"]) if ref["volume"].present?
163
163
  xml.first_page(ref["first_page"]) if ref["first_page"].present?
164
- xml.cYear(ref["cYear"]) if ref["cYear"].present?
165
- xml.article_title(ref["article_title"]) if ref["article_title"].present?
164
+ xml.cYear(ref["publicationYear"]) if ref["publicationYear"].present?
165
+ xml.article_title(ref["title"]) if ref["title"].present?
166
166
  xml.doi(doi_from_url(ref["doi"])) if ref["doi"].present?
167
167
  xml.unstructured_citation(ref["url"]) if ref["url"].present?
168
168
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Commonmeta
4
- VERSION = '3.3.13'
4
+ VERSION = '3.3.14'
5
5
  end
@@ -225,7 +225,7 @@ describe Commonmeta::Metadata, vcr: true do
225
225
  expect(crossref_xml.dig("titles",
226
226
  "title")).to eq("The Research Software Alliance (ReSA)")
227
227
  expect(crossref_xml.dig("citation_list", "citation").length).to eq(11)
228
- expect(crossref_xml.dig("citation_list", "citation").last).to eq("doi"=>"10.5281/zenodo.3699950", "key"=>"ref11")
228
+ expect(crossref_xml.dig("citation_list", "citation").last).to eq("article_title"=>"The Research Software Alliance (ReSA) and the community landscape", "cYear"=>"2020", "doi"=>"10.5281/zenodo.3699950", "key"=>"ref11")
229
229
  expect(crossref_xml.dig('item_number')).to eq("__content__"=>"954f81380ecd409087c5cef1297f1470", "item_number_type"=>"uuid")
230
230
  expect(crossref_xml.dig('group_title')).to eq('Humanities')
231
231
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commonmeta-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.13
4
+ version: 3.3.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner