sinmetrics 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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.2') do |p|
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"
@@ -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("mixpanel_#{var}"))
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|
@@ -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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{sinmetrics}
5
- s.version = "0.0.2"
5
+ s.version = "0.0.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Luke Petre"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Luke Petre
metadata.gz.sig CHANGED
Binary file