metry 1.0.1 → 1.1.0
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/History.txt +4 -0
- data/README.txt +1 -0
- data/TODO +2 -0
- data/lib/metry.rb +1 -1
- data/radiant/example/config/environment.rb +2 -5
- data/radiant/extension/metry_extension.rb +5 -0
- metadata +2 -2
data/History.txt
CHANGED
data/README.txt
CHANGED
data/TODO
CHANGED
data/lib/metry.rb
CHANGED
|
@@ -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
|
|
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-
|
|
12
|
+
date: 2009-07-11 00:00:00 -04:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|