controller_filter_logging 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README ADDED
@@ -0,0 +1,14 @@
1
+ = controller_filter_logging
2
+
3
+ == What is it?
4
+
5
+ It's a gem to output more logging when you enter and leave before filters in a rails 3 app.
6
+
7
+ == Why?
8
+
9
+ Rails 2 had this, and Rails 3 doesn't. It's super helpful when your app starts doing odd things in before_filter's, and you can't figure out why.
10
+
11
+ == Credits
12
+
13
+ MINE ALL MINE
14
+ jon@burningbush.us
@@ -20,7 +20,7 @@ module AbstractController::Callbacks::ClassMethods
20
20
  define_method("#{filter_name}_with_logging") do
21
21
  Rails.logger.debug("Entering before_filter: #{filter_name}")
22
22
  send(filter_name).tap do |result|
23
- Rails.logger.debug(" result: #{result}")
23
+ Rails.logger.debug(" result: #{result.inspect}")
24
24
  end
25
25
  end
26
26
  end
@@ -1,3 +1,3 @@
1
1
  module ControllerFilterLogging
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: controller_filter_logging
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jon Moses
@@ -26,6 +26,7 @@ extra_rdoc_files: []
26
26
  files:
27
27
  - .gitignore
28
28
  - Gemfile
29
+ - README
29
30
  - Rakefile
30
31
  - controller_filter_logging.gemspec
31
32
  - init.rb