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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ecdae0c038ee96bc891eff67731001fb2891900
|
4
|
+
data.tar.gz: 259734b1ed3d5f976d306863b9a8ffc29b9680ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|