authful 0.5.17 → 0.5.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/authful/endpoint.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzAzNWU5MWFkZjEyYTdhYWMxYTJjMTcxOTc0NTAzY2QyNDEzNDAyZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODY4MTI2N2NlNDI4OGNmZDFlMmFlNDJlMDdhNzZhMWZmNmFjZDYzYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2E5YjMyMjdmNGI3ZTA5NmM5NzJlOGZhMmY4Y2VkMjA3ZDE2NDA0Yzg4OGE2
|
10
|
+
ZDNkNGM3ZmY5ZmJlM2Q3MTQ0MTk0MWNiMDRlODg5MDE2NmU4ZGZkNmVjOTM2
|
11
|
+
M2M4MTUwYjc4Njk3ZjFlMzAwMDRmN2VjOWFlOTgzZjE2NGYxMmI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGY3NDA2ZjY4N2FmNzUwYmZjN2Q2Y2UxNTRlOTY4YzU1NDI3ZGM2M2NmYjg0
|
14
|
+
Nzk1NjRlOGIzNTdiOGJlYzVkYzljM2IxZWE1MTUzOGM4MWJlZDJmMGRkZDQ0
|
15
|
+
YTU0MzkxY2M0ODBjNjRlMmNmYzIzOTUzM2VhMjZkZTY3NjA4ZGI=
|
data/lib/authful/endpoint.rb
CHANGED
@@ -16,11 +16,11 @@ module Authful
|
|
16
16
|
@config
|
17
17
|
end
|
18
18
|
|
19
|
-
def send_request(method, path, data =
|
20
|
-
if
|
21
|
-
r = RestClient.send(method, url_for(path), data, headers)
|
22
|
-
else
|
19
|
+
def send_request(method, path, data = {})
|
20
|
+
if %w(get delete).include?(method.to_s)
|
23
21
|
r = RestClient.send(method, url_for(path), headers)
|
22
|
+
else
|
23
|
+
r = RestClient.send(method, url_for(path), data, headers)
|
24
24
|
end
|
25
25
|
JSON.parse(r)
|
26
26
|
rescue
|