newrelic_rpm 2.12.2.beta2 → 2.12.2

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,4 +1,5 @@
1
1
  v2.12.2
2
+ * fix for regression in Rails 2.1 inline rendering
2
3
  * workaround bug found in some rubies that caused a segv and/or NoMemoryError
3
4
  when deflating content for upload
4
5
  * avoid creating connection thread in unicorn/passenger spawners
@@ -14,7 +14,7 @@ if defined? ActionController
14
14
  end
15
15
  # this is for template rendering, as opposed to partial rendering.
16
16
  ActionView::Template.class_eval do
17
- add_method_tracer :render, 'View/#{path_without_extension[%r{^(/.*/)?(.*)$},2]}.#{@view.template_format}.#{extension}/Rendering'
17
+ add_method_tracer :render, 'View/#{(path_without_extension || @view.controller.newrelic_metric_path)[%r{^(/.*/)?(.*)$},2]}.#{@view.template_format}.#{extension}/Rendering'
18
18
  end
19
19
 
20
20
  when /^2\./ # Rails 2.2-2.*
@@ -4,7 +4,7 @@ module NewRelic
4
4
  MAJOR = 2
5
5
  MINOR = 12
6
6
  TINY = 2
7
- BUILD = 'beta2' #'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
 
@@ -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.2.beta2"
8
+ s.version = "2.12.2"
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-06-07}
12
+ s.date = %q{2010-06-08}
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
@@ -51,7 +51,13 @@ class AgentControllerTest < ActionController::TestCase
51
51
  assert_equal 1, engine.get_stats_no_scope('Mongrel/Queue Length').call_count
52
52
  assert_equal 15, engine.get_stats_no_scope('Mongrel/Queue Length').total_call_time
53
53
  assert_equal 0, engine.get_stats_no_scope('WebFrontend/Mongrel/Average Queue Time').call_count
54
-
54
+ end
55
+
56
+ def test_render_inline
57
+ engine.clear_stats
58
+ get :action_inline
59
+ assert_equal 'foofah', @response.body
60
+ compare_metrics %w[Controller/new_relic/agent/agent_test/action_inline], engine.metrics.grep(/^Controller/)
55
61
  end
56
62
  def test_metric__ignore
57
63
  engine.clear_stats
@@ -23,6 +23,10 @@ class NewRelic::Agent::AgentTestController < NewRelic::Agent::SuperclassControll
23
23
  def _filter_parameters(params)
24
24
  filter_parameters params
25
25
  end
26
+ def action_inline
27
+ render(:inline => "<%= 'foo' %>fah")
28
+ end
29
+
26
30
  def action_to_render
27
31
  render :text => params.inspect
28
32
  end
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
  - 2
9
- - beta2
10
- version: 2.12.2.beta2
9
+ version: 2.12.2
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-06-07 00:00:00 -07:00
17
+ date: 2010-06-08 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: