bolognese 1.6.2 → 1.6.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +18 -13
  3. data/bolognese.gemspec +4 -4
  4. data/lib/bolognese/datacite_utils.rb +9 -3
  5. data/lib/bolognese/metadata.rb +6 -8
  6. data/lib/bolognese/metadata_utils.rb +10 -3
  7. data/lib/bolognese/readers/bibtex_reader.rb +2 -1
  8. data/lib/bolognese/readers/citeproc_reader.rb +2 -2
  9. data/lib/bolognese/readers/codemeta_reader.rb +3 -3
  10. data/lib/bolognese/readers/crossref_reader.rb +2 -2
  11. data/lib/bolognese/readers/datacite_reader.rb +3 -3
  12. data/lib/bolognese/readers/npm_reader.rb +1 -1
  13. data/lib/bolognese/readers/schema_org_reader.rb +4 -5
  14. data/lib/bolognese/utils.rb +89 -9
  15. data/lib/bolognese/version.rb +1 -1
  16. data/lib/bolognese/writers/bibtex_writer.rb +2 -1
  17. data/lib/bolognese/writers/codemeta_writer.rb +3 -2
  18. data/lib/bolognese/writers/jats_writer.rb +2 -2
  19. data/lib/bolognese/writers/schema_org_writer.rb +1 -1
  20. data/resources/spdx/licenses.json +5297 -0
  21. data/spec/datacite_utils_spec.rb +5 -1
  22. data/spec/fixtures/datacite-example-affiliation.xml +1 -1
  23. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_cc_url/not_found.yml +44 -0
  24. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_cc_url/with_trailing_slash.yml +44 -0
  25. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_cc_url/with_trailing_slash_and_to_https.yml +44 -0
  26. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_url/to_https.yml +44 -0
  27. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/normalize_url/with_trailing_slash_and_to_https.yml +44 -0
  28. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/spdx/hsh_to_spdx_id.yml +44 -0
  29. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/spdx/hsh_to_spdx_not_found.yml +44 -0
  30. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/spdx/hsh_to_spdx_url.yml +44 -0
  31. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/spdx/name_to_spdx_exists.yml +44 -0
  32. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/spdx/name_to_spdx_id.yml +44 -0
  33. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/spdx/name_to_spdx_not_found.yml +44 -0
  34. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/url_to_https/http.yml +44 -0
  35. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/url_to_https/uri.yml +44 -0
  36. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/url_to_https/with_trailing_slash.yml +44 -0
  37. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_citation/software_w/version.yml +52 -0
  38. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/Funding.yml +58 -10
  39. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/Funding_OpenAIRE.yml +65 -28
  40. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/Schema_org_JSON_Cyark.yml +98 -0
  41. data/spec/fixtures/vcr_cassettes/Bolognese_Metadata/write_metadata_as_schema_org/Schema_org_JSON_IsSupplementTo.yml +58 -10
  42. data/spec/readers/bibtex_reader_spec.rb +5 -1
  43. data/spec/readers/codemeta_reader_spec.rb +21 -1
  44. data/spec/readers/crossref_reader_spec.rb +21 -5
  45. data/spec/readers/datacite_json_reader_spec.rb +1 -1
  46. data/spec/readers/datacite_reader_spec.rb +51 -11
  47. data/spec/readers/npm_reader_spec.rb +3 -3
  48. data/spec/readers/schema_org_reader_spec.rb +2 -2
  49. data/spec/utils_spec.rb +58 -0
  50. data/spec/writers/bibtex_writer_spec.rb +6 -0
  51. data/spec/writers/citation_writer_spec.rb +8 -0
  52. data/spec/writers/citeproc_writer_spec.rb +12 -2
  53. data/spec/writers/crosscite_writer_spec.rb +5 -1
  54. data/spec/writers/datacite_json_writer_spec.rb +5 -1
  55. data/spec/writers/datacite_writer_spec.rb +22 -7
  56. data/spec/writers/schema_org_writer_spec.rb +29 -3
  57. metadata +31 -8

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the gem file manually.