newrelic_rpm 2.12.1.alpha → 2.12.1

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 CHANGED
@@ -1,5 +1,7 @@
1
1
  v2.12.1
2
+ * fix bug in profile mode
2
3
  * fix race condition in Delayed::Job instrumentation loading
4
+ * fix glassfish detection in latest glassfish gem
3
5
 
4
6
  v2.12.0
5
7
  * support basic instrumentation for ActsAsSolr and Sunspot
@@ -279,20 +279,22 @@ module NewRelic
279
279
  # Profile the instrumented call. Dev mode only. Experimental.
280
280
  def perform_action_with_newrelic_profile(args)
281
281
  frame_data = _push_metric_frame(block_given? ? args : [])
282
+ val = nil
282
283
  NewRelic::Agent.trace_execution_scoped frame_data.metric_name do
283
284
  MetricFrame.current(true).start_transaction
284
285
  NewRelic::Agent.disable_all_tracing do
285
286
  # turn on profiling
286
287
  profile = RubyProf.profile do
287
288
  if block_given?
288
- yield
289
+ val = yield
289
290
  else
290
- perform_action_without_newrelic_trace(*args)
291
+ val = perform_action_without_newrelic_trace(*args)
291
292
  end
292
293
  end
293
294
  NewRelic::Agent.instance.transaction_sampler.notice_profile profile
294
295
  end
295
296
  end
297
+ return val
296
298
  ensure
297
299
  frame_data.pop
298
300
  end
@@ -203,10 +203,11 @@ module NewRelic
203
203
 
204
204
  def check_for_glassfish
205
205
  return unless defined?(::JRuby) &&
206
- (((com.sun.grizzly.jruby.rack.DefaultRackApplicationFactory rescue nil) &&
207
- defined?(com::sun::grizzly::jruby::rack::DefaultRackApplicationFactory)) ||
206
+ (((com.sun.grizzly.jruby.rack.DefaultRackApplicationFactory rescue nil) &&
207
+ defined?(com::sun::grizzly::jruby::rack::DefaultRackApplicationFactory)) ||
208
208
  ((org.jruby.rack.DefaultRackApplicationFactory rescue nil) &&
209
- defined?(org::jruby::rack::DefaultRackApplicationFactory)))
209
+ defined?(org::jruby::rack::DefaultRackApplicationFactory)) ||
210
+ defined?(::GlassFish::Server))
210
211
  @dispatcher = :glassfish
211
212
  end
212
213
 
@@ -4,7 +4,7 @@ module NewRelic
4
4
  MAJOR = 2
5
5
  MINOR = 12
6
6
  TINY = 1
7
- BUILD = 'alpha' #'0' # Set to nil for a release, 'beta1', 'alpha', etc for prerelease builds
7
+ BUILD = nil #'0' # Set to nil for a release, 'beta1', 'alpha', etc for prerelease builds
8
8
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
9
9
  end
10
10
 
data/newrelic_rpm.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{newrelic_rpm}
8
- s.version = "2.12.1.alpha"
8
+ s.version = "2.12.1"
9
9
 
10
- s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bill Kayser"]
12
- s.date = %q{2010-05-17}
12
+ s.date = %q{2010-05-20}
13
13
  s.description = %q{New Relic RPM is a Ruby performance management system, developed by
14
14
  New Relic, Inc (http://www.newrelic.com). RPM provides you with deep
15
15
  information about the performance of your Ruby on Rails or Merb
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newrelic_rpm
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: true
4
+ prerelease: false
5
5
  segments:
6
6
  - 2
7
7
  - 12
8
8
  - 1
9
- - alpha
10
- version: 2.12.1.alpha
9
+ version: 2.12.1
11
10
  platform: ruby
12
11
  authors:
13
12
  - Bill Kayser
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-05-17 00:00:00 -07:00
17
+ date: 2010-05-20 00:00:00 -07:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
@@ -241,13 +240,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
241
240
  version: "0"
242
241
  required_rubygems_version: !ruby/object:Gem::Requirement
243
242
  requirements:
244
- - - ">"
243
+ - - ">="
245
244
  - !ruby/object:Gem::Version
246
245
  segments:
247
- - 1
248
- - 3
249
- - 1
250
- version: 1.3.1
246
+ - 0
247
+ version: "0"
251
248
  requirements: []
252
249
 
253
250
  rubyforge_project: