commonmeta-ruby 3.4.1 → 3.4.3
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 -0
- 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: 5584d9dac6ede7ed84d68d3716d75398fd5ce50071676ef40bf3c0c95c98e4a8
|
4
|
+
data.tar.gz: 475855953040f83efdf80e8fcddf4b30dfb588ab1214501ce6baab3ac757a9fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9da89151cd17d5a1eee52095452ff201e6dfd312a8117bb859d2ddb371e053cbfc14e75d6d4269795b85aaef1fb3998422e842da15278b305963df99f60b7ae2
|
7
|
+
data.tar.gz: 5ffdf283cf68bdd47befc703e3b1be5e4d2eacb1d9b27cd55138ec69a375f0359df2cd6311f1d0002ba396321abc2dd1dbf424d44e8a05def8b46f8615479bcf
|
data/Gemfile.lock
CHANGED
@@ -209,8 +209,8 @@ module Commonmeta
|
|
209
209
|
identifier_type = validate_doi(related_identifier["id"]) ? "doi" : "uri"
|
210
210
|
id = identifier_type == "doi" ? doi_from_url(related_identifier["id"]) : related_identifier["id"]
|
211
211
|
attributes = {
|
212
|
-
"
|
213
|
-
"
|
212
|
+
"relationship-type" => related_identifier["type"].camelize(:lower),
|
213
|
+
"identifier-type" => identifier_type,
|
214
214
|
}.compact
|
215
215
|
|
216
216
|
xml.intra_work_relation(id, attributes)
|
data/lib/commonmeta/version.rb
CHANGED
@@ -312,6 +312,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
312
312
|
expect(subject.container).to eq("identifier" => "https://blog.front-matter.io", "identifierType" => "URL", "title" => "Front Matter", "type" => "Periodical")
|
313
313
|
expect(subject.references).to eq([{"doi"=>"https://doi.org/10.5281/ZENODO.30799", "key"=>"ref1", "publicationYear"=>"2015", "title"=>"D2.1: Artefact, Contributor, And Organisation Relationship Data Schema"}])
|
314
314
|
expect(subject.related_identifiers).to eq([{"id"=>"https://doi.org/10.5438/bc11-cqw1", "type"=>"IsIdenticalTo"}])
|
315
|
+
# puts subject.crossref_xml
|
315
316
|
crossref_xml = Hash.from_xml(subject.crossref_xml).dig("doi_batch", "body", "posted_content")
|
316
317
|
expect(Array.wrap(crossref_xml.dig("contributors", "person_name")).length).to eq(1)
|
317
318
|
expect(Array.wrap(crossref_xml.dig("contributors",
|