daengine 0.3.9.3 → 0.3.9.4

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.
@@ -83,6 +83,10 @@ class DigitalAsset
83
83
  path_is(path).try(:doc_changed_at)
84
84
  end
85
85
 
86
+ def doc_size
87
+ first_non_finra.try(:size)
88
+ end
89
+
86
90
  def content_type_ids
87
91
  ids = []
88
92
  documents.try(:each) do |d|
@@ -138,7 +138,10 @@ module Daengine::TeamsiteMetadataParser
138
138
  if(File.mtime(file) > last_read)
139
139
  begin
140
140
  exifdata = ::MiniExiftool.new(file) # spaces in filename
141
- doc['pages'] = exifdata.pagecount || exifdata.pages || exifdata.slides # or exifdata['Slides']
141
+ pages = exifdata.pagecount
142
+ pages = exifdata.pages if pages.blank?
143
+ pages = exifdata.slides if pages.blank?
144
+ doc['pages'] = pages
142
145
  doc['size'] = exifdata.filesize
143
146
  doc['mime_type'] = exifdata.mimetype
144
147
  Daengine.log "Exif data for #{file} was pages:#{doc['pages']}, size:#{doc['size']}", "info"
@@ -1,3 +1,3 @@
1
1
  module Daengine
2
- VERSION = "0.3.9.3"
2
+ VERSION = "0.3.9.4"
3
3
  end
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.3
5
+ version: 0.3.9.4
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: 2012-11-29 00:00:00.000000000Z
13
+ date: 2012-12-16 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails