spider_monkey 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spider_monkey/helper.rb +3 -2
- data/spider_monkey.gemspec +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: 8be4d07f09ac5eaaa38546b3450782fe53e0c055
|
4
|
+
data.tar.gz: d36d0a661a8b93a00f38b4525bc9d4261dddff7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90bb4cc3ce0bece24607e77634ad8c4a332731f64da44572c50982da2544eb897859f79ec25ca3be56d42013649486b44190c17fd73baabf070a7a7e89891a8f
|
7
|
+
data.tar.gz: b8f514bca0d97288a313cf59246a69735ea3b5a05d31bd245605e6466b50e141d9b9b0653555bd07bc5b790a4bfd57f3b72cbb580fcc260d34ffb9110621964c
|
data/lib/spider_monkey/helper.rb
CHANGED
@@ -19,8 +19,9 @@ module SpiderMonkey
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
-
def async_resized_image_url(options)
|
23
|
-
|
22
|
+
def async_resized_image_url(options, priority = "medium")
|
23
|
+
priority = "medium" unless ["low", "medium", "high"].include?(priority)
|
24
|
+
resized_image_url(options).gsub(SpiderMonkey.configuration[:cloudfront_host], "usespidermonkey.com/api/v1/u/#{SpiderMonkey.configuration[:user_key]}") + "&priority=#{priority}"
|
24
25
|
end
|
25
26
|
|
26
27
|
private
|
data/spider_monkey.gemspec
CHANGED