logan18 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logan/client.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA512:
|
3
|
-
|
4
|
-
|
3
|
+
data.tar.gz: f7c6d0a61dab697e66915a0500829d8c0286ba5c77fc3bff99d2ed5798e596ef1007b01df1412d4bbf9366e62734766439f12709ccea5f787ab9ad19f8f8fb71
|
4
|
+
metadata.gz: 2fd65df13a2ea044356a5fba70028de85a8a1038aa9439899796fd7391e6b2d33ca63b3d24ac96f8801785435ab2dcf14643d934ce9f8486ced7903d8a5105b7
|
5
5
|
SHA1:
|
6
|
-
|
7
|
-
|
6
|
+
data.tar.gz: b252001bebe1452df877ce8f3f2d9685319b477f
|
7
|
+
metadata.gz: 488650e5e2f7e7d105f80da0e44010896292334a
|
data/lib/logan/client.rb
CHANGED
@@ -20,7 +20,9 @@ module Logan
|
|
20
20
|
# @param auth_hash [Hash] authorization hash consisting of a username and password combination (:username, :password) or an access_token (:access_token)
|
21
21
|
def auth=(auth_hash)
|
22
22
|
# symbolize the keys
|
23
|
-
|
23
|
+
new_auth_hash = {}
|
24
|
+
auth_hash = auth_hash.each {|k, v| h[k.to_sym] = v}
|
25
|
+
auth_hash = new_auth_hash
|
24
26
|
|
25
27
|
if auth_hash.has_key? :access_token
|
26
28
|
# clear the basic_auth, if it's set
|
@@ -71,4 +73,4 @@ module Logan
|
|
71
73
|
response.map { |h| e = Logan::Event.new(h) }
|
72
74
|
end
|
73
75
|
end
|
74
|
-
end
|
76
|
+
end
|