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 CHANGED
@@ -16,11 +16,11 @@ module Framed
16
16
  end
17
17
 
18
18
  def track(data)
19
- write_key = Base64.strict_encode64(@config[:write_key])
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 #{write_key}",
23
+ 'Authorization' => "Basic #{creds}",
24
24
  'Content-Type' => 'application/json'
25
25
  },
26
26
  :body => payload
data/lib/framed/rails.rb CHANGED
@@ -1,4 +1,4 @@
1
- class ApplicationController < ActionController::Base
1
+ ActionController::Base.class_eval do
2
2
 
3
3
  after_filter :framed_report_page_view
4
4
 
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Framed
3
- VERSION = "0.1.0"
4
- end
3
+ VERSION = "0.1.2"
4
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: framed_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: