backframe 0.0.27 → 0.0.28
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e6dcaae1921d819ba73d7ee8684aeeaf5479d02
|
4
|
+
data.tar.gz: a4f730f2f1f8b109e4b1d9861c745ce8cbbcfdeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15056967ff024b676fd17ade4fd23037a2899fef94ed916754fdc4b5e83ac40c5a13ff614656755b3a3c1e2db6b0fb25618fe749323bc0bda22c1a71bf97b3fe
|
7
|
+
data.tar.gz: 525075c647f1d83685439582e7984cb70684e73c182445f9bb0ef2a89b531b1875f12112bf26498e9fae795446744e5337282ec6724bab35876cf62556aa1a21
|
@@ -9,11 +9,11 @@ module Backframe
|
|
9
9
|
class Base
|
10
10
|
|
11
11
|
def asset(filepath, conversions)
|
12
|
-
Backframe::ImageCache::Asset.new(filepath, conversions).process
|
12
|
+
Backframe::ImageCache::Asset.new(filepath, conversions).process
|
13
13
|
end
|
14
14
|
|
15
15
|
def cached(filepath, conversions)
|
16
|
-
Backframe::ImageCache::Cache.new(filepath, conversions).process
|
16
|
+
Backframe::ImageCache::Cache.new(filepath, conversions).process
|
17
17
|
end
|
18
18
|
|
19
19
|
def path(filepath, conversions)
|
@@ -11,7 +11,7 @@ module Backframe
|
|
11
11
|
@conversions = conversions
|
12
12
|
end
|
13
13
|
|
14
|
-
def process
|
14
|
+
def process
|
15
15
|
begin
|
16
16
|
test(filepath, conversions)
|
17
17
|
rescue
|
@@ -24,7 +24,7 @@ module Backframe
|
|
24
24
|
normalized = Backframe::ImageCache::Conversions.new(conversions)
|
25
25
|
key = "imagecache/#{normalized.to_s}/#{filekey}"
|
26
26
|
if !redis.get(key)
|
27
|
-
asset = Backframe::ImageCache::Asset.new(filepath, normalized).process
|
27
|
+
asset = Backframe::ImageCache::Asset.new(filepath, normalized).process
|
28
28
|
upload_to_s3(asset, key)
|
29
29
|
save_to_redis(key)
|
30
30
|
end
|
data/lib/backframe/version.rb
CHANGED