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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa42ad4e48f6131e09202195c0fb9db6565be3db
4
- data.tar.gz: d6828fdd6a8998b71f8dc49a762afb2cd96eb0ce
3
+ metadata.gz: 8be4d07f09ac5eaaa38546b3450782fe53e0c055
4
+ data.tar.gz: d36d0a661a8b93a00f38b4525bc9d4261dddff7d
5
5
  SHA512:
6
- metadata.gz: 557bbd5b9f7cccbe7f4d9aa4cdb78cb005941aa8e33ac6f5f2a4fc776058e6fb980b067d6e4464bf3780cd5468b27daf95ad75aa2d1ea02cf8537c790f707093
7
- data.tar.gz: 7b2592268c7a83646736797c4a3ee3e66a6fde51d7fe5b70e70f8b14cb356657c9d23b8a246b7ca16ccee1df1134df908ea7c69b23be3fef582321b7e770d5fb
6
+ metadata.gz: 90bb4cc3ce0bece24607e77634ad8c4a332731f64da44572c50982da2544eb897859f79ec25ca3be56d42013649486b44190c17fd73baabf070a7a7e89891a8f
7
+ data.tar.gz: b8f514bca0d97288a313cf59246a69735ea3b5a05d31bd245605e6466b50e141d9b9b0653555bd07bc5b790a4bfd57f3b72cbb580fcc260d34ffb9110621964c
@@ -19,8 +19,9 @@ module SpiderMonkey
19
19
  end
20
20
  end
21
21
 
22
- def async_resized_image_url(options)
23
- resized_image_url(options).gsub(SpiderMonkey.configuration[:cloudfront_host], "usespidermonkey.com/api/v1/u/#{SpiderMonkey.configuration[:user_key]}")
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "spider_monkey"
3
- s.version = "0.0.7"
3
+ s.version = "0.0.8"
4
4
  s.platform = Gem::Platform::RUBY
5
5
 
6
6
  s.authors = ["Ben McFadden"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spider_monkey
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben McFadden