rpm_contrib 2.1.4.beta → 2.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/CHANGELOG +1 -1
  2. data/README.md +18 -16
  3. metadata +8 -11
data/CHANGELOG CHANGED
@@ -1,4 +1,4 @@
1
- * Version 2.1.4.beta
1
+ * Version 2.1.4
2
2
 
3
3
  Updated requirements to latest agent with some bug fixes for background jobs
4
4
  Converted instrumentation to install with DependencyDetection in the latest Agent
data/README.md CHANGED
@@ -7,13 +7,19 @@ To use the rpm_contrib gem, install the `rpm_contrib` gem from rubygems.org.
7
7
  It will also install the required version of the `newrelic_rpm` gem if it's not
8
8
  already installed.
9
9
 
10
- For Rails 3.0 and later, add this dependency to your Gemfile:
10
+ For Rails 3.0 and when using Bundler, add these dependencies to your Gemfile:
11
11
 
12
12
  gem 'rpm_contrib'
13
+ gem 'newrelic_rpm'
13
14
 
14
- For Rails 2.1 and later, add this dependency to your in your environment.rb:
15
+ For some frameworks, it's important that the contrib gem is loaded
16
+ before the newrelic_rpm gem. We hope to remove that unfortunate
17
+ requirement in the future.
18
+
19
+ For Rails 2.1 and later, add these dependencies to your in your environment.rb:
15
20
 
16
21
  config.gem 'rpm_contrib'
22
+ config.gem 'newrelic_rpm'
17
23
 
18
24
  For other frameworks, make sure you load rubygems if it isn't already, then just
19
25
  require the rpm_contrib gem:
@@ -22,8 +28,13 @@ require the rpm_contrib gem:
22
28
  require 'rpm_contrib'
23
29
 
24
30
  When you load the rpm_contrib gem, the `newrelic_rpm` gem will also be
25
- initialized. No need for a separate require statement for `newrelic_rpm`. The
26
- `rpm_contrib` gem must be loaded before the `newrelic_rpm` gem initializes.
31
+ initialized. No need for a separate require statement for `newrelic_rpm`.
32
+
33
+ In non-Rails frameworks, it's important that the New Relic Agent gets
34
+ loaded as late as possible, or that the final initialization hook is called
35
+ after all other frameworks have loaded:
36
+
37
+ DependencyDetection.detect!
27
38
 
28
39
  # Supported Frameworks
29
40
 
@@ -81,18 +92,9 @@ You can disable it by setting 'disable_mongodb' to true in your newrelic.yml fil
81
92
 
82
93
  ### Resque
83
94
 
84
- Make sure that your jobs either inherit from Resque::Job or else include our instrumentation:
85
-
86
- ```ruby
87
- require 'rpm_contrib/instrumentation/resque'
88
- class MyJob
89
- extend Resque::Plugins::NewRelicInstrumentation
90
-
91
- def self.perform(*args)
92
- # perform your job here...
93
- end
94
- end
95
- ```
95
+ To instrument jobs you no longer need to have your Job class inherit from Resque::Job or include
96
+ the Resque::Plugins::NewRelicInstrumentation module. The module definition was left in for
97
+ backward compatibility.
96
98
 
97
99
  To disable resque, set 'disable_resque' to true in your newrelic.yml file.
98
100
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpm_contrib
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31098233
5
- prerelease: 6
4
+ hash: 3
5
+ prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
9
  - 4
10
- - beta
11
- version: 2.1.4.beta
10
+ version: 2.1.4
12
11
  platform: ruby
13
12
  authors:
14
13
  - Bill Kayser
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2011-08-01 00:00:00 -07:00
18
+ date: 2011-08-22 00:00:00 -07:00
20
19
  default_executable:
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
@@ -107,14 +106,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
106
  required_rubygems_version: !ruby/object:Gem::Requirement
108
107
  none: false
109
108
  requirements:
110
- - - ">"
109
+ - - ">="
111
110
  - !ruby/object:Gem::Version
112
- hash: 25
111
+ hash: 3
113
112
  segments:
114
- - 1
115
- - 3
116
- - 1
117
- version: 1.3.1
113
+ - 0
114
+ version: "0"
118
115
  requirements: []
119
116
 
120
117
  rubyforge_project: