rpm_contrib 2.1.2 → 2.1.3

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/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ * Version 2.1.3
2
+
3
+ Fixed typo in Resque instrumentation
4
+ Fixed double loading of AWS instrumentation
5
+
1
6
  * Version 2.1.2
2
7
 
3
8
  Add a manual shutdown to the Resque instrumentation to make sure data is saved and sent - thanks to Jade Rubick
data/README.md CHANGED
@@ -84,9 +84,13 @@ You can disable it by setting 'disable_mongodb' to true in your newrelic.yml fil
84
84
  Make sure that your jobs either inherit from Resque::Job or else include our instrumentation:
85
85
 
86
86
  ```ruby
87
+ require 'rpm_contrib/instrumentation/resque'
87
88
  class MyJob
88
- require 'rpm_contrib/instrumentation/resque'
89
- include Resque::Plugins::NewRelicInstrumentation
89
+ extend Resque::Plugins::NewRelicInstrumentation
90
+
91
+ def self.perform(*args)
92
+ # perform your job here...
93
+ end
90
94
  end
91
95
  ```
92
96
 
@@ -1,4 +1,3 @@
1
- require 'rpm_contrib/instrumentation/aws/s3'
2
1
  module RpmContrib
3
2
  module Instrumentation
4
3
  module Aws
@@ -26,7 +26,7 @@ module RPMContrib
26
26
  end
27
27
 
28
28
  ::Resque::Job.class_eval do
29
- include ::Resque::Plugins::NewRelicInstrumentation
29
+ extend ::Resque::Plugins::NewRelicInstrumentation
30
30
  end
31
31
  end
32
32
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpm_contrib
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
5
- prerelease: false
4
+ hash: 13
5
+ prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 2
10
- version: 2.1.2
9
+ - 3
10
+ version: 2.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bill Kayser
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-26 00:00:00 -07:00
18
+ date: 2011-06-14 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -86,7 +86,6 @@ licenses: []
86
86
 
87
87
  post_install_message:
88
88
  rdoc_options:
89
- - --charset=UTF-8
90
89
  - --line-numbers
91
90
  - --inline-source
92
91
  - --title
@@ -116,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
115
  requirements: []
117
116
 
118
117
  rubyforge_project:
119
- rubygems_version: 1.3.7
118
+ rubygems_version: 1.4.2
120
119
  signing_key:
121
120
  specification_version: 3
122
121
  summary: Contributed Instrumentation for New Relic RPM