kickbox 1.0.4 → 2.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31323131fc9de54d9905f24e0fd3ec399ced31a9
4
- data.tar.gz: 1793ffde31184d81aead4913272556cb6cad4891
3
+ metadata.gz: 0179c3d00720f6df6cfa78c905b75fcefdd6dbe9
4
+ data.tar.gz: 6ecc6b335ce23f3c15eb330af64132621fb1d930
5
5
  SHA512:
6
- metadata.gz: 7041fb64a0fb018bb17a25100a18f6a673cc5bbc7d90499b0e55ca0407224e464509281ccbf6c92771e21a181397ced9564eedd582906a5df476742c8fd94f3a
7
- data.tar.gz: 6dd0e562459dc8a72c842b09fc187e08f837751a55d0b1c715a46b49a3493926747aad5c16b6d31bccc911ba25c950db948db8eebcbcb155276a0de7dc2fbf12
6
+ metadata.gz: 72126da6f356592742434b7b81c53c311c6c7122cd4488ce8367289a434e3433cf160734eba317e1442ccb7f608b41ea0d52bf05f8acd550037e2feb50201e22
7
+ data.tar.gz: 65e7864ab1c4f3187b541dfbcd5906844711dd6523f713c4a956d70329d93ad8815c2b17bf822a6d81b653bf297ece41e13fa40d992cf54d971b59a360a788bb
@@ -11,15 +11,16 @@ module Kickbox
11
11
 
12
12
  # Email Verification
13
13
  #
14
- # '/verify?email=:email' GET
14
+ # '/verify?email=:email&timeout=:timeout' GET
15
15
  #
16
16
  # email - Email address to verify
17
17
  def verify(email, options = {})
18
- body = options.fetch(:query, {})
18
+ body = options.fetch("query", {})
19
+ timeout = options.fetch("timeout", 6000)
19
20
 
20
21
  email = CGI::escape(email)
21
22
 
22
- @client.get("/verify?email=#{email}", body, options)
23
+ @client.get("/verify?email=#{email}&timeout=#{timeout}", body, options)
23
24
  end
24
25
 
25
26
  end
@@ -21,8 +21,8 @@ module Kickbox
21
21
 
22
22
  @options = {
23
23
  :base => "https://api.kickbox.io",
24
- :api_version => "v1",
25
- :user_agent => "alpaca/0.2.1 (https://github.com/pksunkara/alpaca)"
24
+ :api_version => "v2",
25
+ :user_agent => "kickbox-ruby/2.0.0 (https://github.com/kickboxio/kickbox-ruby)"
26
26
  }
27
27
 
28
28
  @options.update(options)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kickbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chaitanya Surapaneni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-11 00:00:00.000000000 Z
11
+ date: 2015-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -28,14 +28,14 @@ dependencies:
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.7.7
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.7.7
41
41
  description: Official kickbox API library client for ruby