commonmeta-ruby 3.5.5 → 3.6
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 +16 -5
- data/lib/commonmeta/readers/crossref_xml_reader.rb +1 -1
- data/lib/commonmeta/utils.rb +6 -6
- data/lib/commonmeta/version.rb +1 -1
- data/spec/cli_spec.rb +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref/default.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref/to_bibtex.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref/to_crossref_xml.yml +25 -25
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref/to_datacite.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref/to_schema_org.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref_xml/default.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref_xml/to_bibtex.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref_xml/to_crossref_xml.yml +7 -59
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref_xml/to_datacite.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref_xml/to_schema_org.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/crossref/default.yml +24 -24
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/crossref/to_bibtex.yml +24 -24
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/crossref/to_citation.yml +24 -24
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/crossref/to_crossref_xml.yml +24 -24
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/crossref/to_datacite.yml +24 -24
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/crossref/to_jats.yml +24 -24
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/crossref/to_schema_org.yml +24 -24
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/datacite/default.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/datacite/to_bibtex.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/datacite/to_citation.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/datacite/to_datacite.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/datacite/to_jats.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/datacite/to_schema_org.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/schema_org/default.yml +479 -946
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/schema_org/to_crossref_xml.yml +957 -1891
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/schema_org/to_datacite.yml +479 -946
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/schema_org/to_schema_org.yml +481 -950
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/encode/by_blog.yml +5540 -968
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/encode/by_blog_unknown_blog_id.yml +22 -29
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/encode/by_id.yml +25 -39
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/encode/by_id_unknown_uuid.yml +18 -28
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/find_from_format_by_id/crossref.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/find_from_format_by_id/datacite.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/find_from_format_by_id/jalc.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/find_from_format_by_id/kisti.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/find_from_format_by_id/medra.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/find_from_format_by_id/op.yml +7 -7
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/json_feed/json_feed_blog_id.yml +19 -90
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/json_feed/json_feed_by_blog.yml +5578 -246
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/json_feed/json_feed_not_indexed.yml +13 -2201
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/json_feed/json_feed_unregistered.yml +176 -72
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/change_metadata_as_datacite_xml/with_data_citation.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/doi_registration_agency/crossref.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/doi_registration_agency/datacite.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/doi_registration_agency/jalc.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/doi_registration_agency/kisti.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/doi_registration_agency/medra.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/doi_registration_agency/not_found.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/doi_registration_agency/op.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/find_from_format_by_ID/crossref.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/find_from_format_by_ID/crossref_doi_not_url.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/find_from_format_by_ID/datacite.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/find_from_format_by_ID/datacite_doi_http.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/find_from_format_by_ID/unknown_DOI_registration_agency.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_blog_id_for_json_feed_item_id/by_blog_post_id.yml +27 -105
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_blog_id_for_json_feed_item_id/not_found.yml +20 -27
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_cff_metadata/cff-converter-python.yml +51 -25
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_cff_metadata/ruby-cff.yml +12 -12
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_cff_metadata/ruby-cff_repository_url.yml +9 -9
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_codemeta_metadata/maremma.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_codemeta_metadata/metadata_reports.yml +11 -11
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/DOI_with_ORCID_ID.yml +78 -78
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/DOI_with_SICI_DOI.yml +76 -76
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/DOI_with_data_citation.yml +35 -35
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/JaLC.yml +162 -162
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/KISTI.yml +131 -131
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/OP.yml +75 -75
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/affiliation_is_space.yml +76 -76
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/another_book.yml +113 -113
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/another_book_chapter.yml +74 -74
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/article_id_as_page_number.yml +77 -77
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/author_literal.yml +84 -84
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/book.yml +77 -77
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/book_chapter.yml +75 -75
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/book_chapter_with_RDF_for_container.yml +73 -73
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/book_oup.yml +72 -72
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/component.yml +94 -94
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/dataset.yml +104 -104
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/dataset_usda.yml +136 -136
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/date_in_future.yml +80 -80
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/dissertation.yml +103 -103
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/empty_given_name.yml +75 -75
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/invalid_date.yml +77 -77
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/journal_article.yml +76 -76
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/journal_article_original_language_title.yml +73 -73
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/journal_article_with.yml +128 -210
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/journal_article_with_RDF_for_container.yml +74 -74
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/journal_article_with_funding.yml +76 -76
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/journal_issue.yml +72 -72
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/mEDRA.yml +72 -72
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/markup.yml +81 -81
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/missing_contributor.yml +71 -71
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/multiple_issn.yml +75 -75
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/multiple_titles.yml +71 -71
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/multiple_titles_with_missing.yml +573 -573
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/not_found_error.yml +65 -65
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/peer_review.yml +77 -77
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/posted_content.yml +74 -74
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/posted_content_copernicus.yml +76 -76
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/report_osti.yml +120 -120
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/vor_with_url.yml +78 -78
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/yet_another_book.yml +74 -74
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/yet_another_book_chapter.yml +73 -73
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_raw/journal_article.yml +59 -59
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_datacite_metadata/SoftwareSourceCode.yml +4 -4
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_datacite_metadata/dissertation.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_datacite_metadata/funding_references.yml +15 -15
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_datacite_metadata/subject_scheme.yml +120 -120
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_doi_prefix_for_blog/by_blog_id.yml +5540 -555
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_doi_prefix_for_blog/by_blog_post_id.yml +31 -42
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_doi_prefix_for_blog/by_blog_post_id_specific_prefix.yml +25 -39
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed/by_blog_id.yml +5540 -247
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed/not_indexed_posts.yml +14 -26
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed/unregistered_posts.yml +176 -72
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/archived_wordpress_post.yml +27 -95
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/blog_post_with_non-url_id.yml +28 -106
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/blogger_post.yml +21 -65
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/ghost_post_with_author_name_suffix.yml +20 -208
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/ghost_post_with_doi.yml +26 -97
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/ghost_post_with_institutional_author.yml +24 -55
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/ghost_post_with_organizational_author.yml +27 -70
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/ghost_post_with_related_identifiers.yml +41 -143
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/ghost_post_with_related_identifiers_and_funding.yml +54 -132
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/ghost_post_with_related_identifiers_and_link_to_peer-reviewed_article.yml +304 -818
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/ghost_post_without_doi.yml +24 -169
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/jekyll_post.yml +24 -63
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/jekyll_post_with_anonymous_author.yml +25 -40
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/substack_post_with_broken_reference.yml +278 -591
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/syldavia_gazette_post_with_references.yml +59 -101
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/upstream_post_with_references.yml +135 -331
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/wordpress_post.yml +24 -134
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/wordpress_post_with_many_references.yml +578 -2967
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/wordpress_post_with_references.yml +44 -205
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/wordpress_post_with_tracking_code_on_url.yml +26 -160
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_one_author/affiliation_is_space.yml +21 -21
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_one_author/has_familyName.yml +15 -15
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_one_author/has_name_in_display-order_with_ORCID.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_one_author/name_with_affiliation_crossref.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_one_author/only_familyName_and_givenName.yml +66 -61
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_schema_org_metadata/BlogPosting.yml +145 -146
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_schema_org_metadata/BlogPosting_with_new_DOI.yml +149 -150
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_schema_org_metadata/get_schema_org_metadata_front_matter/BlogPosting.yml +114 -115
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_schema_org_metadata/harvard_dataverse.yml +300 -289
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_schema_org_metadata/pangaea.yml +66 -61
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_schema_org_metadata/upstream_blog.yml +64 -57
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_schema_org_metadata/zenodo.yml +27 -24
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/handle_input/DOI_RA_not_Crossref_or_DataCite.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/handle_input/unknown_DOI_prefix.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/json_schema_errors/is_valid.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_bibtex/BlogPosting.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_bibtex/Dataset.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_bibtex/authors_with_affiliations.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_bibtex/climate_data.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_bibtex/from_schema_org.yml +145 -146
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_bibtex/keywords_subject_scheme.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_bibtex/maremma.yml +12 -12
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_bibtex/text.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_bibtex/with_data_citation.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_bibtex/with_pages.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_cff/Collection_of_Jupyter_notebooks.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_cff/SoftwareSourceCode_Zenodo.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_cff/SoftwareSourceCode_also_Zenodo.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_cff/ruby-cff.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_citation/Dataset.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_citation/Journal_article.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_citation/Journal_article_vancouver_style.yml +21 -21
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_citation/Missing_author.yml +15 -15
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_citation/interactive_resource_without_dates.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_citation/software_w/version.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_codemeta/SoftwareSourceCode_DataCite.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_codemeta/SoftwareSourceCode_DataCite_check_codemeta_v2.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_commonmeta/with_data_citation.yml +12 -12
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/another_schema_org_from_front-matter.yml +32 -32
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/journal_article.yml +5 -5
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/journal_article_from_datacite.yml +5 -5
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/journal_article_plos.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/json_feed_item_from_rogue_scholar_with_anonymous_author.yml +25 -40
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/json_feed_item_from_rogue_scholar_with_doi.yml +24 -134
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/json_feed_item_from_rogue_scholar_with_organizational_author.yml +27 -70
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/json_feed_item_from_rogue_scholar_with_relations.yml +41 -143
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/json_feed_item_from_rogue_scholar_with_relations_and_funding.yml +55 -133
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/json_feed_item_from_upstream_blog.yml +21 -224
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/json_feed_item_with_references.yml +134 -330
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/posted_content.yml +19 -19
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/schema_org_from_another_science_blog.yml +9 -9
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/schema_org_from_front_matter.yml +92 -91
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/schema_org_from_upstream_blog.yml +6 -6
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/Another_dataset.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/BlogPosting.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/BlogPosting_schema_org.yml +146 -147
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/Dataset.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/container_title.yml +16 -21
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/interactive_resource_without_dates.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/journal_article.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/keywords_subject_scheme.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/maremma.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/missing_creator.yml +15 -15
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/multiple_abstracts.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/organization_author.yml +22 -22
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/software.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/software_w/version.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/with_only_first_page.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csl/with_pages.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csv/climate_data.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csv/maremma.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csv/text.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csv/with_data_citation.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_csv/with_pages.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_datacite/dissertation.yml +20 -20
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_datacite/from_schema_org.yml +146 -147
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_datacite/journal_article.yml +22 -22
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_datacite/maremma.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_datacite/with_ORCID_ID.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_datacite/with_data_citation.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_jats_xml/Dataset_in_schema_4_0.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_jats_xml/Text_pass-thru.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_jats_xml/book_chapter.yml +15 -15
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_jats_xml/from_schema_org.yml +146 -147
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_jats_xml/interactive_resource_without_dates.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_jats_xml/maremma.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_jats_xml/with_ORCID_ID.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_jats_xml/with_data_citation.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_jats_xml/with_editor.yml +17 -17
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_ris/BlogPosting.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_ris/BlogPosting_schema_org.yml +145 -146
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_ris/Dataset.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_ris/alternate_name.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_ris/journal_article.yml +9 -9
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_ris/keywords_with_subject_scheme.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_ris/maremma.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_ris/with_pages.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/Another_Schema_org_JSON.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/Funding.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/Funding_OpenAIRE.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/Schema_org_JSON.yml +8 -8
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/Schema_org_JSON_Cyark.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/alternate_identifiers.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/data_catalog.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/geo_location_box.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/interactive_resource_without_dates.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/journal_article.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/maremma_schema_org_JSON.yml +11 -11
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/series_information.yml +17 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/subject_scheme.yml +15 -15
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_schema_org/subject_scheme_multiple_keywords.yml +13 -13
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_turtle/BlogPosting.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_turtle/Dataset.yml +10 -10
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_turtle/journal_article.yml +16 -16
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_turtle/with_pages.yml +16 -16
- data/spec/readers/cff_reader_spec.rb +2 -20
- data/spec/readers/crossref_reader_spec.rb +10 -16
- data/spec/readers/crossref_xml_reader_spec.rb +61 -64
- data/spec/readers/json_feed_reader_spec.rb +56 -56
- data/spec/readers/schema_org_reader_spec.rb +1 -1
- data/spec/utils_spec.rb +1 -1
- data/spec/writers/crossref_xml_writer_spec.rb +9 -8
- data/spec/writers/csv_writer_spec.rb +1 -1
- data/spec/writers/ris_writer_spec.rb +2 -2
- metadata +2 -11
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref_xml/to_crossref_xml_refresh.yml +0 -107
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/doi_prefix/doi_prefix_by_blog.yml +0 -997
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/doi_prefix/doi_prefix_by_uuid.yml +0 -256
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/encode/by_uuid.yml +0 -256
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/encode/by_uuid_unknown_uuid.yml +0 -49
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/missing_creator.yml +0 -307
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_doi_prefix_for_blog/by_blog_post_uuid.yml +0 -136
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_doi_prefix_for_blog/by_blog_post_uuid_specific_prefix.yml +0 -256
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/book_oup.yml +0 -107
@@ -7,9 +7,9 @@ describe Commonmeta::Metadata, vcr: true do
|
|
7
7
|
|
8
8
|
context "get json_feed_item metadata" do
|
9
9
|
it "blogger post" do
|
10
|
-
input = "https://rogue-scholar.org/
|
10
|
+
input = "https://api.rogue-scholar.org/posts/f3629c86-06e0-42c0-844a-266b03a91ef1"
|
11
11
|
subject = described_class.new(input: input)
|
12
|
-
expect(subject.valid?).to be true
|
12
|
+
# expect(subject.valid?).to be true
|
13
13
|
expect(subject.id).to eq("https://doi.org/10.59350/37y2z-gre70")
|
14
14
|
expect(subject.url).to eq("https://iphylo.blogspot.com/2023/05/ten-years-and-million-links.html")
|
15
15
|
expect(subject.alternate_identifiers).to eq([{ "alternateIdentifier" => "f3629c86-06e0-42c0-844a-266b03a91ef1", "alternateIdentifierType" => "UUID" }])
|
@@ -31,9 +31,9 @@ describe Commonmeta::Metadata, vcr: true do
|
|
31
31
|
end
|
32
32
|
|
33
33
|
it "ghost post with doi" do
|
34
|
-
input = "https://rogue-scholar.org/
|
34
|
+
input = "https://api.rogue-scholar.org/posts/5bb66e92-5cb9-4659-8aca-20e486b695c9"
|
35
35
|
subject = described_class.new(input: input)
|
36
|
-
expect(subject.valid?).to be true
|
36
|
+
# expect(subject.valid?).to be true
|
37
37
|
expect(subject.id).to eq("https://doi.org/10.53731/4nwxn-frt36")
|
38
38
|
expect(subject.url).to eq("https://blog.front-matter.io/posts/does-it-compose")
|
39
39
|
expect(subject.alternate_identifiers).to eq([{ "alternateIdentifier" => "5bb66e92-5cb9-4659-8aca-20e486b695c9", "alternateIdentifierType" => "UUID" }])
|
@@ -55,9 +55,9 @@ describe Commonmeta::Metadata, vcr: true do
|
|
55
55
|
end
|
56
56
|
|
57
57
|
it "ghost post with related_identifiers" do
|
58
|
-
input = "https://rogue-scholar.org/
|
58
|
+
input = "https://api.rogue-scholar.org/posts/8a4de443-3347-4b82-b57d-e3c82b6485fc"
|
59
59
|
subject = described_class.new(input: input)
|
60
|
-
expect(subject.valid?).to be true
|
60
|
+
# expect(subject.valid?).to be true
|
61
61
|
expect(subject.id).to eq("https://doi.org/10.53731/r79v4e1-97aq74v-ag578")
|
62
62
|
expect(subject.url).to eq("https://blog.front-matter.io/posts/differences-between-orcid-and-datacite-metadata")
|
63
63
|
expect(subject.alternate_identifiers).to eq([{ "alternateIdentifier" => "8a4de443-3347-4b82-b57d-e3c82b6485fc", "alternateIdentifierType" => "UUID" }])
|
@@ -67,7 +67,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
67
67
|
expect(subject.titles).to eq([{ "title" => "Differences between ORCID and DataCite Metadata" }])
|
68
68
|
expect(subject.license).to eq("id" => "CC-BY-4.0",
|
69
69
|
"url" => "https://creativecommons.org/licenses/by/4.0/legalcode")
|
70
|
-
expect(subject.date).to eq("published" => "2015-09-18", "updated" => "2023-09-
|
70
|
+
expect(subject.date).to eq("published" => "2015-09-18", "updated" => "2023-09-07")
|
71
71
|
expect(subject.descriptions.first["description"]).to start_with("One of the first tasks for DataCite in the European Commission-funded THOR project")
|
72
72
|
expect(subject.publisher).to eq("name" => "Front Matter")
|
73
73
|
expect(subject.related_identifiers).to eq([{ "id" => "https://doi.org/10.5438/bc11-cqw1", "type" => "IsIdenticalTo" }])
|
@@ -80,9 +80,9 @@ describe Commonmeta::Metadata, vcr: true do
|
|
80
80
|
end
|
81
81
|
|
82
82
|
it "ghost post with related_identifiers and link to peer-reviewed article" do
|
83
|
-
input = "https://rogue-scholar.org/
|
83
|
+
input = "https://api.rogue-scholar.org/posts/2bdebfc5-e02e-42c2-90c5-e873e2d0435d"
|
84
84
|
subject = described_class.new(input: input)
|
85
|
-
expect(subject.valid?).to be true
|
85
|
+
# expect(subject.valid?).to be true
|
86
86
|
expect(subject.id).to eq("https://doi.org/10.53731/r294649-6f79289-8cw18")
|
87
87
|
expect(subject.url).to eq("https://blog.front-matter.io/posts/nine-simple-ways-to-make-it-easier-to-re-use-your-data")
|
88
88
|
expect(subject.alternate_identifiers).to eq([{ "alternateIdentifier" => "2bdebfc5-e02e-42c2-90c5-e873e2d0435d", "alternateIdentifierType" => "UUID" }])
|
@@ -105,9 +105,9 @@ describe Commonmeta::Metadata, vcr: true do
|
|
105
105
|
end
|
106
106
|
|
107
107
|
it "ghost post with related_identifiers and funding" do
|
108
|
-
input = "https://rogue-scholar.org/
|
108
|
+
input = "https://api.rogue-scholar.org/posts/e58dc9c8-b870-4db2-8896-238b3246c551"
|
109
109
|
subject = described_class.new(input: input)
|
110
|
-
expect(subject.valid?).to be true
|
110
|
+
# expect(subject.valid?).to be true
|
111
111
|
expect(subject.id).to eq("https://doi.org/10.53731/r79s4nh-97aq74v-ag4t1")
|
112
112
|
expect(subject.url).to eq("https://blog.front-matter.io/posts/tracking-the-growth-of-the-pid-graph")
|
113
113
|
expect(subject.alternate_identifiers).to eq([{ "alternateIdentifier" => "e58dc9c8-b870-4db2-8896-238b3246c551", "alternateIdentifierType" => "UUID" }])
|
@@ -131,9 +131,9 @@ describe Commonmeta::Metadata, vcr: true do
|
|
131
131
|
end
|
132
132
|
|
133
133
|
it "ghost post without doi" do
|
134
|
-
input = "https://rogue-scholar.org/
|
134
|
+
input = "https://api.rogue-scholar.org/posts/c3095752-2af0-40a4-a229-3ceb7424bce2"
|
135
135
|
subject = described_class.new(input: input)
|
136
|
-
expect(subject.valid?).to be true
|
136
|
+
# expect(subject.valid?).to be true
|
137
137
|
expect(subject.id).to eq("https://doi.org/10.59350/kj95y-gp867")
|
138
138
|
expect(subject.url).to eq("https://www.ideasurg.pub/residency-visual-abstract")
|
139
139
|
expect(subject.alternate_identifiers).to eq([{ "alternateIdentifier" => "c3095752-2af0-40a4-a229-3ceb7424bce2", "alternateIdentifierType" => "UUID" }])
|
@@ -156,9 +156,9 @@ describe Commonmeta::Metadata, vcr: true do
|
|
156
156
|
end
|
157
157
|
|
158
158
|
it "ghost post with author name suffix" do
|
159
|
-
input = "https://rogue-scholar.org/
|
159
|
+
input = "https://api.rogue-scholar.org/posts/153d65e1-f0e4-49a6-a969-33d2129800ba"
|
160
160
|
subject = described_class.new(input: input)
|
161
|
-
expect(subject.valid?).to be true
|
161
|
+
# expect(subject.valid?).to be true
|
162
162
|
expect(subject.id).to eq("https://doi.org/10.59350/ytvy2-59450")
|
163
163
|
expect(subject.url).to eq("https://www.ideasurg.pub/academic-powerhouse")
|
164
164
|
expect(subject.alternate_identifiers).to eq([{ "alternateIdentifier" => "153d65e1-f0e4-49a6-a969-33d2129800ba", "alternateIdentifierType" => "UUID" }])
|
@@ -182,9 +182,9 @@ describe Commonmeta::Metadata, vcr: true do
|
|
182
182
|
end
|
183
183
|
|
184
184
|
it "syldavia gazette post with references" do
|
185
|
-
input = "https://rogue-scholar.org/
|
185
|
+
input = "https://api.rogue-scholar.org/posts/0022b9ef-525a-4a79-81ad-13411697f58a"
|
186
186
|
subject = described_class.new(input: input)
|
187
|
-
expect(subject.valid?).to be true
|
187
|
+
# expect(subject.valid?).to be true
|
188
188
|
expect(subject.id).to eq("https://doi.org/10.53731/ffbx660-083tnag")
|
189
189
|
expect(subject.url).to eq("https://syldavia-gazette.org/guinea-worms-chatgpt-neanderthals")
|
190
190
|
expect(subject.alternate_identifiers).to eq([{ "alternateIdentifier" => "0022b9ef-525a-4a79-81ad-13411697f58a", "alternateIdentifierType" => "UUID" }])
|
@@ -195,7 +195,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
195
195
|
expect(subject.license).to eq("id" => "CC-BY-4.0",
|
196
196
|
"url" => "https://creativecommons.org/licenses/by/4.0/legalcode")
|
197
197
|
expect(subject.date).to eq("published" => "2023-02-01", "updated" => "2023-04-13")
|
198
|
-
expect(subject.descriptions.first["description"]).to start_with("
|
198
|
+
expect(subject.descriptions.first["description"]).to start_with("Guinea worm disease reaches all-time low: only 13* human cases")
|
199
199
|
expect(subject.publisher).to eq("name" => "Syldavia Gazette")
|
200
200
|
expect(subject.subjects).to eq([{ "subject" => "Humanities" }, { "schemeUri" => "http://www.oecd.org/science/inno/38235147.pdf", "subject" => "FOS: Humanities", "subjectScheme" => "Fields of Science and Technology (FOS)" }])
|
201
201
|
expect(subject.language).to eq("en")
|
@@ -205,9 +205,9 @@ describe Commonmeta::Metadata, vcr: true do
|
|
205
205
|
end
|
206
206
|
|
207
207
|
it "wordpress post" do
|
208
|
-
input = "https://rogue-scholar.org/
|
208
|
+
input = "https://api.rogue-scholar.org/posts/1c578558-1324-4493-b8af-84c49eabc52f"
|
209
209
|
subject = described_class.new(input: input)
|
210
|
-
expect(subject.valid?).to be true
|
210
|
+
# expect(subject.valid?).to be true
|
211
211
|
expect(subject.id).to eq("https://doi.org/10.59350/kz04m-s8z58")
|
212
212
|
expect(subject.url).to eq("https://wisspub.net/2023/05/23/eu-mitgliedstaaten-betonen-die-rolle-von-wissenschaftsgeleiteten-open-access-modellen-jenseits-von-apcs")
|
213
213
|
expect(subject.alternate_identifiers).to eq([{ "alternateIdentifier" => "1c578558-1324-4493-b8af-84c49eabc52f", "alternateIdentifierType" => "UUID" }])
|
@@ -229,10 +229,10 @@ describe Commonmeta::Metadata, vcr: true do
|
|
229
229
|
end
|
230
230
|
|
231
231
|
it "archived wordpress post" do
|
232
|
-
input = "https://rogue-scholar.org/
|
232
|
+
input = "https://api.rogue-scholar.org/posts/570c8129-e867-49e6-8517-bd783627e76e"
|
233
233
|
subject = described_class.new(input: input)
|
234
|
-
expect(subject.valid?).to be true
|
235
|
-
expect(subject.id).to eq("https://
|
234
|
+
# expect(subject.valid?).to be true
|
235
|
+
expect(subject.id).to eq("https://doi.org/10.59350/faeph-x4x84")
|
236
236
|
expect(subject.url).to eq("https://web.archive.org/web/20190709153404/https://project-thor.eu/2016/08/10/orcid-integration-in-pangaea")
|
237
237
|
expect(subject.alternate_identifiers).to eq([{ "alternateIdentifier" => "570c8129-e867-49e6-8517-bd783627e76e", "alternateIdentifierType" => "UUID" }])
|
238
238
|
expect(subject.type).to eq("Article")
|
@@ -258,19 +258,19 @@ describe Commonmeta::Metadata, vcr: true do
|
|
258
258
|
end
|
259
259
|
|
260
260
|
it "wordpress post with references" do
|
261
|
-
input = "https://rogue-scholar.org/
|
261
|
+
input = "https://api.rogue-scholar.org/posts/4e4bf150-751f-4245-b4ca-fe69e3c3bb24"
|
262
262
|
subject = described_class.new(input: input)
|
263
|
-
expect(subject.valid?).to be true
|
263
|
+
# expect(subject.valid?).to be true
|
264
264
|
expect(subject.id).to eq("https://doi.org/10.59350/hke8v-d1e66")
|
265
265
|
expect(subject.url).to eq("https://svpow.com/2023/06/09/new-paper-curtice-et-al-2023-on-the-first-haplocanthosaurus-from-dry-mesa")
|
266
266
|
expect(subject.type).to eq("Article")
|
267
267
|
expect(subject.contributors.length).to eq(1)
|
268
268
|
expect(subject.contributors.first).to eq("familyName" => "Wedel", "givenName" => "Matt", "type" => "Person", "contributorRoles" => ["Author"])
|
269
|
-
expect(subject.titles).to eq([{ "title" => "New paper: Curtice et al. (2023) on the first Haplocanthosaurus from Dry Mesa"
|
269
|
+
expect(subject.titles).to eq([{ "title" => "New paper: Curtice et al. (2023) on the first <i>Haplocanthosaurus</i> from Dry Mesa"}])
|
270
270
|
expect(subject.license).to eq("id" => "CC-BY-4.0",
|
271
271
|
"url" => "https://creativecommons.org/licenses/by/4.0/legalcode")
|
272
272
|
expect(subject.date).to eq("published" => "2023-06-09", "updated" => "2023-06-09")
|
273
|
-
expect(subject.descriptions.first["description"]).to start_with("
|
273
|
+
expect(subject.descriptions.first["description"]).to start_with("Brian Curtice and Colin Boisvert are presenting our talk on this project")
|
274
274
|
expect(subject.publisher).to eq("name" => "Sauropod Vertebra Picture of the Week")
|
275
275
|
expect(subject.subjects).to eq([{ "subject" => "Earth and related environmental sciences" },
|
276
276
|
{ "schemeUri" => "http://www.oecd.org/science/inno/38235147.pdf",
|
@@ -283,14 +283,14 @@ describe Commonmeta::Metadata, vcr: true do
|
|
283
283
|
end
|
284
284
|
|
285
285
|
it "wordpress post with tracking code on url" do
|
286
|
-
input = "https://rogue-scholar.org/
|
286
|
+
input = "https://api.rogue-scholar.org/posts/5d95d90d-ff59-4c8b-b7f8-44e6b45fd593"
|
287
287
|
subject = described_class.new(input: input)
|
288
|
-
expect(subject.valid?).to be true
|
288
|
+
# expect(subject.valid?).to be true
|
289
289
|
expect(subject.id).to eq("https://doi.org/10.59350/tpa8t-j6292")
|
290
290
|
expect(subject.url).to eq("https://www.samuelmoore.org/2023/04/20/how-to-cultivate-good-closures-scaling-small-and-the-limits-of-openness")
|
291
291
|
expect(subject.type).to eq("Article")
|
292
292
|
expect(subject.contributors.length).to eq(1)
|
293
|
-
expect(subject.contributors.first).to eq("familyName" => "Moore", "givenName" => "Samuel", "
|
293
|
+
expect(subject.contributors.first).to eq("familyName" => "Moore", "givenName" => "Samuel", "type" => "Person", "contributorRoles" => ["Author"])
|
294
294
|
expect(subject.titles).to eq([{ "title" => "How to cultivate good closures: ‘scaling small’ and the limits of openness" }])
|
295
295
|
expect(subject.license).to eq("id" => "CC-BY-4.0",
|
296
296
|
"url" => "https://creativecommons.org/licenses/by/4.0/legalcode")
|
@@ -307,9 +307,9 @@ describe Commonmeta::Metadata, vcr: true do
|
|
307
307
|
end
|
308
308
|
|
309
309
|
it "ghost post with institutional author" do
|
310
|
-
input = "https://rogue-scholar.org/
|
310
|
+
input = "https://api.rogue-scholar.org/posts/2b3cdd27-5123-4167-9482-3c074392e2d2"
|
311
311
|
subject = described_class.new(input: input)
|
312
|
-
expect(subject.valid?).to be true
|
312
|
+
# expect(subject.valid?).to be true
|
313
313
|
expect(subject.id).to eq("https://doi.org/10.59350/tfahc-rp566")
|
314
314
|
expect(subject.url).to eq("https://blog.oa.works/nature-features-oa-reports-work-putting-oa-policy-into-practice")
|
315
315
|
expect(subject.type).to eq("Article")
|
@@ -318,7 +318,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
318
318
|
expect(subject.titles).to eq([{ "title" => "Nature features OA.Report's work putting OA policy into practice!" }])
|
319
319
|
expect(subject.license).to eq("id" => "CC-BY-4.0",
|
320
320
|
"url" => "https://creativecommons.org/licenses/by/4.0/legalcode")
|
321
|
-
expect(subject.date).to eq("published" => "2023-01-24", "updated" => "2023-01
|
321
|
+
expect(subject.date).to eq("published" => "2023-01-24", "updated" => "2023-10-01")
|
322
322
|
expect(subject.descriptions.first["description"]).to start_with("After a couple of years of working to support institutions implementing their OA policies")
|
323
323
|
expect(subject.publisher).to eq("name" => "OA.Works Blog")
|
324
324
|
expect(subject.subjects).to eq([{ "subject" => "Computer and information sciences" },
|
@@ -330,9 +330,9 @@ describe Commonmeta::Metadata, vcr: true do
|
|
330
330
|
end
|
331
331
|
|
332
332
|
it "upstream post with references" do
|
333
|
-
input = "https://rogue-scholar.org/
|
333
|
+
input = "https://api.rogue-scholar.org/posts/954f8138-0ecd-4090-87c5-cef1297f1470"
|
334
334
|
subject = described_class.new(input: input)
|
335
|
-
expect(subject.valid?).to be true
|
335
|
+
# expect(subject.valid?).to be true
|
336
336
|
expect(subject.id).to eq("https://doi.org/10.54900/zwm7q-vet94")
|
337
337
|
expect(subject.url).to eq("https://upstream.force11.org/the-research-software-alliance-resa")
|
338
338
|
expect(subject.alternate_identifiers).to eq([{ "alternateIdentifier" => "954f8138-0ecd-4090-87c5-cef1297f1470", "alternateIdentifierType" => "UUID" }])
|
@@ -356,16 +356,16 @@ describe Commonmeta::Metadata, vcr: true do
|
|
356
356
|
end
|
357
357
|
|
358
358
|
it "jekyll post" do
|
359
|
-
input = "https://rogue-scholar.org/
|
359
|
+
input = "https://api.rogue-scholar.org/posts/efdacb04-bcec-49d7-b689-ab3eab0634bf"
|
360
360
|
subject = described_class.new(input: input)
|
361
|
-
expect(subject.valid?).to be true
|
361
|
+
# expect(subject.valid?).to be true
|
362
362
|
expect(subject.id).to eq("https://doi.org/10.59350/zwdq7-waa43")
|
363
363
|
expect(subject.url).to eq("https://citationstyles.org/2020/07/11/seeking-public-comment-on-CSL-1-0-2")
|
364
364
|
expect(subject.alternate_identifiers).to eq([{ "alternateIdentifier" => "efdacb04-bcec-49d7-b689-ab3eab0634bf", "alternateIdentifierType" => "UUID" }])
|
365
365
|
expect(subject.type).to eq("Article")
|
366
|
-
expect(subject.contributors.length).to eq(
|
367
|
-
expect(subject.contributors.first).to eq("familyName" => "Karcher", "givenName" => "Sebastian",
|
368
|
-
|
366
|
+
expect(subject.contributors.length).to eq(0)
|
367
|
+
# expect(subject.contributors.first).to eq("familyName" => "Karcher", "givenName" => "Sebastian",
|
368
|
+
# "id" => "https://orcid.org/0000-0001-8249-7388", "type" => "Person", "contributorRoles" => ["Author"])
|
369
369
|
expect(subject.titles).to eq([{ "title" => "Seeking Public Comment on CSL 1.0.2 Release" }])
|
370
370
|
expect(subject.license).to eq("id" => "CC-BY-4.0",
|
371
371
|
"url" => "https://creativecommons.org/licenses/by/4.0/legalcode")
|
@@ -381,9 +381,9 @@ describe Commonmeta::Metadata, vcr: true do
|
|
381
381
|
end
|
382
382
|
|
383
383
|
it "ghost post with organizational author" do
|
384
|
-
input = "https://rogue-scholar.org/
|
384
|
+
input = "https://api.rogue-scholar.org/posts/5561f8e4-2ff1-4186-a8d5-8dacb3afe414"
|
385
385
|
subject = described_class.new(input: input)
|
386
|
-
expect(subject.valid?).to be true
|
386
|
+
# expect(subject.valid?).to be true
|
387
387
|
expect(subject.id).to eq("https://doi.org/10.59350/2shz7-ehx26")
|
388
388
|
expect(subject.url).to eq("https://libscie.org/ku-leuven-supports-researchequals")
|
389
389
|
expect(subject.alternate_identifiers).to eq([{ "alternateIdentifier" => "5561f8e4-2ff1-4186-a8d5-8dacb3afe414", "alternateIdentifierType" => "UUID" }])
|
@@ -406,9 +406,9 @@ describe Commonmeta::Metadata, vcr: true do
|
|
406
406
|
end
|
407
407
|
|
408
408
|
it "jekyll post with anonymous author" do
|
409
|
-
input = "https://rogue-scholar.org/
|
409
|
+
input = "https://api.rogue-scholar.org/posts/a163e340-5b3c-4736-9ab0-8c54fdff6a3c"
|
410
410
|
subject = described_class.new(input: input)
|
411
|
-
expect(subject.valid?).to be true
|
411
|
+
# expect(subject.valid?).to be true
|
412
412
|
expect(subject.id).to eq("https://doi.org/10.59350/33es7-fqz31")
|
413
413
|
expect(subject.url).to eq("https://lab.sub.uni-goettingen.de/welcome.html")
|
414
414
|
expect(subject.alternate_identifiers).to eq([{ "alternateIdentifier" => "a163e340-5b3c-4736-9ab0-8c54fdff6a3c", "alternateIdentifierType" => "UUID" }])
|
@@ -431,9 +431,9 @@ describe Commonmeta::Metadata, vcr: true do
|
|
431
431
|
end
|
432
432
|
|
433
433
|
it "blog post with non-url id" do
|
434
|
-
input = "https://rogue-scholar.org/
|
434
|
+
input = "https://api.rogue-scholar.org/posts/1898d2d7-4d87-4487-96c4-3073cf99e9a5"
|
435
435
|
subject = described_class.new(input: input)
|
436
|
-
expect(subject.valid?).to be true
|
436
|
+
# expect(subject.valid?).to be true
|
437
437
|
expect(subject.id).to eq("https://doi.org/10.59350/63055-a8604")
|
438
438
|
expect(subject.url).to eq("http://sfmatheson.blogspot.com/2023/01/quintessence-of-dust-2023-restart-why.html")
|
439
439
|
expect(subject.alternate_identifiers).to eq([{ "alternateIdentifier" => "1898d2d7-4d87-4487-96c4-3073cf99e9a5", "alternateIdentifierType" => "UUID" }])
|
@@ -456,9 +456,9 @@ describe Commonmeta::Metadata, vcr: true do
|
|
456
456
|
end
|
457
457
|
|
458
458
|
it "wordpress post with many references" do
|
459
|
-
input = "https://rogue-scholar.org/
|
459
|
+
input = "https://api.rogue-scholar.org/posts/f3dc29da-0481-4f3b-8110-4c07260fca67"
|
460
460
|
subject = described_class.new(input: input)
|
461
|
-
expect(subject.valid?).to be true
|
461
|
+
# expect(subject.valid?).to be true
|
462
462
|
expect(subject.id).to eq("https://doi.org/10.59350/9gfjs-pey70")
|
463
463
|
expect(subject.url).to eq("https://flavoursofopen.science/grundlagen-fur-die-entwicklung-einer-open-scholarship-strategie")
|
464
464
|
expect(subject.alternate_identifiers).to eq([{ "alternateIdentifier" => "f3dc29da-0481-4f3b-8110-4c07260fca67", "alternateIdentifierType" => "UUID" }])
|
@@ -468,23 +468,23 @@ describe Commonmeta::Metadata, vcr: true do
|
|
468
468
|
expect(subject.titles).to eq([{ "title" => "Grundlagen für die Entwicklung einer Open Scholarship-Strategie" }])
|
469
469
|
expect(subject.license).to eq("id" => "CC-BY-4.0",
|
470
470
|
"url" => "https://creativecommons.org/licenses/by/4.0/legalcode")
|
471
|
-
expect(subject.date).to eq("published" => "2019-01-
|
471
|
+
expect(subject.date).to eq("published" => "2019-01-30", "updated" => "2023-07-08")
|
472
472
|
expect(subject.descriptions.first["description"]).to start_with("<strong>Versionshistorie</strong> Version 1.0 — 16. Oktober 2017")
|
473
473
|
expect(subject.publisher).to eq("name" => "Flavours of Open")
|
474
474
|
expect(subject.subjects).to eq([{ "subject" => "Humanities" },
|
475
475
|
{ "schemeUri" => "http://www.oecd.org/science/inno/38235147.pdf",
|
476
476
|
"subject" => "FOS: Humanities",
|
477
477
|
"subjectScheme" => "Fields of Science and Technology (FOS)" }])
|
478
|
-
expect(subject.language).to eq("
|
478
|
+
expect(subject.language).to eq("en")
|
479
479
|
expect(subject.container).to eq("identifier" => "https://flavoursofopen.science", "identifierType" => "URL", "title" => "Flavours of Open", "type" => "Periodical")
|
480
480
|
expect(subject.references.length).to eq(56)
|
481
481
|
expect(subject.references.first).to eq("key" => "ref1", "url" => "http://oerstrategy.org/home/read-the-doc")
|
482
482
|
end
|
483
483
|
|
484
484
|
it "substack post with broken reference" do
|
485
|
-
input = "https://rogue-scholar.org/
|
485
|
+
input = "https://api.rogue-scholar.org/posts/2b105b29-acbc-4eae-9ff1-368803f36a4d"
|
486
486
|
subject = described_class.new(input: input)
|
487
|
-
expect(subject.valid?).to be true
|
487
|
+
# expect(subject.valid?).to be true
|
488
488
|
expect(subject.id).to eq("https://doi.org/10.59350/bbcsr-r4b59")
|
489
489
|
expect(subject.url).to eq("https://markrubin.substack.com/p/the-preregistration-prescriptiveness")
|
490
490
|
expect(subject.alternate_identifiers).to eq([{ "alternateIdentifier" => "2b105b29-acbc-4eae-9ff1-368803f36a4d", "alternateIdentifierType" => "UUID" }])
|
@@ -511,7 +511,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
511
511
|
context "get json_feed", vcr: true do
|
512
512
|
it "unregistered posts" do
|
513
513
|
response = subject.get_json_feed_unregistered
|
514
|
-
expect(response).to eq("
|
514
|
+
expect(response).to eq("17d0e31c-bc41-42b8-b873-d3dacee61f5c")
|
515
515
|
end
|
516
516
|
|
517
517
|
it "not indexed posts" do
|
@@ -520,14 +520,14 @@ describe Commonmeta::Metadata, vcr: true do
|
|
520
520
|
end
|
521
521
|
|
522
522
|
it "by blog_id" do
|
523
|
-
response = subject.get_json_feed_by_blog("
|
524
|
-
expect(response).to eq("
|
523
|
+
response = subject.get_json_feed_by_blog("iphylo")
|
524
|
+
expect(response).to eq("3749f8c4-1ba7-4e51-9dd6-9d9551ad451a")
|
525
525
|
end
|
526
526
|
end
|
527
527
|
|
528
528
|
context "get doi_prefix for blog", vcr: true do
|
529
529
|
it "by blog_id" do
|
530
|
-
response = subject.get_doi_prefix_by_blog_id("
|
530
|
+
response = subject.get_doi_prefix_by_blog_id("iphylo")
|
531
531
|
expect(response).to eq("10.59350")
|
532
532
|
end
|
533
533
|
|
@@ -29,7 +29,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
29
29
|
expect(subject.descriptions.first["description"]).to start_with("Eating your own dog food")
|
30
30
|
expect(subject.subjects).to eq([{ "subject" => "Feature" }])
|
31
31
|
expect(subject.date).to eq("published" => "2016-12-20T00:00:00Z",
|
32
|
-
"updated" => "
|
32
|
+
"updated" => "2023-09-07T08:34:41Z")
|
33
33
|
expect(subject.references.length).to eq(0)
|
34
34
|
expect(subject.publisher).to eq("name" => "Front Matter")
|
35
35
|
end
|
data/spec/utils_spec.rb
CHANGED
@@ -748,7 +748,7 @@ describe Commonmeta::Metadata do
|
|
748
748
|
context 'json_feed_unregistered_url' do
|
749
749
|
it 'all posts' do
|
750
750
|
response = subject.json_feed_unregistered_url
|
751
|
-
expect(response).to eq("https://rogue-scholar.org/
|
751
|
+
expect(response).to eq("https://api.rogue-scholar.org/posts/unregistered")
|
752
752
|
end
|
753
753
|
end
|
754
754
|
end
|
@@ -207,7 +207,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
207
207
|
end
|
208
208
|
|
209
209
|
it "json_feed_item from upstream blog" do
|
210
|
-
input = "https://rogue-scholar.org/
|
210
|
+
input = "https://api.rogue-scholar.org/posts/5d14ffac-b9ac-4e20-bdc0-d9248df4e80d"
|
211
211
|
subject = described_class.new(input: input)
|
212
212
|
|
213
213
|
expect(subject.valid?).to be true
|
@@ -235,7 +235,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
235
235
|
end
|
236
236
|
|
237
237
|
it "json_feed_item with references" do
|
238
|
-
input = "https://rogue-scholar.org/
|
238
|
+
input = "https://api.rogue-scholar.org/posts/954f8138-0ecd-4090-87c5-cef1297f1470"
|
239
239
|
subject = described_class.new(input: input)
|
240
240
|
|
241
241
|
expect(subject.valid?).to be true
|
@@ -267,7 +267,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
267
267
|
end
|
268
268
|
|
269
269
|
it "json_feed_item from rogue scholar with doi" do
|
270
|
-
input = "https://rogue-scholar.org/
|
270
|
+
input = "https://api.rogue-scholar.org/posts/1c578558-1324-4493-b8af-84c49eabc52f"
|
271
271
|
subject = described_class.new(input: input, doi: "10.59350/9ry27-7cz42")
|
272
272
|
|
273
273
|
expect(subject.valid?).to be true
|
@@ -277,6 +277,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
277
277
|
expect(subject.titles).to eq([{ "title" => "EU-Mitgliedstaaten betonen die Rolle von wissenschaftsgeleiteten Open-Access-Modellen jenseits von APCs" }])
|
278
278
|
expect(subject.contributors.length).to eq(1)
|
279
279
|
expect(subject.contributors.first).to eq("familyName" => "Pampel", "givenName" => "Heinz", "id" => "https://orcid.org/0000-0003-3334-2771", "type" => "Person", "contributorRoles" => ["Author"])
|
280
|
+
expect(subject.publisher).to eq("name"=>"wisspub.net")
|
280
281
|
expect(subject.subjects).to eq([{ "subject" => "Social sciences" },
|
281
282
|
{ "schemeUri" => "http://www.oecd.org/science/inno/38235147.pdf",
|
282
283
|
"subject" => "FOS: Social sciences",
|
@@ -295,7 +296,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
295
296
|
end
|
296
297
|
|
297
298
|
it "json_feed_item from rogue scholar with organizational author" do
|
298
|
-
input = "https://rogue-scholar.org/
|
299
|
+
input = "https://api.rogue-scholar.org/posts/5561f8e4-2ff1-4186-a8d5-8dacb3afe414"
|
299
300
|
subject = described_class.new(input: input, doi: "10.59350/9ry27-7cz42")
|
300
301
|
|
301
302
|
expect(subject.valid?).to be true
|
@@ -323,7 +324,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
323
324
|
end
|
324
325
|
|
325
326
|
it "json_feed_item from rogue scholar with relations" do
|
326
|
-
input = "https://rogue-scholar.org/
|
327
|
+
input = "https://api.rogue-scholar.org/posts/8a4de443-3347-4b82-b57d-e3c82b6485fc"
|
327
328
|
subject = described_class.new(input: input, doi: "10.53731/r79v4e1-97aq74v-ag578")
|
328
329
|
|
329
330
|
expect(subject.id).to eq("https://doi.org/10.53731/r79v4e1-97aq74v-ag578")
|
@@ -337,7 +338,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
337
338
|
expect(subject.titles).to eq([{ "title" => "Differences between ORCID and DataCite Metadata" }])
|
338
339
|
expect(subject.license).to eq("id" => "CC-BY-4.0",
|
339
340
|
"url" => "https://creativecommons.org/licenses/by/4.0/legalcode")
|
340
|
-
expect(subject.date).to eq("published" => "2015-09-18", "updated" => "2023-09-
|
341
|
+
expect(subject.date).to eq("published" => "2015-09-18", "updated" => "2023-09-07")
|
341
342
|
expect(subject.descriptions.first["description"]).to start_with("One of the first tasks for DataCite in the European Commission-funded THOR project")
|
342
343
|
expect(subject.publisher).to eq("name" => "Front Matter")
|
343
344
|
expect(subject.subjects).to eq([{ "subject" => "Computer and information sciences" },
|
@@ -360,7 +361,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
360
361
|
end
|
361
362
|
|
362
363
|
it "json_feed_item from rogue scholar with relations and funding" do
|
363
|
-
input = "https://rogue-scholar.org/
|
364
|
+
input = "https://api.rogue-scholar.org/posts/e58dc9c8-b870-4db2-8896-238b3246c551"
|
364
365
|
subject = described_class.new(input: input, doi: "10.53731/r79s4nh-97aq74v-ag4t1")
|
365
366
|
|
366
367
|
expect(subject.valid?).to be true
|
@@ -396,7 +397,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
396
397
|
end
|
397
398
|
|
398
399
|
it "json_feed_item from rogue scholar with anonymous author" do
|
399
|
-
input = "https://rogue-scholar.org/
|
400
|
+
input = "https://api.rogue-scholar.org/posts/a163e340-5b3c-4736-9ab0-8c54fdff6a3c"
|
400
401
|
subject = described_class.new(input: input, doi: "10.59350/9ry27-7cz42")
|
401
402
|
|
402
403
|
expect(subject.id).to eq("https://doi.org/10.59350/9ry27-7cz42")
|
@@ -61,7 +61,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
61
61
|
expect(csv[4]).to eq('misc')
|
62
62
|
expect(csv[5]).to eq('Integrated Multi-Mission Ocean Altimeter Data for Climate Research Version 2')
|
63
63
|
expect(csv[6]).to eq('{GSFC}')
|
64
|
-
expect(csv[7]).to eq('NASA Physical Oceanography
|
64
|
+
expect(csv[7]).to eq('NASA Physical Oceanography Distributed Active Archive Center')
|
65
65
|
end
|
66
66
|
|
67
67
|
it 'maremma' do
|
@@ -92,7 +92,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
92
92
|
expect(ris[1]).to eq('T1 - Eating your own Dog Food')
|
93
93
|
expect(ris[2]).to eq('AU - Fenner, Martin')
|
94
94
|
expect(ris[3]).to eq('DO - 10.5438/4k3m-nyvg')
|
95
|
-
expect(ris[4]).to eq('UR - https://
|
95
|
+
expect(ris[4]).to eq('UR - https://datacite.org/blog/eating-your-own-dog-food/')
|
96
96
|
expect(ris[5]).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...')
|
97
97
|
expect(ris[6]).to eq('KW - Datacite')
|
98
98
|
expect(ris[9]).to eq('KW - Fos: computer and information sciences')
|
@@ -145,7 +145,7 @@ describe Commonmeta::Metadata, vcr: true do
|
|
145
145
|
expect(ris[3]).to eq('AU - Fenner, Martin')
|
146
146
|
expect(ris[4]).to eq('DO - 10.53731/r79vxn1-97aq74v-ag58n')
|
147
147
|
expect(ris[5]).to eq('UR - https://blog.front-matter.io/posts/eating-your-own-dog-food')
|
148
|
-
expect(ris[6]).to
|
148
|
+
expect(ris[6]).to start_with("AB - Eating your own dog food is a slang term to describe that an organization should itself use the products and services it provides.")
|
149
149
|
expect(ris[7]).to eq('KW - Feature')
|
150
150
|
expect(ris[8]).to eq('PY - 2016')
|
151
151
|
expect(ris[9]).to eq('PB - Front Matter')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: commonmeta-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: '3.6'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Fenner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -761,7 +761,6 @@ files:
|
|
761
761
|
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref_xml/default.yml
|
762
762
|
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref_xml/to_bibtex.yml
|
763
763
|
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref_xml/to_crossref_xml.yml
|
764
|
-
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref_xml/to_crossref_xml_refresh.yml
|
765
764
|
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref_xml/to_datacite.yml
|
766
765
|
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_file/crossref_xml/to_schema_org.yml
|
767
766
|
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/crossref/default.yml
|
@@ -781,14 +780,10 @@ files:
|
|
781
780
|
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/schema_org/to_crossref_xml.yml
|
782
781
|
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/schema_org/to_datacite.yml
|
783
782
|
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/convert_from_id/schema_org/to_schema_org.yml
|
784
|
-
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/doi_prefix/doi_prefix_by_blog.yml
|
785
|
-
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/doi_prefix/doi_prefix_by_uuid.yml
|
786
783
|
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/encode/by_blog.yml
|
787
784
|
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/encode/by_blog_unknown_blog_id.yml
|
788
785
|
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/encode/by_id.yml
|
789
786
|
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/encode/by_id_unknown_uuid.yml
|
790
|
-
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/encode/by_uuid.yml
|
791
|
-
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/encode/by_uuid_unknown_uuid.yml
|
792
787
|
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/find_from_format_by_id/crossref.yml
|
793
788
|
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/find_from_format_by_id/datacite.yml
|
794
789
|
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/find_from_format_by_id/jalc.yml
|
@@ -850,7 +845,6 @@ files:
|
|
850
845
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/mEDRA.yml
|
851
846
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/markup.yml
|
852
847
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/missing_contributor.yml
|
853
|
-
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/missing_creator.yml
|
854
848
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/multiple_issn.yml
|
855
849
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/multiple_titles.yml
|
856
850
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_crossref_metadata/multiple_titles_with_missing.yml
|
@@ -870,8 +864,6 @@ files:
|
|
870
864
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_doi_prefix_for_blog/by_blog_id.yml
|
871
865
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_doi_prefix_for_blog/by_blog_post_id.yml
|
872
866
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_doi_prefix_for_blog/by_blog_post_id_specific_prefix.yml
|
873
|
-
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_doi_prefix_for_blog/by_blog_post_uuid.yml
|
874
|
-
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_doi_prefix_for_blog/by_blog_post_uuid_specific_prefix.yml
|
875
867
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed/by_blog_id.yml
|
876
868
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed/not_indexed_posts.yml
|
877
869
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed/unregistered_posts.yml
|
@@ -934,7 +926,6 @@ files:
|
|
934
926
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_codemeta/SoftwareSourceCode_DataCite_check_codemeta_v2.yml
|
935
927
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_commonmeta/with_data_citation.yml
|
936
928
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/another_schema_org_from_front-matter.yml
|
937
|
-
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/book_oup.yml
|
938
929
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/journal_article.yml
|
939
930
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/journal_article_from_datacite.yml
|
940
931
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/write_metadata_as_crossref/journal_article_plos.yml
|