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 +4 -4
- data/lib/relaton_bib/version.rb +1 -1
- data/lib/relaton_bib.rb +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da0ebd9ce72b79072052fde3ca5b052b14e60ebc606e23103a77ca060b4e3a2b
|
4
|
+
data.tar.gz: 13226126ef027db9f22e4767c6331fc13140e57015891dc91effa68578a1567d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22d1727412fc75303a9658e9fe84ca2663bfe886d26287c828d00fe30afcd80fa290ac88505d9de247611059a1f4ecf9946fd4fb1769e645d1cf53873709420e
|
7
|
+
data.tar.gz: 73612e82e6bd5cf228c0ecd97446d8d2d34707eac818265a4325b12ab61125667be139a6a620e9b4d9f9692f7abb99f5e7f631ada140f43b6480bfb96f77e74f
|
data/lib/relaton_bib/version.rb
CHANGED
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?]
|