authful 0.5.17 → 0.5.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/authful/endpoint.rb +4 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGUxMTM0ZGY1OWJiZTgzNzZhNDEyYTAxZGMwNjVjMWMwMGYwMjNlYw==
4
+ MzAzNWU5MWFkZjEyYTdhYWMxYTJjMTcxOTc0NTAzY2QyNDEzNDAyZg==
5
5
  data.tar.gz: !binary |-
6
- NTI3OThlNzgwMzY5YjU2NjE3NjY1NDExZGQzZjM5OTQwNDBkYmYyNw==
6
+ ODY4MTI2N2NlNDI4OGNmZDFlMmFlNDJlMDdhNzZhMWZmNmFjZDYzYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OGU2NzdiZmVmNzBkM2EyNmVmNDk0Y2UzMDg4ZThlNGU5ZDUzM2QyNzU3N2Y5
10
- NzhjYTczZGQ0M2Y5ZDQ0ODEwZDk5OWRmYjE0NzJmNDU4NTgxZTI2ODA5NzNh
11
- NmEwMzAxYzQxYTJjN2NjYWI5NDQ2OWQ4N2NjMGU2MzdlZGUxZTI=
9
+ N2E5YjMyMjdmNGI3ZTA5NmM5NzJlOGZhMmY4Y2VkMjA3ZDE2NDA0Yzg4OGE2
10
+ ZDNkNGM3ZmY5ZmJlM2Q3MTQ0MTk0MWNiMDRlODg5MDE2NmU4ZGZkNmVjOTM2
11
+ M2M4MTUwYjc4Njk3ZjFlMzAwMDRmN2VjOWFlOTgzZjE2NGYxMmI=
12
12
  data.tar.gz: !binary |-
13
- Mjc1MTYyYjU1OGI4MTgwMWNlOTQzNTM0ZTBiNjRjNGVlZjhkNGFkMTcxMzIy
14
- YTc1N2QyZWFhYTkzYTIxZDczOWY5ZTZhYTgzOTI1ZWY1Y2RjMWNhZmZiMTE2
15
- ZmM3MDMxNjQwODc2MjY5ODViNjU5MDIwMTgzMTlkNGEzMjM5M2Q=
13
+ ZGY3NDA2ZjY4N2FmNzUwYmZjN2Q2Y2UxNTRlOTY4YzU1NDI3ZGM2M2NmYjg0
14
+ Nzk1NjRlOGIzNTdiOGJlYzVkYzljM2IxZWE1MTUzOGM4MWJlZDJmMGRkZDQ0
15
+ YTU0MzkxY2M0ODBjNjRlMmNmYzIzOTUzM2VhMjZkZTY3NjA4ZGI=
@@ -16,11 +16,11 @@ module Authful
16
16
  @config
17
17
  end
18
18
 
19
- def send_request(method, path, data = nil)
20
- if data
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.17
4
+ version: 0.5.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Wyrosdick