dor-services 5.3.2 → 5.3.3

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: b4612df0551e79474ccb0e568de29cf05c42f6f7
4
- data.tar.gz: cf816af8f863af33f717fc63e9ec4ede906eb758
3
+ metadata.gz: 99003e225249632e5f2b5b9f6b348b2c87b76cb0
4
+ data.tar.gz: d2dae28f99fc6abb664d29e2da81890659a389c5
5
5
  SHA512:
6
- metadata.gz: 91ada9a335362058cf16d42eb6fcd9e99542fc288577bd1cf1942004985302747dd19df89690c94ed0f476cd392f4a3e19b0426414ebc251969ae1a139849eed
7
- data.tar.gz: 0341a7e1b9590783c3df4fd5d50fdc8872aecf4da3966375b2d35127edfccb42b61ec0b09347fe637d102147b6723da3ed551980dd8650854c037eb94ac8df3b
6
+ metadata.gz: 6f0494d138e820da853e5f4b2d47dc9ddebc4496a42b9fd6a17247b333806cc2ddabd54ec911065e498188e3959089d6529a8e3f9e1b174508d03ee9028bb01c
7
+ data.tar.gz: 8c83276ec9d2355a436d6cad201cbcbd59ce1244b43d9190e085628937ad1af637d0871ff9515da2c29162ab8e3d4f5d36921cb7352f002aed02798dc662c949
@@ -32,8 +32,8 @@ class EmbargoMetadataDS < ActiveFedora::OmDatastream
32
32
  #::Solrizer.insert_field(solr_doc, field_name, value, *index_types)
33
33
  rd1 = release_date
34
34
  rd20 = twenty_pct_release_date
35
- ::Solrizer.insert_field(solr_doc, 'embargo_release', rd1.utc.strftime('%FT%TZ'), :dateable) unless rd1.nil?
36
- ::Solrizer.insert_field(solr_doc, 'twenty_pct_visibility_release', rd20.utc.strftime('%FT%TZ'), :dateable) unless rd20.nil?
35
+ ::Solrizer.insert_field(solr_doc, 'embargo_release', rd1.utc.strftime('%FT%TZ'), :dateable) unless rd1.blank?
36
+ ::Solrizer.insert_field(solr_doc, 'twenty_pct_visibility_release', rd20.utc.strftime('%FT%TZ'), :dateable) unless rd20.blank?
37
37
  solr_doc
38
38
  end
39
39
 
@@ -54,10 +54,10 @@ class EmbargoMetadataDS < ActiveFedora::OmDatastream
54
54
  term_values(:status).first
55
55
  end
56
56
 
57
- # Sets the release date. Converts the date to beginning-of-day, UTC to help with Solr indexing
58
- # @param [Time] rd A Time object represeting the release date. By default, it is set to now
57
+ # Sets the release date. Does NOT convert to beginning-of-day.
58
+ # @param [Time] rd the release date object
59
59
  def release_date=(rd = Time.now.utc)
60
- update_values([:release_date] => rd.beginning_of_day.utc.xmlschema)
60
+ update_values([:release_date] => rd.utc.xmlschema)
61
61
  self.content = ng_xml.to_s
62
62
  end
63
63
 
data/lib/dor/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dor
2
- VERSION = '5.3.2'
2
+ VERSION = '5.3.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dor-services
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.2
4
+ version: 5.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Klein
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2016-01-27 00:00:00.000000000 Z
17
+ date: 2016-02-03 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: active-fedora