hydra-access-controls 6.5.1 → 6.5.2

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
  SHA1:
3
- metadata.gz: 57556c87137444819c015cb869dd365c513eeddd
4
- data.tar.gz: 4179c169eaec6728ac0770c7d8bfd0a7ab1b0931
3
+ metadata.gz: 6ecdae0c038ee96bc891eff67731001fb2891900
4
+ data.tar.gz: 259734b1ed3d5f976d306863b9a8ffc29b9680ba
5
5
  SHA512:
6
- metadata.gz: aaa3d7b13c899f8a9c54fcbbfc649ba66742699f55f61b7ada61bdb2b1a3b1ddd4cf07a76567d93e9637bf9973c89d93743d05146d727c24f224036848727537
7
- data.tar.gz: 495d02efae8dfd9c207cf46089d05a9b42e177359bc9cfe0f516f57d3e5dd7c66a185450a0eb9d3a6b5eaebc01aff55ad2b75ffc45c4d62091d851174330bd93
6
+ metadata.gz: 7c8a7e54b600cfec5fc4a18d7aec6ac164e3eeb880fa04d5d18c40e6c9ea0be86bbcf9d17b375a124e364b58772ce205bb20864833781130734d48c7afbbed9e
7
+ data.tar.gz: 9c142b27794db0f448a822ba1080259a2431df772d63b40408c43428835622b17bc49d6c7032a4086f4a960c52346b73af3f94dc5ec15d792e540ad682cb044b
@@ -170,7 +170,7 @@ module Hydra
170
170
  def embargo_release_date=(release_date)
171
171
  release_date = release_date.to_s if release_date.is_a? Date
172
172
  begin
173
- Date.parse(release_date)
173
+ release_date.nil? || Date.parse(release_date)
174
174
  rescue
175
175
  return "INVALID DATE"
176
176
  end
@@ -176,6 +176,11 @@ describe Hydra::Datastream::RightsMetadata do
176
176
  it "should only accept valid date values" do
177
177
 
178
178
  end
179
+ it "should accept a nil value after having a date value" do
180
+ @sample.embargo_release_date=("2010-12-01")
181
+ @sample.embargo_release_date=(nil)
182
+ @sample.embargo_release_date.should == nil
183
+ end
179
184
  end
180
185
  describe "embargo_release_date" do
181
186
  it "should return solr formatted date" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-access-controls
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.5.1
4
+ version: 6.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer