editstore 1.1.7 → 1.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MTcyOGQ0NjQ0NzdiMDhmNWFiYjkxNjE4ZGI0OWQ1YWQxMWVhZDNiMg==
5
+ data.tar.gz: !binary |-
6
+ YzJlY2U5NGY4ZGE5OWM2OThjZGYzYjdiYzdiMDAzYWI5NzU2Y2JlNw==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MWYxZjcxMWE4ODZjMzRmNTE1NWUwYTQzNDRlYTY4NDdjZGQ0ZjMwZDcwZDkw
10
+ NWIzN2Q1MmE2Njg3OGNmNDk1ZTFlZTBkNjE1ZDZlNGNhZDBhNDI3YjlhYzQ5
11
+ NjQwYzRiYmU0YzQwYjVlYWJiNWU3ZjA2ZGVmOWVmM2QyODg4YjE=
12
+ data.tar.gz: !binary |-
13
+ MWZjYWI5ZGNkMWE5OTZjNmIzNzliMTM1MGM2NDgzNDYwNjMwZmM0ZjFmNDc3
14
+ NDdhN2UxODNhMzc0NDIxMzU5NDdjMGE0OTQ3YzAwODJkZjFiZWMxNDhlZDky
15
+ OTIyM2UyYTU0M2JlMWJkZWQ0Yjc3MzIxMjVhZDZkMTQ1YTY5NmY=
@@ -11,6 +11,7 @@ module Editstore
11
11
  self.where('updated_at < ?',1.day.ago).where('ended IS NULL').each {|obj| obj.destroy} # anything older than 1 day that is not marked as finished running (but must be crashed and not actually running)
12
12
  self.where('updated_at < ?',1.month.ago).each {|obj| obj.destroy} # anything older than 1 month
13
13
  self.where(:total_druids=>0).where('updated_at < ?',1.day.ago).each {|obj| obj.destroy} # anything older than 1 day with no activity
14
+ self.where('total_changes = num_pending').where('updated_at < ?',1.day.ago).each {|obj| obj.destroy} # anything older than 1 day where all the changes are pending
14
15
  end
15
16
  def self.prune_all
16
17
  self.where('ended IS NOT NULL').each {|obj| obj.destroy} # anything that is done
@@ -1,3 +1,3 @@
1
1
  module Editstore
2
- VERSION = "1.1.7"
2
+ VERSION = "1.1.8"
3
3
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: editstore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
5
- prerelease:
4
+ version: 1.1.8
6
5
  platform: ruby
7
6
  authors:
8
7
  - Peter Mangiafico
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-11-13 00:00:00.000000000 Z
11
+ date: 2014-04-25 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: druid-tools
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: sqlite3
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: lyberteam-devel
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ! '>='
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ! '>='
76
67
  - !ruby/object:Gem::Version
@@ -78,7 +69,6 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: lyberteam-gems-devel
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ! '>'
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ! '>'
92
81
  - !ruby/object:Gem::Version
@@ -94,7 +83,6 @@ dependencies:
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: rspec
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
87
  - - ! '>='
100
88
  - !ruby/object:Gem::Version
@@ -102,7 +90,6 @@ dependencies:
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
94
  - - ! '>='
108
95
  - !ruby/object:Gem::Version
@@ -110,7 +97,6 @@ dependencies:
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: rspec-rails
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
101
  - - ! '>='
116
102
  - !ruby/object:Gem::Version
@@ -118,7 +104,6 @@ dependencies:
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
108
  - - ! '>='
124
109
  - !ruby/object:Gem::Version
@@ -131,6 +116,8 @@ executables: []
131
116
  extensions: []
132
117
  extra_rdoc_files: []
133
118
  files:
119
+ - README.rdoc
120
+ - Rakefile
134
121
  - app/assets/javascripts/editstore/application.js
135
122
  - app/assets/stylesheets/editstore/application.css
136
123
  - app/controllers/editstore/application_controller.rb
@@ -154,14 +141,11 @@ files:
154
141
  - db/migrate/20131015205757_add_indices.rb
155
142
  - db/migrate/20131016183057_create_run_log.rb
156
143
  - db/migrate/20131017165120_add_locking_version.rb
144
+ - lib/editstore.rb
157
145
  - lib/editstore/engine.rb
158
146
  - lib/editstore/version.rb
159
- - lib/editstore.rb
160
147
  - lib/tasks/editstore_tasks.rake
161
148
  - lib/validators/is_druid_validator.rb
162
- - MIT-LICENSE
163
- - Rakefile
164
- - README.rdoc
165
149
  - test/editstore_test.rb
166
150
  - test/fixtures/editstore/editstore_fields.yml
167
151
  - test/fixtures/editstore/editstore_projects.yml
@@ -172,33 +156,26 @@ files:
172
156
  - test/unit/editstore/state_test.rb
173
157
  homepage: ''
174
158
  licenses: []
159
+ metadata: {}
175
160
  post_install_message:
176
161
  rdoc_options: []
177
162
  require_paths:
178
163
  - lib
179
164
  required_ruby_version: !ruby/object:Gem::Requirement
180
- none: false
181
165
  requirements:
182
166
  - - ! '>='
183
167
  - !ruby/object:Gem::Version
184
168
  version: '0'
185
- segments:
186
- - 0
187
- hash: -3804187558622121077
188
169
  required_rubygems_version: !ruby/object:Gem::Requirement
189
- none: false
190
170
  requirements:
191
171
  - - ! '>='
192
172
  - !ruby/object:Gem::Version
193
173
  version: '0'
194
- segments:
195
- - 0
196
- hash: -3804187558622121077
197
174
  requirements: []
198
175
  rubyforge_project:
199
- rubygems_version: 1.8.28
176
+ rubygems_version: 2.2.1
200
177
  signing_key:
201
- specification_version: 3
178
+ specification_version: 4
202
179
  summary: The editstore gem is used by client web applications (like Revs Digital Library)
203
180
  to stage changes to descriptive metadata in DOR
204
181
  test_files:
data/MIT-LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright 2013 YOURNAME
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.