mods 3.0.0 → 3.0.1

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: 30381fee9ce7d47827010ce02902834f10118daeb381bdfa65bcc5adf778b65f
4
- data.tar.gz: 65b9fac4ebee7589010039dbba9cbd8b204a94987443ec2c68e36a7509f39685
3
+ metadata.gz: 566f8acde01c8696c1a183588b663934dc50d500999fcc83ba67516620e57ae7
4
+ data.tar.gz: 87aeca4a314870bcace3fc1b3fe2260b67134becc4ca2a7a22ac3bb5edf73be2
5
5
  SHA512:
6
- metadata.gz: e9ecec0384d8c4d931cace14b32ddc9e2b5161ed6ef9f61af27fb89d9993643db790f98966f8ddea419008bd03588cbc6aaf4dfee25b404c5a392deae1b3e78e
7
- data.tar.gz: 79b733073abbf0ee6dc8da9835c86e44be67f1f298a4e09f3d6380772ff51713cd63c121daf2bb0ae0751ab9ffb3954003eb24ecffde1a7e89ed3c542cead994
6
+ metadata.gz: 0b5d979ab8b4fbcb7e5dce0b5d8117e76f1c95a284cf531fd659a1e78d74af5571af309c9ab3e77b6d105f9e9d3427ba0fa88d82f4feeb5d54c18bc306079332
7
+ data.tar.gz: 0bea0554c539de56fcfee76380f0478133d9288fba63b1ff6c6a922d3877ab04e12070590c2a10339599cf2615bc75433d23fb546e75ad4f8627b75dd563efb7
data/lib/mods/date.rb CHANGED
@@ -56,6 +56,9 @@ module Mods
56
56
 
57
57
  # Less strict W3CDTF-encoded date parser
58
58
  class W3cdtfFormat < Date
59
+ def self.normalize_to_edtf(text)
60
+ super.gsub('-00', '')
61
+ end
59
62
  end
60
63
 
61
64
  # Strict EDTF parser
data/lib/mods/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Mods
2
2
  # this is the Ruby Gem version
3
- VERSION = '3.0.0'.freeze
3
+ VERSION = '3.0.1'.freeze
4
4
  end
@@ -229,6 +229,7 @@ RSpec.describe Mods::Date do
229
229
  {
230
230
  '1753' => Date.parse('1753-01-01')..Date.parse('1753-12-31'),
231
231
  '-1753' => Date.parse('-1753-01-01')..Date.parse('-1753-12-31'),
232
+ '1992-00-00' => Date.parse('1992-01-01')..Date.parse('1992-12-31'),
232
233
  '1992-05-06' => Date.parse('1992-05-06')..Date.parse('1992-05-06'),
233
234
  '1992-04' => Date.parse('1992-04-01')..Date.parse('1992-04-30'),
234
235
  '2004-02' => Date.parse('2004-02-01')..Date.parse('2004-02-29'),
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mods
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naomi Dushay