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 +4 -4
- data/lib/kickbox/api/kickbox.rb +4 -3
- data/lib/kickbox/http_client.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0179c3d00720f6df6cfa78c905b75fcefdd6dbe9
|
|
4
|
+
data.tar.gz: 6ecc6b335ce23f3c15eb330af64132621fb1d930
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 72126da6f356592742434b7b81c53c311c6c7122cd4488ce8367289a434e3433cf160734eba317e1442ccb7f608b41ea0d52bf05f8acd550037e2feb50201e22
|
|
7
|
+
data.tar.gz: 65e7864ab1c4f3187b541dfbcd5906844711dd6523f713c4a956d70329d93ad8815c2b17bf822a6d81b653bf297ece41e13fa40d992cf54d971b59a360a788bb
|
data/lib/kickbox/api/kickbox.rb
CHANGED
|
@@ -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
|
|
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
|
data/lib/kickbox/http_client.rb
CHANGED
|
@@ -21,8 +21,8 @@ module Kickbox
|
|
|
21
21
|
|
|
22
22
|
@options = {
|
|
23
23
|
:base => "https://api.kickbox.io",
|
|
24
|
-
:api_version => "
|
|
25
|
-
:user_agent => "
|
|
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:
|
|
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:
|
|
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
|