Permalink
Browse files

Some minor updates before release.

  • Loading branch information...
1 parent 4d3328f commit 9a41566129a5b88fa9e742b6bd9efc95c219a798 @josevalim josevalim committed Feb 15, 2010
Showing with 2 additions and 7 deletions.
  1. +1 −0 Rakefile
  2. +1 −1 lib/rails_metrics.rb
  3. +0 −5 lib/rails_metrics/engine.rb
  4. +0 −1 rails_metrics.gemspec
View
@@ -49,6 +49,7 @@ begin
s.description = "Metrics measurement for your app on top of ActiveSupport::Notifications"
s.authors = ["José Valim"]
s.files = FileList["[A-Z]*", "{app,config,lib,public}/**/*"]
+ s.files.exclude("public/javascripts/rails_metrics.js")
end
Jeweler::GemcutterTasks.new
View
@@ -103,7 +103,7 @@ def self.wait
def self.valid_for_storing?(args) #:nodoc:
name, payload = args[0].to_s, args[4]
- RailsMetrics.store && RailsMetrics.listening? &&
+ RailsMetrics.listening? && RailsMetrics.store &&
!self.ignore_patterns.find { |p| String === p ? name == p : name =~ p } &&
!self.ignore_lambdas.values.any? { |b| b.call(name, payload) }
end
@@ -25,10 +25,5 @@ class Engine < ::Rails::Engine
RailsMetrics.events.push(args) if RailsMetrics.valid_for_storing?(args)
end
end
-
- config.after_initialize do
- # Ensure the store is loaded right after initialization
- RailsMetrics.store
- end
end
end
View
@@ -48,7 +48,6 @@ Gem::Specification.new do |s|
"public/images/rails_metrics/page_white_delete.png",
"public/images/rails_metrics/page_white_go.png",
"public/images/rails_metrics/tick.png",
- "public/javascripts/rails_metrics.js",
"public/javascripts/rails_metrics/g.pie-min.js",
"public/javascripts/rails_metrics/g.raphael-min.js",
"public/javascripts/rails_metrics/raphael-min.js",

0 comments on commit 9a41566

Please sign in to comment.