relaton-bib 1.20.3 → 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: b659bd91a0a95b6cd7d489c5f79df6470555283b6af8ccc1609292487c07ce71
4
- data.tar.gz: 68a76c3a7957c0401d4827445481ad126b9d9489ac8c9bb9abf742ca5d7fa687
3
+ metadata.gz: da0ebd9ce72b79072052fde3ca5b052b14e60ebc606e23103a77ca060b4e3a2b
4
+ data.tar.gz: 13226126ef027db9f22e4767c6331fc13140e57015891dc91effa68578a1567d
5
5
  SHA512:
6
- metadata.gz: 13ded198401c5a1df93b2d2d8bbd16319330369f1e4ff565e054525fde78568b0111a494ac74aa09e2be2d4989ed9bbbf49bb30e36a81f87c165edbb6d0f3a20
7
- data.tar.gz: 8bba3d688b2404fdda799df8485b64c032e1e838d0ec89d235ff54e0992c21ffea5c95b40e155af7de9c2c1204177efac4d76c3ed6417fa36e694cc29bb69cf2
6
+ metadata.gz: 22d1727412fc75303a9658e9fe84ca2663bfe886d26287c828d00fe30afcd80fa290ac88505d9de247611059a1f4ecf9946fd4fb1769e645d1cf53873709420e
7
+ data.tar.gz: 73612e82e6bd5cf228c0ecd97446d8d2d34707eac818265a4325b12ab61125667be139a6a620e9b4d9f9692f7abb99f5e7f631ada140f43b6480bfb96f77e74f
@@ -1,3 +1,3 @@
1
1
  module RelatonBib
2
- VERSION = "1.20.3".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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-bib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.20.3
4
+ version: 1.20.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.