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.
- data/CHANGELOG +1 -1
- data/README.md +18 -16
- metadata +8 -11
data/CHANGELOG
CHANGED
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
|
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
|
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`.
|
26
|
-
|
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
|
-
|
85
|
-
|
86
|
-
|
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 3
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 1
|
9
9
|
- 4
|
10
|
-
|
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-
|
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:
|
111
|
+
hash: 3
|
113
112
|
segments:
|
114
|
-
-
|
115
|
-
|
116
|
-
- 1
|
117
|
-
version: 1.3.1
|
113
|
+
- 0
|
114
|
+
version: "0"
|
118
115
|
requirements: []
|
119
116
|
|
120
117
|
rubyforge_project:
|