daengine 0.3.9.5 → 0.3.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,20 +26,23 @@ module Daengine
|
|
26
26
|
}.sort_by { |f| File.mtime("#{path}/#{f}") }
|
27
27
|
|
28
28
|
if deploy_files.empty?
|
29
|
-
Daengine.log("
|
29
|
+
Daengine.log("DigitalAssetProcessor: No digital asset deployment files found to process under #{path}", "warn")
|
30
30
|
else
|
31
31
|
Daengine.log("DigitalAssetProcessor: Reading digital asset deployment files from #{path}", "info")
|
32
32
|
deploy_files.each do |filename|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
33
|
+
begin
|
34
|
+
#parse the file and add metadata content to database.
|
35
|
+
file = File.expand_path(filename, path)
|
36
|
+
Daengine.log("DigitalAssetProcessor: Processing file #{filename} --- #{File.mtime(file)}", "info")
|
37
|
+
open_file = File.open(file, 'rb')
|
38
|
+
Daengine::TeamsiteMetadataParser.parse_tuple_file(open_file, last_run_time)
|
39
|
+
Daengine.log("DigitalAssetProcessor: Finished processing #{filename}", "info")
|
40
|
+
@@last_read_time = File.mtime(file) + 1.second
|
41
|
+
self.save_last_read_time
|
42
|
+
Daengine.log("DigitalAssetProcessor: Last process time set to #{@@last_read_time}", "info")
|
43
|
+
rescue
|
44
|
+
Daengine.log("Unable to process file #{filename}, #{$!.message}", "error")
|
45
|
+
end
|
43
46
|
end
|
44
47
|
|
45
48
|
rescue Errno::EEXIST
|
data/lib/daengine/version.rb
CHANGED
data/spec/mock_data/daengine.yml
CHANGED
@@ -1 +1 @@
|
|
1
|
-
last_read_time: 2012-
|
1
|
+
last_read_time: 2012-08-28 11:03:30 -0600
|
@@ -1 +1 @@
|
|
1
|
-
last_read_time: 2012-
|
1
|
+
last_read_time: 2012-08-28 11:03:30 -0600
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: daengine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.3.9.
|
5
|
+
version: 0.3.9.6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- sbhatia
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2013-01-03 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|