newrelic_rpm 2.9.8 → 2.9.9
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of newrelic_rpm might be problematic. Click here for more details.
- data/CHANGELOG +4 -0
- data/lib/new_relic/agent/agent.rb +3 -1
- data/lib/new_relic/control.rb +1 -1
- data/lib/new_relic/version.rb +1 -1
- data/newrelic_rpm.gemspec +2 -2
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -198,7 +198,9 @@ module NewRelic::Agent
|
|
198
198
|
# When the VM shuts down, attempt to send a message to the
|
199
199
|
# server that this agent run is stopping, assuming it has
|
200
200
|
# successfully connected
|
201
|
-
|
201
|
+
# This shutdown handler doesn't work if Sinatra or Unicorn is running
|
202
|
+
# because it executes in the shutdown handler!
|
203
|
+
at_exit { shutdown } unless [:sinatra, :unicorn].include? NewRelic::Control.instance.dispatcher
|
202
204
|
end
|
203
205
|
end
|
204
206
|
control.log! "New Relic RPM Agent #{NewRelic::VERSION::STRING} Initialized: pid = #{$$}"
|
data/lib/new_relic/control.rb
CHANGED
@@ -162,7 +162,7 @@ module NewRelic
|
|
162
162
|
self['dispatcher_instance_id'] || @local_env.dispatcher_instance_id
|
163
163
|
end
|
164
164
|
def dispatcher
|
165
|
-
self['dispatcher'] || @local_env.dispatcher
|
165
|
+
(self['dispatcher'] && self['dispatcher'].to_sym) || @local_env.dispatcher
|
166
166
|
end
|
167
167
|
def app_names
|
168
168
|
self['app_name'] ? self['app_name'].split(';') : []
|
data/lib/new_relic/version.rb
CHANGED
data/newrelic_rpm.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{newrelic_rpm}
|
5
|
-
s.version = "2.9.
|
5
|
+
s.version = "2.9.9"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Bill Kayser"]
|
9
|
-
s.date = %q{2009-
|
9
|
+
s.date = %q{2009-12-14}
|
10
10
|
s.description = %q{New Relic Ruby Performance Monitoring Agent}
|
11
11
|
s.email = %q{bkayser@newrelic.com}
|
12
12
|
s.executables = ["mongrel_rpm", "newrelic_cmd"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: newrelic_rpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.9.
|
4
|
+
version: 2.9.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bill Kayser
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-12-14 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|