relaton-bib 1.20.2 → 1.20.4

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: d008489d2b2c5f5791a2642c4189fac2da66c5415fc944fd869edd082d772d45
4
- data.tar.gz: dbf448203c3a4d1fd9fb1f003ef7b77acdd60fd5c9d5d11471c314ca2537fbf6
3
+ metadata.gz: da0ebd9ce72b79072052fde3ca5b052b14e60ebc606e23103a77ca060b4e3a2b
4
+ data.tar.gz: 13226126ef027db9f22e4767c6331fc13140e57015891dc91effa68578a1567d
5
5
  SHA512:
6
- metadata.gz: 792a54760ab8a07fdab4359fbb51d8a0f52301308899f9635c4399550bd3c5ba3630c093d64e42263c984102b9909046a0c59ab7ecc6646f89aed2d7f76b3bab
7
- data.tar.gz: aace1e082e434d56696a69cb552fad5ca024fcf05796aaccf2303f97123affb8937c2ada0f2355f00901e9def49e364e513fe05d28327bc41ea023d62dd2c45a
6
+ metadata.gz: 22d1727412fc75303a9658e9fe84ca2663bfe886d26287c828d00fe30afcd80fa290ac88505d9de247611059a1f4ecf9946fd4fb1769e645d1cf53873709420e
7
+ data.tar.gz: 73612e82e6bd5cf228c0ecd97446d8d2d34707eac818265a4325b12ab61125667be139a6a620e9b4d9f9692f7abb99f5e7f631ada140f43b6480bfb96f77e74f
@@ -41,7 +41,7 @@ module RelatonBib
41
41
  audiovisual film video broadcast software graphic_work music
42
42
  patent inbook incollection inproceedings journal website
43
43
  webresource dataset archival social_media alert message
44
- conversation misc internal].freeze
44
+ conversation collection misc internal].freeze # internal is defined in isodoc grammar
45
45
 
46
46
  # @return [Boolean, nil]
47
47
  attr_accessor :all_parts
@@ -1,3 +1,3 @@
1
1
  module RelatonBib
2
- VERSION = "1.20.2".freeze
2
+ VERSION = "1.20.4".freeze
3
3
  end
data/lib/relaton_bib.rb CHANGED
@@ -57,6 +57,9 @@ module RelatonBib
57
57
  def format_date(date, format, str, outformat = nil)
58
58
  date = Date.strptime(date, format)
59
59
  str ? date.strftime(outformat || format) : date
60
+ rescue Date::Error => e
61
+ Util.warn "#{date} #{e.message}"
62
+ date
60
63
  end
61
64
 
62
65
  # @param arr [nil, Array, #is_a?]
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.20.2
4
+ version: 1.20.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-19 00:00:00.000000000 Z
11
+ date: 2025-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable