metry 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ === 1.1.0 / 2009-07-11
2
+
3
+ * Moved Radiant initialization into the extension.
4
+
1
5
  === 1.0.1 / 2009-07-06
2
6
 
3
7
  * Don't include the webrat selenium jar in the manifest.
data/README.txt CHANGED
@@ -29,6 +29,7 @@ Metry aims to close the gap between knowing you ought to be making decisions bas
29
29
  == REQUIREMENTS:
30
30
 
31
31
  * Tokyo Cabinet
32
+ * Tokyo Cabinet Ruby Binding
32
33
  * Rack
33
34
 
34
35
  == INSTALL:
data/TODO CHANGED
@@ -1,5 +1,7 @@
1
1
  More unit tests
2
2
 
3
+ Add a slick Sinatra app for viewing tracking data.
4
+
3
5
  Add support for non-pageview event tracking
4
6
  Via in-process call
5
7
  Via web request
@@ -7,7 +7,7 @@ require 'metry/tokyo'
7
7
  require 'metry/experiment'
8
8
 
9
9
  module Metry
10
- VERSION = '1.0.1'
10
+ VERSION = '1.1.0'
11
11
 
12
12
  def self.init(storage)
13
13
  @storage = storage
@@ -9,6 +9,8 @@ require File.join(File.dirname(__FILE__), 'boot')
9
9
 
10
10
  require 'radius'
11
11
 
12
+ $:.unshift(RAILS_ROOT + "/../../lib")
13
+
12
14
  Radiant::Initializer.run do |config|
13
15
  # Skip frameworks you're not going to use (only works if using vendor/rails).
14
16
  # To use Rails without a database, you must remove the Active Record framework
@@ -74,10 +76,5 @@ Radiant::Initializer.run do |config|
74
76
  ActiveSupport::Inflector.inflections do |inflect|
75
77
  inflect.uncountable 'config'
76
78
  end
77
-
78
- require RAILS_ROOT + '/../../lib/metry'
79
- Metry.init Metry::Tokyo.new(RAILS_ROOT + '/tracking/tracking')
80
-
81
- config.middleware.insert_after ActionController::Failsafe, Metry::Rack::Tracking
82
79
  end
83
80
  end
@@ -1,3 +1,5 @@
1
+ require 'metry'
2
+
1
3
  class MetryExtension < Radiant::Extension
2
4
  version "1.0"
3
5
  description "Provides Metry support to Radiant."
@@ -20,5 +22,8 @@ class MetryExtension < Radiant::Extension
20
22
  end
21
23
  alias_method_chain :cache?, :metry
22
24
  end
25
+
26
+ Metry.init Metry::Tokyo.new(RAILS_ROOT + '/tracking/tracking')
27
+ Rails.configuration.middleware.insert_after ActionController::Failsafe, Metry::Rack::Tracking
23
28
  end
24
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metry
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathaniel Talbott
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-06 00:00:00 -04:00
12
+ date: 2009-07-11 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency