fclay 0.1.38 → 0.1.39
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.
- checksums.yaml +4 -4
- data/lib/fclay/attachment.rb +4 -4
- data/lib/fclay/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 81c8044b9357f364e6b77a78a3692af25beed0ea
|
|
4
|
+
data.tar.gz: 66b3e11771a7c998014096e2007ddc379f1c0b04
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ee488d1eca11409f17ec15382e7a9b0869004fdb7ed103fbd8cc948fbfc44262a790cc6053ca7ec840ea096d2cf358580627bc9aa0c13b516cfb5fa1af1f0b18
|
|
7
|
+
data.tar.gz: 3060a7032679326daa4ff6203fa4288b69af419983da2690d904122edb0555c6c7e306809c2d29abc6cf9a4b23c4f58b4f66f5a67ab4e0ef99969ea837e51532
|
data/lib/fclay/attachment.rb
CHANGED
|
@@ -154,14 +154,14 @@ module Fclay
|
|
|
154
154
|
end
|
|
155
155
|
|
|
156
156
|
def process_file
|
|
157
|
-
self.log
|
|
158
|
-
self.log
|
|
157
|
+
self.try(:log,"process_file called")
|
|
158
|
+
self.try(:log,"@file: #{@file.try(:to_s)}")
|
|
159
159
|
return unless @file
|
|
160
160
|
|
|
161
161
|
delete_files
|
|
162
162
|
path = @file.try(:path) || @file.try(:[],:path)
|
|
163
163
|
|
|
164
|
-
self.log
|
|
164
|
+
self.try(:log,"fetched path: #{path.try(:to_s)}")
|
|
165
165
|
return unless path
|
|
166
166
|
|
|
167
167
|
self.content_type = @file.try(:content_type) || @file.try(:[],:content_type) if self.respond_to?(:'content_type=')
|
|
@@ -183,7 +183,7 @@ module Fclay
|
|
|
183
183
|
set_file_size self.class.fclay_options[:styles].try(:first)
|
|
184
184
|
self.file_location = 'local'
|
|
185
185
|
self.file_status = need_upload ? "processing" : "idle"
|
|
186
|
-
self.log
|
|
186
|
+
self.try(:log,"file_processed, file_status: #{self.file_status}")
|
|
187
187
|
end
|
|
188
188
|
end
|
|
189
189
|
|
data/lib/fclay/version.rb
CHANGED