authy 2.6.0 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +0 -3
- data/lib/authy/onetouch.rb +8 -8
- data/lib/authy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40c5049a7be43bc9c1b6a771406f27db7907e3af
|
4
|
+
data.tar.gz: a44fad2cb8c5908d0f2018cf07575a23350d8f0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff660394515062632f21d268b88071305a6c2914fe716162dae1fb32499ef59b0a468ef69ea16962bf4b03e2801329674618342f887d73a495cf5e5a43664cfe
|
7
|
+
data.tar.gz: 1d46006e06cdaccc1d42b043e4f9b8693aa7a8d4971246f974327e5c736501b1aef4776dd4a235dc4124dc2905891ebdbf5d80eedee9737840d5fa97a21c5991
|
data/Gemfile.lock
CHANGED
data/lib/authy/onetouch.rb
CHANGED
@@ -17,7 +17,7 @@ module Authy
|
|
17
17
|
logos = params.delete(:logos) || params.delete('logos')
|
18
18
|
seconds_to_expire = params.delete(:seconds_to_expire) || params.delete('seconds_to_expire')
|
19
19
|
|
20
|
-
return invalid_response("message cannot be blank") if message.empty?
|
20
|
+
return invalid_response("message cannot be blank") if message.nil? || message.empty?
|
21
21
|
return invalid_response('user id is invalid') unless is_digit?(user_id)
|
22
22
|
|
23
23
|
begin
|
@@ -28,13 +28,13 @@ module Authy
|
|
28
28
|
return invalid_response("Invalid parameters: #{e.message}")
|
29
29
|
end
|
30
30
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
})
|
31
|
+
params = { message: message[0, MAX_STRING_SIZE] }
|
32
|
+
params[:details] = details unless details.nil?
|
33
|
+
params[:hidden_details] = hidden_details unless hidden_details.nil?
|
34
|
+
params[:logos] = logos unless logos.nil?
|
35
|
+
params[:seconds_to_expire] = seconds_to_expire unless seconds_to_expire.nil?
|
36
|
+
|
37
|
+
post_request("onetouch/json/users/#{user_id}/approval_requests", params)
|
38
38
|
end
|
39
39
|
|
40
40
|
def self.approval_request_status(params)
|
data/lib/authy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Authy Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|