relaton-bib 1.14.13 → 1.14.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f574568c08eb0713aa11425b6b7316a1043ab4daf9511ce81264273621a3c6f
4
- data.tar.gz: f159c471012a555f70f7b2b6150b6d605c4a9324f196dda26ea6de39e4b9ade8
3
+ metadata.gz: 8b9cd2bd785b86aa60a2f08db370a0f1a1ed646a13eab981c40c946c802f74cd
4
+ data.tar.gz: e132568753c5aa9200e186dd780265f86c038cbb3365daa3de5e48f16e8a94cc
5
5
  SHA512:
6
- metadata.gz: a204325520089f88f066af03d3b16774b152fc5f8ff12c6c62b383d69d71090559adc215d67d9c90bcee6f319ff206b19904b1146096c5e481aa5aadb74fc926
7
- data.tar.gz: 8c5e6d412172fb928a68e4712732163d6644131f80195716e7a69c4c7095bf95910fcab952069bbd99c2e1439508360708d1973c5876ebcddfdf4ae81a7787d7
6
+ metadata.gz: a83ab74f7defef533468c71c4796066ecd99b9e2f2db4f74735516e1128b8126e97d060eee2935057fb6a39f46f664e9bb8c10a4c47fac73d78ac848e4a472fe
7
+ data.tar.gz: e318b237b2e24a4a095b765ebd251f392bbf8071257ff599ae043f64b1bba76ef2322dc74e2ba0bb15b3c1e9ed1b67a05ee71b63e141710fb8e9b076e0fc8372
@@ -430,7 +430,7 @@ module RelatonBib
430
430
  if structuredidentifier&.presence?
431
431
  hash["structuredidentifier"] = structuredidentifier.to_hash
432
432
  end
433
- hash["ext"] = { "schema-version" => ext_schema } if !embedded && respond_to?(:ext_schema)
433
+ hash["ext"] = { "schema-version" => ext_schema } if !embedded && respond_to?(:ext_schema) && ext_schema
434
434
  hash
435
435
  end
436
436
 
@@ -645,7 +645,7 @@ module RelatonBib
645
645
  ics.each { |i| i.to_xml b }
646
646
  structuredidentifier&.to_xml b
647
647
  end
648
- ext["schema-version"] = ext_schema if !opts[:embedded] && respond_to?(:ext_schema)
648
+ ext["schema-version"] = ext_schema if !opts[:embedded] && respond_to?(:ext_schema) && ext_schema
649
649
  end
650
650
  end
651
651
  xml[:id] = id if id && !opts[:bibdata] && !opts[:embedded]
@@ -4,13 +4,11 @@ module RelatonBib
4
4
  # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
5
5
 
6
6
  # @param args [Hash]
7
- # @param neated [TrueClas, FalseClass] default false
8
7
  # @return [Hash]
9
8
  def hash_to_bib(args)
10
9
  return nil unless args.is_a?(Hash)
11
10
 
12
11
  ret = Marshal.load(Marshal.dump(symbolize(args))) # deep copy
13
- # timestamp_hash(ret) unless nested
14
12
  title_hash_to_bib(ret)
15
13
  link_hash_to_bib(ret)
16
14
  language_hash_to_bib(ret)
@@ -1,3 +1,3 @@
1
1
  module RelatonBib
2
- VERSION = "1.14.13".freeze
2
+ VERSION = "1.14.14".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-bib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.13
4
+ version: 1.14.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-05 00:00:00.000000000 Z
11
+ date: 2023-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable