wireframe-rpm_contrib 1.0.12.1 → 1.0.12.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,4 +1,4 @@
1
- * Version 1.0.12.1
1
+ * Version 1.0.12.2
2
2
 
3
3
  Add backgrounded resque support
4
4
 
@@ -13,11 +13,14 @@ module RPMContrib
13
13
  old_perform_method = instance_method(:perform)
14
14
 
15
15
  define_method(:perform) do
16
- class_name = args.first
17
- method = args[1]
16
+ options = {
17
+ :class_name => args[0],
18
+ :name => args[1].to_s,
19
+ :params => {:id => args[2]},
20
+ :category => 'OtherTransaction/BackgroundedResqueJob'
21
+ }
18
22
  NewRelic::Agent.reset_stats if NewRelic::Agent.respond_to? :reset_stats
19
- perform_action_with_newrelic_trace(:name => method, :class_name => class_name, :params => @payload,
20
- :category => 'OtherTransaction/BackgroundedResqueJob') do
23
+ perform_action_with_newrelic_trace(options) do
21
24
  old_perform_method.bind(self).call
22
25
  end
23
26
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wireframe-rpm_contrib
3
3
  version: !ruby/object:Gem::Version
4
- hash: 109
4
+ hash: 107
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
9
  - 12
10
- - 1
11
- version: 1.0.12.1
10
+ - 2
11
+ version: 1.0.12.2
12
12
  platform: ruby
13
13
  authors:
14
14
  - Bill Kayser