workflow-archiver 1.3.0 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +5 -13
  2. data/VERSION +1 -1
  3. data/lib/dor/workflow_archiver.rb +3 -1
  4. metadata +33 -19
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NDIxMTI4ZGJhNWM3ZDE1MjlkYmM5ZDczMjJmM2I1YjE4NmJkOTQ3Yw==
5
- data.tar.gz: !binary |-
6
- ZmQyMjhiOGVkNDdhNzUxNTVkNGM3MGFkYzNiMWZmNTlhMDczNTY0ZQ==
2
+ SHA1:
3
+ metadata.gz: a0db4761d9140127396c162359225c3facbdff59
4
+ data.tar.gz: f87202e1789fdb753487445d382c98cb29e8a870
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZGI3OGM1M2IyODIxYjdlOGYyNTU0MmNlZmEwMzljMjk4NDNjZmQ5MzBjM2Ri
10
- ZmUxMTExZjM5ODkzOTlmNTUxZmZiZDgzODBlZjc2MGNhNjNjM2IyMzdjMDgx
11
- MWFhOGMxM2I5ZjE3YjI0ZWEzNjg5MzNmNTE4YTcwYWQ5MjgzZGM=
12
- data.tar.gz: !binary |-
13
- ZjUxODc4OGMzZGMzMzdiZGRmMjJkMGMzODYzZjU5YWI3OTJjYWE2ZTU0YjMx
14
- MWQyMDkyMjcwMzc2OTU3YTA5ZTViNDk5MmM5ODc1OGEyZTIzYTQyNmU0ZTE1
15
- Nzc5MTJlYTJhM2ZjNDNmNTJjZjI5NGFmMGRkMWFhMGRiYjlhZWE=
6
+ metadata.gz: c41b25566683e1dc64120ace58c89db480de9ec57a87f7d58751362c012c7f02279c7de75bfcd62418970086bfb1718dc027b9e3b6fc023dec951a9fecceec2b
7
+ data.tar.gz: 1dda723f38294bc01ed7b8d67beb61b0b08943a5d516de9e19924cce26dd78ff116d9175bf2b3b5f71634f8bcf143350fa76867031e0e2f946c5dfa0180e6365
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.3.2
@@ -45,7 +45,7 @@ module Dor
45
45
  # These attributes mostly used for testing
46
46
  attr_reader :conn, :errors
47
47
 
48
- def WorkflowArchiver.config
48
+ def self.config
49
49
  @@conf ||= Confstruct::Configuration.new
50
50
  end
51
51
 
@@ -253,6 +253,7 @@ module Dor
253
253
 
254
254
  # Does the work of finding completed objects and archiving the rows
255
255
  def archive
256
+ connect_to_db
256
257
  objs = find_completed_objects
257
258
 
258
259
  if objs.size == 0
@@ -261,6 +262,7 @@ module Dor
261
262
  end
262
263
 
263
264
  LyberCore::Log.info "Found #{objs.size.to_s} completed workflows"
265
+ objs = objs.first(600) # FIXME: temporarily limit objs processed until we fix cron not to fire if job still running
264
266
 
265
267
  archiving_criteria = map_result_to_criteria(objs)
266
268
  with_indexing_disabled { archive_rows(archiving_criteria) }
metadata CHANGED
@@ -1,111 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workflow-archiver
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Willy Mene
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-31 00:00:00.000000000 Z
11
+ date: 2017-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lyber-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rest-client
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: ruby-oci8
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: confstruct
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ! '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ! '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ! '>='
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: coveralls
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
95
109
  - !ruby/object:Gem::Version
96
110
  version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: active-fedora
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - ! '>='
115
+ - - ">="
102
116
  - !ruby/object:Gem::Version
103
117
  version: '0'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
- - - ! '>='
122
+ - - ">="
109
123
  - !ruby/object:Gem::Version
110
124
  version: '0'
111
125
  description: Can be used standalone or used as a library
@@ -127,17 +141,17 @@ require_paths:
127
141
  - lib
128
142
  required_ruby_version: !ruby/object:Gem::Requirement
129
143
  requirements:
130
- - - ! '>='
144
+ - - ">="
131
145
  - !ruby/object:Gem::Version
132
146
  version: '0'
133
147
  required_rubygems_version: !ruby/object:Gem::Requirement
134
148
  requirements:
135
- - - ! '>='
149
+ - - ">="
136
150
  - !ruby/object:Gem::Version
137
151
  version: 1.3.6
138
152
  requirements: []
139
153
  rubyforge_project:
140
- rubygems_version: 2.2.2
154
+ rubygems_version: 2.6.13
141
155
  signing_key:
142
156
  specification_version: 4
143
157
  summary: Enables archiving of DOR workflows