framed_rails 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/framed/client.rb +2 -2
- data/lib/framed/rails.rb +1 -1
- data/lib/framed/version.rb +2 -2
- metadata +1 -1
data/lib/framed/client.rb
CHANGED
@@ -16,11 +16,11 @@ module Framed
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def track(data)
|
19
|
-
|
19
|
+
creds = Base64.strict_encode64(@config[:api_key] + ':')
|
20
20
|
payload = JSON.generate(data)
|
21
21
|
response = Excon.post(@config[:endpoint],
|
22
22
|
:headers => {
|
23
|
-
'Authorization' => "Basic #{
|
23
|
+
'Authorization' => "Basic #{creds}",
|
24
24
|
'Content-Type' => 'application/json'
|
25
25
|
},
|
26
26
|
:body => payload
|
data/lib/framed/rails.rb
CHANGED
data/lib/framed/version.rb
CHANGED