fclay 0.1.26 → 0.1.27

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e928c25fbb60355bae3de6bb56d20eb5d8ae80ec
4
- data.tar.gz: 364d285e76f65cdaf0a8858b4bb8d4572e7b2dad
3
+ metadata.gz: baaa9dbad46b46df37f300115f088abeb6f44629
4
+ data.tar.gz: b12dae55d90b460b8294ffcc3ab89adf99ed58a2
5
5
  SHA512:
6
- metadata.gz: d3c388c125fb76ad9f09e488b6d0d09574ebfcbcce448832a1b03b63cb464c1235a6f4f74d351755623b1a5712d45f3a7695eabfa94b659d5bb03864c346129d
7
- data.tar.gz: 0d6b5dfa86a5fd1bb82ef0bc02440dc4355aaa5d0fb0974e548e78529e3b5a3b1d10fdbbc635b08bb2842430b8dfd7b906ba21486e115b0a9e5b98d82bb949aa
6
+ metadata.gz: dc1181760ab90083395d9fcc42c964e6cf6db9fe636efe94512727e3a61fa59559559ad338a9a7f805ee10ee56d80daf109c784c7c3f61b8bf8e3d761e51a79c
7
+ data.tar.gz: 51f466ab5f610b1a9ebb6ef8bdd8fbce726038bcec130aaa1729d78b5d2002fd4fd3aceb68705cb2031a516596b963c6a7085b89767393d99cddd5f34f6a9798
@@ -54,7 +54,7 @@ module Fclay
54
54
 
55
55
  type = type.safe_constantize
56
56
  return unless type
57
- uploading_object = type.find_by_id(id)
57
+ bucket_object = type.find_by_id(id)
58
58
  return if !uploading_object || !uploading_object.need_upload
59
59
  content_type = uploading_object.try(:content_type)
60
60
  bucket = Fclay.remote_storage.bucket_object
@@ -169,7 +169,7 @@ module Fclay
169
169
  `chmod 0755 #{local_file_path}`
170
170
 
171
171
  delete_tmp_file
172
- set_file_size uploading_object.class.fclay_options[:styles].try(:first)
172
+ set_file_size self.class.fclay_options[:styles].try(:first)
173
173
  self.file_location = 'local'
174
174
  self.file_status = need_upload ? "processing" : "idle"
175
175
  end
@@ -1,3 +1,3 @@
1
1
  module Fclay
2
- VERSION = "0.1.26"
2
+ VERSION = "0.1.27"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fclay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.26
4
+ version: 0.1.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Galiev