lyber-core 3.2.4 → 3.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lyber_core/robot.rb +4 -3
- metadata +22 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 413fb19b7154f57e9ff55b1a0570d9d83f863f3f
|
4
|
+
data.tar.gz: 52d27d56df8354a26ce1dbefcfddd4b5cddad5fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73070d60f9817f891f0e4ccf5f53af3e737e306e923e579577322ff8fd7974bc30318063a3ae0b767b9c0df418b3bb2a3a50d04d612f6b9386316e077a0c8dbb
|
7
|
+
data.tar.gz: c69c60641c28c1a93bcc22592ca2b62576bb679b22abb5d75f0e8ed5e0650d457811ac9c65932b2b723efb187b4871170cae65aadee86c302a8e9222792a17b1
|
data/lib/lyber_core/robot.rb
CHANGED
@@ -60,7 +60,7 @@ module LyberCore
|
|
60
60
|
# Calls the #perform method, then sets workflow to 'completed' or 'error' depending on success
|
61
61
|
def work(druid)
|
62
62
|
LyberCore::Log.set_logfile($stdout) # let process manager(bluepill) handle logging
|
63
|
-
LyberCore::Log.info "
|
63
|
+
LyberCore::Log.info "#{druid} processing"
|
64
64
|
return if @check_queued_status && !item_queued?(druid)
|
65
65
|
|
66
66
|
elapsed = Benchmark.realtime do
|
@@ -71,10 +71,11 @@ module LyberCore
|
|
71
71
|
# otherwise, the robot did something like set the step to 'waiting' with a note
|
72
72
|
|
73
73
|
Dor::WorkflowService.update_workflow_status @repo, druid, @workflow_name, @step_name, 'completed', :elapsed => elapsed, :note => Socket.gethostname
|
74
|
-
LyberCore::Log.info "
|
75
|
-
rescue => e
|
74
|
+
LyberCore::Log.info "#{druid} completed in #{sprintf("%0.4f",elapsed)}s"
|
75
|
+
rescue Exception => e
|
76
76
|
LyberCore::Log.error e.message + "\n" + e.backtrace.join("\n")
|
77
77
|
Dor::WorkflowService.update_workflow_error_status @repo, druid , @workflow_name, @step_name, e.message, :error_text => Socket.gethostname
|
78
|
+
raise e unless e.is_a?(StandardError)
|
78
79
|
end
|
79
80
|
|
80
81
|
private
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lyber-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alpana Pande
|
@@ -11,107 +11,108 @@ authors:
|
|
11
11
|
- Richard Anderson
|
12
12
|
- Willy Mene
|
13
13
|
- Michael Klein
|
14
|
+
- Darren Weber
|
14
15
|
autorequire:
|
15
16
|
bindir: bin
|
16
17
|
cert_chain: []
|
17
|
-
date: 2014-
|
18
|
+
date: 2014-10-31 00:00:00.000000000 Z
|
18
19
|
dependencies:
|
19
20
|
- !ruby/object:Gem::Dependency
|
20
21
|
name: dor-workflow-service
|
21
22
|
requirement: !ruby/object:Gem::Requirement
|
22
23
|
requirements:
|
23
|
-
- - ~>
|
24
|
+
- - "~>"
|
24
25
|
- !ruby/object:Gem::Version
|
25
26
|
version: '1.7'
|
26
27
|
type: :runtime
|
27
28
|
prerelease: false
|
28
29
|
version_requirements: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
|
-
- - ~>
|
31
|
+
- - "~>"
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '1.7'
|
33
34
|
- !ruby/object:Gem::Dependency
|
34
35
|
name: fakeweb
|
35
36
|
requirement: !ruby/object:Gem::Requirement
|
36
37
|
requirements:
|
37
|
-
- -
|
38
|
+
- - ">="
|
38
39
|
- !ruby/object:Gem::Version
|
39
40
|
version: '0'
|
40
41
|
type: :development
|
41
42
|
prerelease: false
|
42
43
|
version_requirements: !ruby/object:Gem::Requirement
|
43
44
|
requirements:
|
44
|
-
- -
|
45
|
+
- - ">="
|
45
46
|
- !ruby/object:Gem::Version
|
46
47
|
version: '0'
|
47
48
|
- !ruby/object:Gem::Dependency
|
48
49
|
name: rake
|
49
50
|
requirement: !ruby/object:Gem::Requirement
|
50
51
|
requirements:
|
51
|
-
- -
|
52
|
+
- - ">="
|
52
53
|
- !ruby/object:Gem::Version
|
53
54
|
version: 0.8.7
|
54
55
|
type: :development
|
55
56
|
prerelease: false
|
56
57
|
version_requirements: !ruby/object:Gem::Requirement
|
57
58
|
requirements:
|
58
|
-
- -
|
59
|
+
- - ">="
|
59
60
|
- !ruby/object:Gem::Version
|
60
61
|
version: 0.8.7
|
61
62
|
- !ruby/object:Gem::Dependency
|
62
63
|
name: rdoc
|
63
64
|
requirement: !ruby/object:Gem::Requirement
|
64
65
|
requirements:
|
65
|
-
- -
|
66
|
+
- - ">="
|
66
67
|
- !ruby/object:Gem::Version
|
67
68
|
version: '0'
|
68
69
|
type: :development
|
69
70
|
prerelease: false
|
70
71
|
version_requirements: !ruby/object:Gem::Requirement
|
71
72
|
requirements:
|
72
|
-
- -
|
73
|
+
- - ">="
|
73
74
|
- !ruby/object:Gem::Version
|
74
75
|
version: '0'
|
75
76
|
- !ruby/object:Gem::Dependency
|
76
77
|
name: rspec
|
77
78
|
requirement: !ruby/object:Gem::Requirement
|
78
79
|
requirements:
|
79
|
-
- -
|
80
|
+
- - ">="
|
80
81
|
- !ruby/object:Gem::Version
|
81
82
|
version: '0'
|
82
83
|
type: :development
|
83
84
|
prerelease: false
|
84
85
|
version_requirements: !ruby/object:Gem::Requirement
|
85
86
|
requirements:
|
86
|
-
- -
|
87
|
+
- - ">="
|
87
88
|
- !ruby/object:Gem::Version
|
88
89
|
version: '0'
|
89
90
|
- !ruby/object:Gem::Dependency
|
90
91
|
name: stompserver
|
91
92
|
requirement: !ruby/object:Gem::Requirement
|
92
93
|
requirements:
|
93
|
-
- -
|
94
|
+
- - ">="
|
94
95
|
- !ruby/object:Gem::Version
|
95
96
|
version: '0'
|
96
97
|
type: :development
|
97
98
|
prerelease: false
|
98
99
|
version_requirements: !ruby/object:Gem::Requirement
|
99
100
|
requirements:
|
100
|
-
- -
|
101
|
+
- - ">="
|
101
102
|
- !ruby/object:Gem::Version
|
102
103
|
version: '0'
|
103
104
|
- !ruby/object:Gem::Dependency
|
104
105
|
name: yard
|
105
106
|
requirement: !ruby/object:Gem::Requirement
|
106
107
|
requirements:
|
107
|
-
- -
|
108
|
+
- - ">="
|
108
109
|
- !ruby/object:Gem::Version
|
109
110
|
version: '0'
|
110
111
|
type: :development
|
111
112
|
prerelease: false
|
112
113
|
version_requirements: !ruby/object:Gem::Requirement
|
113
114
|
requirements:
|
114
|
-
- -
|
115
|
+
- - ">="
|
115
116
|
- !ruby/object:Gem::Version
|
116
117
|
version: '0'
|
117
118
|
description: |-
|
@@ -131,7 +132,8 @@ files:
|
|
131
132
|
- lib/lyber_core/robot.rb
|
132
133
|
- lib/tasks/rdoc.rake
|
133
134
|
homepage: http://github.com/sul-dlss/lyber-core
|
134
|
-
licenses:
|
135
|
+
licenses:
|
136
|
+
- Apache-2.0
|
135
137
|
metadata: {}
|
136
138
|
post_install_message:
|
137
139
|
rdoc_options: []
|
@@ -139,17 +141,17 @@ require_paths:
|
|
139
141
|
- lib
|
140
142
|
required_ruby_version: !ruby/object:Gem::Requirement
|
141
143
|
requirements:
|
142
|
-
- -
|
144
|
+
- - ">="
|
143
145
|
- !ruby/object:Gem::Version
|
144
146
|
version: '0'
|
145
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
148
|
requirements:
|
147
|
-
- -
|
149
|
+
- - ">="
|
148
150
|
- !ruby/object:Gem::Version
|
149
151
|
version: 1.3.6
|
150
152
|
requirements: []
|
151
153
|
rubyforge_project:
|
152
|
-
rubygems_version: 2.
|
154
|
+
rubygems_version: 2.4.2
|
153
155
|
signing_key:
|
154
156
|
specification_version: 4
|
155
157
|
summary: Core services used by the SULAIR Digital Library
|