uc3-dmp-citation 0.0.9 → 0.0.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c120b3d741026fc7553ef857a2e7532766d82042c9aa0462e1087d655b529ee
4
- data.tar.gz: 8c3a73edad515a2b2d4bddd4638488870decbfdf6a2acb42daea2ea94fb60520
3
+ metadata.gz: a11a8cb9c089fbe07b7e25626be89f35de2cb60635a4f06aa4e6a727f636974a
4
+ data.tar.gz: 26d2eb8ddc597a65208428fb439957e231ad9b21eb7a69bcf6154470c6c3c3be
5
5
  SHA512:
6
- metadata.gz: 66d174fa3ee024fcbaf61ef94a09b03aea6d3dd163af60e361e9061e954c9738794f9705f9d9dae2500a96aee736de2b0ccdabd91c1149066fec17578f1b48de
7
- data.tar.gz: fd5a941c113d667badf623f6fe2d9edadd35721d145259c1f17e9c31f66bf879e7af2c456a3c370062653de6009e2df88cd56da325d974e902c2ac972bda3537
6
+ metadata.gz: '068f06d2f99046f61eb877e63d3be5a050feac6a15041dfdcff3aed94e12ef1baa92c09f0aeb6dc5b6bc7da583a174d71006da9893cdf32038b227df3c9c206a'
7
+ data.tar.gz: 6ac0f00459c97020d598380e576b0bd4d103baf94cea95b3dd650a87a1cf780bb0477bf6f996c8eb14994bd079944ccf83ae4fb548561da7ce321c42db7b43ff
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3DmpCitation
4
- VERSION = '0.0.9'
4
+ VERSION = '0.0.10'
5
5
  end
@@ -37,8 +37,8 @@ module Uc3DmpCitation
37
37
  # rubocop:enable Metrics/AbcSize
38
38
 
39
39
  # Convert the specified BibTex string into a citation
40
- def bibtex_to_citation(bibtex_as_string:)
41
- return nil unless bibtex_as_string.is_a?(String)
40
+ def bibtex_to_citation(uri:, bibtex_as_string:)
41
+ return nil unless bibtex_as_string.is_a?(String) && uri.is_a?(String)
42
42
 
43
43
  bibtex = BibTeX.parse(_cleanse_bibtex(text: bibtex_as_string))
44
44
  work_type = work_type.nil? ? _determine_work_type(bibtex:) : work_type
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-dmp-citation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley