webpurify_api 0.1.1 → 0.1.2

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: 7afbc3b7550c1e7fff41d529ac3a0d5a5ec113c3
4
- data.tar.gz: a895a109641c3448cffffff36fae5f9e3133c3cb
3
+ metadata.gz: cca296ba0e42f58beccb90eb65da48b494a5cdcc
4
+ data.tar.gz: ab82364a0424d6a6c1ebb50cc7f87a272d655d0c
5
5
  SHA512:
6
- metadata.gz: 281afb160d690acdd84b7d44b3241f72a199f8f514eb210397d29cd793cc24b6e0d3da334c5dfb2f8bfaa1b110d929aaa1a64add3cc5d8fe1006117c5d1cb496
7
- data.tar.gz: b26acf6051f5cef3dbf45292ab9388b1373f65a01ef44819f349766448c43e9e130246d78c0835e89117546b79ef7edf846701b96155227bf58c2ade3a5ec70b
6
+ metadata.gz: d1e54aaf496ac332a03758d6b8a1b6096979ba5a02ec02b370bbdfbf5ffdd6051db729b541d8c05ae2bc97caab44b814a4b6ae1bdc70f9fc7c40d0745bf89d00
7
+ data.tar.gz: c10cafbcb298fe8fc1f0936d6f6d7f55c8ad7eae24153db81c8799ccd6a710f116e410529dfbaa77e4cfeb8c090180635aad7fb5b9bc3c6426557d82592d6f78
@@ -10,8 +10,9 @@ class WebpurifyApi::Image < WebpurifyApi::Base
10
10
  res
11
11
  end
12
12
 
13
- def status(image_id)
14
- do_request(:imgstatus, params: { imgid: image_id })
13
+ def status(custom_image_id: nil, image_id: nil)
14
+ params = custom_image_id.nil? ? { imgid: image_id } : { customimgid: custom_image_id}
15
+ do_request(:imgstatus, params: params)
15
16
  end
16
17
 
17
18
  def account
@@ -1,3 +1,3 @@
1
1
  module WebpurifyApi
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webpurify_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olivier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-13 00:00:00.000000000 Z
11
+ date: 2014-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler