time_bandits 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ module ActionController #:nodoc:
8
8
  # patch to ensure that the completed line is always written to the log
9
9
  def process_action(action, *args)
10
10
 
11
- raw_payload = get_raw_payload(action)
11
+ raw_payload = get_raw_payload
12
12
  ActiveSupport::Notifications.instrument("start_processing.action_controller", raw_payload.dup)
13
13
 
14
14
  exception = nil
@@ -53,8 +53,8 @@ module ActionController #:nodoc:
53
53
 
54
54
  private
55
55
 
56
- if Rails::VERSION::STRING =~ /^3\.2/
57
- def get_raw_payload(action)
56
+ if Rails::VERSION::STRING =~ /^3\.[01]/
57
+ def get_raw_payload
58
58
  {
59
59
  :controller => self.class.name,
60
60
  :action => self.action_name,
@@ -64,8 +64,8 @@ module ActionController #:nodoc:
64
64
  :path => (request.fullpath rescue "unknown")
65
65
  }
66
66
  end
67
- elsif Rails::VERSION::STRING =~ /^3\.[01]/
68
- def get_raw_payload(action)
67
+ elsif Rails::VERSION::STRING =~ /^3\.2/
68
+ def get_raw_payload
69
69
  {
70
70
  :controller => self.class.name,
71
71
  :action => self.action_name,
@@ -1,3 +1,3 @@
1
1
  module TimeBandits
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: time_bandits
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Stefan Kaes
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-05 00:00:00 +02:00
18
+ date: 2012-04-10 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency