fclay 0.1.17 → 0.1.18
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 +3 -5
- 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: 26c8d2d3ffa5a20bea9cfe8f2d5cc65abfd266c1
|
|
4
|
+
data.tar.gz: 843aec24e77d9670f01fad31537c0b12e8ce0d42
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 94cf1162abe65288555e8392c0c9a46bef3d746dd6ad03e92c0055d57cbea81154af63a3f77896ec7a3cf678fbd1cee322a69d041cd052f720751048b59355de
|
|
7
|
+
data.tar.gz: bc9e25d221864b242525ee06c9615e3eee74b0a7d25944bea1c2f7eece9a2f696212620ad8fcea1bbafeb29ba39edc10fdca37b913fc558b0d102ca884c86dcd
|
data/lib/fclay/attachment.rb
CHANGED
|
@@ -29,7 +29,7 @@ module Fclay
|
|
|
29
29
|
|
|
30
30
|
def delete_files
|
|
31
31
|
|
|
32
|
-
case file_location
|
|
32
|
+
case self.file_location
|
|
33
33
|
when 's3'
|
|
34
34
|
delete_remote_files
|
|
35
35
|
when 'local'
|
|
@@ -85,15 +85,13 @@ module Fclay
|
|
|
85
85
|
end
|
|
86
86
|
|
|
87
87
|
def file_url(style=nil)
|
|
88
|
-
case file_location
|
|
88
|
+
case self.file_location
|
|
89
89
|
when "external_link"
|
|
90
90
|
self.file_name
|
|
91
91
|
when "local"
|
|
92
92
|
local_file_url(style)
|
|
93
|
-
|
|
93
|
+
else
|
|
94
94
|
remote_file_url(style)
|
|
95
|
-
else
|
|
96
|
-
""
|
|
97
95
|
end
|
|
98
96
|
end
|
|
99
97
|
|
data/lib/fclay/version.rb
CHANGED