sinmetrics 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/Rakefile +1 -1
- data/lib/sinmetrics/kontagent.rb +1 -1
- data/lib/sinmetrics/mixpanel.rb +2 -0
- data/sinmetrics.gemspec +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('sinmetrics', '0.0.
|
5
|
+
Echoe.new('sinmetrics', '0.0.3') do |p|
|
6
6
|
p.description = "Some metrics helpers for the Sinatra web framework"
|
7
7
|
p.url = "http://github.com/lpetre/sinmetrics"
|
8
8
|
p.author = "Luke Petre"
|
data/lib/sinmetrics/kontagent.rb
CHANGED
@@ -15,7 +15,7 @@ module Sinatra
|
|
15
15
|
if app.respond_to?(:options)
|
16
16
|
@app = app
|
17
17
|
[:api_key, :secret, :env].each do |var|
|
18
|
-
instance_variable_set("@#{var}", app.options.send("
|
18
|
+
instance_variable_set("@#{var}", app.options.send("kontagent_#{var}"))
|
19
19
|
end
|
20
20
|
else
|
21
21
|
[:api_key, :secret, :env, :request].each do |var|
|
data/lib/sinmetrics/mixpanel.rb
CHANGED
@@ -66,6 +66,8 @@ module Sinatra
|
|
66
66
|
class MixpanelSettings
|
67
67
|
def initialize app, &blk
|
68
68
|
@app = app
|
69
|
+
@app.set :mixpanel_api_key, nil
|
70
|
+
@app.set :mixpanel_secret, nil
|
69
71
|
@app.set :mixpanel_request, Proc.new { |url| Net::HTTP.get(URI.parse(url)) }
|
70
72
|
instance_eval &blk
|
71
73
|
end
|
data/sinmetrics.gemspec
CHANGED
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|