commonmeta-ruby 3.3.13 → 3.3.14
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/commonmeta/crossref_utils.rb +2 -2
- data/lib/commonmeta/version.rb +1 -1
- data/spec/writers/crossref_xml_writer_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ee69e57863623e144f88a33b390d82e7091e164251e18126dc91506aa1dbb46
|
4
|
+
data.tar.gz: 18a2dbf7ca68ab099441811fae3535164f9ecd32257a75b06327c2978adb2d86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ece7f1c165c734f8654329f809b2163013d6e837fc29a4b50e17f449e0754b6fa0ef3a6afd22c1601c0cd27c7659f068d1d59a9f166a7bc44b67e6d227a75366
|
7
|
+
data.tar.gz: 3eada0a28b0ccc7ea570b7ca45ee07c2a614725b0d55ca8fd6964c67579d27e9c538a51bc1e76e30c6faccff871e93959063702062df9f8a1cc25d9ae4468ba4
|
data/Gemfile.lock
CHANGED
@@ -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["
|
165
|
-
xml.article_title(ref["
|
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
|
data/lib/commonmeta/version.rb
CHANGED
@@ -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
|