dor-services 7.2.1 → 7.2.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
  SHA256:
3
- metadata.gz: 2f5bc497795e5d11e31f4416bb06e604a5bcffeaea0085081ff8bed121c1278f
4
- data.tar.gz: 2ca8271fa7c3b65d4613f1a43f7cec505ec7adf3ed8186fa0a2f6b7b3b5386c3
3
+ metadata.gz: ae4d02122b3cf382df8348e84b31262d5829880bfa7d31cca8ab53bcc2848ecf
4
+ data.tar.gz: 4c1317070008aeef879df9ce74a23cc25c0a634f4c122c6c0e6fa3b88866a5a3
5
5
  SHA512:
6
- metadata.gz: 27681b524f8c26987ee6ba333e00b9e3a74b55931a8f4afcc102119b2b9f281db1a7da9ceae31938d7e58a6b49e6c9cad10a8c649a8f873ff3710d38b5d6ad10
7
- data.tar.gz: 0d305df0420567d06cf1bad7a01cb306a54116fa0aae889c887223f8df44337db7b8a6130c90f66419fc1e3446fb93669f7f1eb13e4ab297ecb585d350ebb3e6
6
+ metadata.gz: d76e06055782a5f2e9fbae414523840eea36cee27cde0246e016c1af659c9aaef064d7ea266d93954ca7bc20bb55748ef8d8b5d6ff9a65cdf4fcce9016a28a6d
7
+ data.tar.gz: 6167181cd3c362111a29896f68c5c85c4d288978adf3b0b614125a9bd37e33ec8f5d4d2055f3f528b1cd04426fad7170c8a889bc71c6f74f2aea56c6c8dbafd8
@@ -3,12 +3,12 @@ cert_dir = File.join(File.dirname(__FILE__), "certs")
3
3
  Dor::Config.configure do
4
4
 
5
5
  fedora do
6
- url 'https://sul-dor-test.stanford.edu/fedora'
6
+ url 'https://sul-dor-prod.stanford.edu/fedora'
7
7
  end
8
8
 
9
9
  ssl do
10
- cert_file File.join(cert_dir,"dlss-dev-petucket-dor-dev.crt")
11
- key_file File.join(cert_dir,"dlss-dev-petucket-dor-dev.key")
10
+ cert_file File.join(cert_dir,"dlss-dev-petucket-dor-prod.crt")
11
+ key_file File.join(cert_dir,"dlss-dev-petucket-dor-prod.key")
12
12
  key_pass ''
13
13
  end
14
14
 
@@ -44,8 +44,8 @@ Dor::Config.configure do
44
44
  pass 'lyberteam'
45
45
  end
46
46
 
47
- solr.url 'https://sul-solr-tester.stanford.edu/argo_stage'
48
- workflow.url 'https://sul-lyberservices-test.stanford.edu/workflow/'
47
+ solr.url 'https://sul-solr-tester.stanford.edu/argo_prod'
48
+ workflow.url 'https://sul-lyberservices-prod.stanford.edu/workflow/'
49
49
  dor_services.url 'https://dorAdmin:dorAdmin@sul-lyberservices-test.stanford.edu/dor'
50
50
 
51
51
  purl do
@@ -46,6 +46,10 @@ module Dor
46
46
 
47
47
  # @return [Hash{Symbol => Object}] including :current_version, :status_code and :status_time
48
48
  def status_info
49
+ # if we have an accessioned milestone, this is the last possible step and should be the status regardless of time stamp
50
+ accessioned_milestones = current_milestones.select { |m| m[:milestone] == 'accessioned' }
51
+ return { current_version: current_version, status_code: STEPS['accessioned'], status_time: accessioned_milestones.last[:at].utc.xmlschema } unless accessioned_milestones.empty?
52
+
49
53
  status_code = 0
50
54
  status_time = nil
51
55
  # for each milestone in the current version, see if it comes at the same time or after the current 'last' step, if so, make it the last and record the date/time
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dor
4
- VERSION = '7.2.1'
4
+ VERSION = '7.2.2'
5
5
  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: 7.2.1
4
+ version: 7.2.2
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: 2019-07-02 00:00:00.000000000 Z
17
+ date: 2019-07-11 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: active-fedora