newrelic_rpm 3.3.4 → 3.3.4.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,3 +1,6 @@
1
+ v3.3.4.1
2
+ * Bug fix when rendering empty collection in Rails 3.1+
3
+
1
4
  v3.3.4
2
5
  * Rails 3 view instrumentation
3
6
 
@@ -43,6 +43,8 @@ module NewRelic
43
43
  def template_metric(identifier, options = {})
44
44
  if options[:file]
45
45
  "file"
46
+ elsif identifier.nil?
47
+ "(unknown)"
46
48
  elsif identifier.include? '/' # this is a filepath
47
49
  identifier.split('/')[-2..-1].join('/')
48
50
  else
@@ -148,7 +150,8 @@ DependencyDetection.defer do
148
150
  def render_with_newrelic(context, options)
149
151
  # This is needed for rails 3.2 compatibility
150
152
  @details = extract_details(options) if respond_to? :extract_details
151
- str = "View/#{NewRelic::Agent::Instrumentation::Rails3::ActionView::NewRelic.template_metric(determine_template(options).identifier, options)}/Rendering"
153
+ identifier = determine_template(options) ? determine_template(options).identifier : nil
154
+ str = "View/#{NewRelic::Agent::Instrumentation::Rails3::ActionView::NewRelic.template_metric(identifier, options)}/Rendering"
152
155
  trace_execution_scoped str do
153
156
  render_without_newrelic(context, options)
154
157
  end
@@ -163,7 +166,8 @@ DependencyDetection.defer do
163
166
 
164
167
  def render_with_newrelic(*args, &block)
165
168
  setup(*args, &block)
166
- str = "View/#{NewRelic::Agent::Instrumentation::Rails3::ActionView::NewRelic.template_metric(find_partial.identifier)}/Partial"
169
+ identifier = find_partial ? find_partial.identifier : nil
170
+ str = "View/#{NewRelic::Agent::Instrumentation::Rails3::ActionView::NewRelic.template_metric(identifier)}/Partial"
167
171
  trace_execution_scoped str do
168
172
  render_without_newrelic(*args, &block)
169
173
  end
@@ -41,6 +41,7 @@ module NewRelic
41
41
  if @sample.count_segments == @segment_limit
42
42
  NewRelic::Control.instance.log.debug("Segment limit of #{@segment_limit} reached, ceasing collection.")
43
43
  end
44
+ @current_segment
44
45
  end
45
46
  end
46
47
 
@@ -4,7 +4,7 @@ module NewRelic
4
4
  MAJOR = 3
5
5
  MINOR = 3
6
6
  TINY = 4
7
- BUILD = nil # Set to nil for a release, 'beta1', 'alpha', etc for prerelease builds
7
+ BUILD = 1 # 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 = "newrelic_rpm"
8
- s.version = "3.3.4"
8
+ s.version = "3.3.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bill Kayser", "Jon Guymon", "Justin George", "Darin Swanson"]
12
- s.date = "2012-04-19"
12
+ s.date = "2012-04-24"
13
13
  s.description = "New Relic is a performance management system, developed by New Relic,\nInc (http://www.newrelic.com). New Relic provides you with deep\ninformation about the performance of your web application as it runs\nin production. The New Relic Ruby Agent is dual-purposed as a either a\nGem or plugin, hosted on\nhttp://github.com/newrelic/rpm/\n"
14
14
  s.email = "support@newrelic.com"
15
15
  s.executables = ["newrelic_cmd", "mongrel_rpm", "newrelic"]
@@ -6,6 +6,14 @@ class NewRelic::Agent::TransationSampleBuilderTest < Test::Unit::TestCase
6
6
  @builder = NewRelic::Agent::TransactionSampleBuilder.new
7
7
  end
8
8
 
9
+ # if it doesn't the core app tests will break. Not strictly necessary but
10
+ # we'll enforce it with this test for now.
11
+ def test_trace_entry_returns_segment
12
+ segment = @builder.trace_entry("/Foo/Bar", Time.now)
13
+ assert segment, "Segment should not be nil"
14
+ assert segment.is_a?(NewRelic::TransactionSample::Segment), "Segment should not be a #{segment.class.name}"
15
+ end
16
+
9
17
  def test_build_sample
10
18
  build_segment("a") do
11
19
  build_segment("aa") do
metadata CHANGED
@@ -1,10 +1,16 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: newrelic_rpm
3
- version: !ruby/object:Gem::Version
4
- version: 3.3.4
3
+ version: !ruby/object:Gem::Version
4
+ hash: 117
5
5
  prerelease:
6
+ segments:
7
+ - 3
8
+ - 3
9
+ - 4
10
+ - 1
11
+ version: 3.3.4.1
6
12
  platform: ruby
7
- authors:
13
+ authors:
8
14
  - Bill Kayser
9
15
  - Jon Guymon
10
16
  - Justin George
@@ -12,66 +18,72 @@ authors:
12
18
  autorequire:
13
19
  bindir: bin
14
20
  cert_chain: []
15
- date: 2012-04-19 00:00:00.000000000 Z
16
- dependencies:
17
- - !ruby/object:Gem::Dependency
21
+
22
+ date: 2012-04-24 00:00:00 Z
23
+ dependencies:
24
+ - !ruby/object:Gem::Dependency
18
25
  name: jeweler
19
- requirement: &2157272320 !ruby/object:Gem::Requirement
26
+ prerelease: false
27
+ requirement: &id001 !ruby/object:Gem::Requirement
20
28
  none: false
21
- requirements:
22
- - - ! '>='
23
- - !ruby/object:Gem::Version
24
- version: '0'
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ hash: 3
33
+ segments:
34
+ - 0
35
+ version: "0"
25
36
  type: :development
26
- prerelease: false
27
- version_requirements: *2157272320
28
- - !ruby/object:Gem::Dependency
37
+ version_requirements: *id001
38
+ - !ruby/object:Gem::Dependency
29
39
  name: mocha
30
- requirement: &2157270960 !ruby/object:Gem::Requirement
40
+ prerelease: false
41
+ requirement: &id002 !ruby/object:Gem::Requirement
31
42
  none: false
32
- requirements:
33
- - - ! '>='
34
- - !ruby/object:Gem::Version
35
- version: '0'
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ hash: 3
47
+ segments:
48
+ - 0
49
+ version: "0"
36
50
  type: :development
37
- prerelease: false
38
- version_requirements: *2157270960
39
- - !ruby/object:Gem::Dependency
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
40
53
  name: shoulda
41
- requirement: &2157282800 !ruby/object:Gem::Requirement
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
42
56
  none: false
43
- requirements:
44
- - - ! '>='
45
- - !ruby/object:Gem::Version
46
- version: '0'
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ hash: 3
61
+ segments:
62
+ - 0
63
+ version: "0"
47
64
  type: :development
48
- prerelease: false
49
- version_requirements: *2157282800
50
- description: ! 'New Relic is a performance management system, developed by New Relic,
51
-
65
+ version_requirements: *id003
66
+ description: |
67
+ New Relic is a performance management system, developed by New Relic,
52
68
  Inc (http://www.newrelic.com). New Relic provides you with deep
53
-
54
69
  information about the performance of your web application as it runs
55
-
56
70
  in production. The New Relic Ruby Agent is dual-purposed as a either a
57
-
58
71
  Gem or plugin, hosted on
59
-
60
72
  http://github.com/newrelic/rpm/
61
73
 
62
- '
63
74
  email: support@newrelic.com
64
- executables:
75
+ executables:
65
76
  - newrelic_cmd
66
77
  - mongrel_rpm
67
78
  - newrelic
68
79
  extensions: []
69
- extra_rdoc_files:
80
+
81
+ extra_rdoc_files:
70
82
  - CHANGELOG
71
83
  - LICENSE
72
84
  - README.rdoc
73
85
  - newrelic.yml
74
- files:
86
+ files:
75
87
  - CHANGELOG
76
88
  - LICENSE
77
89
  - README.rdoc
@@ -337,38 +349,60 @@ files:
337
349
  - vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/web_transaction.rb
338
350
  homepage: http://www.github.com/newrelic/rpm
339
351
  licenses: []
340
- post_install_message: ! "\nPLEASE NOTE:\n\nDeveloper Mode is now a Rack middleware.\n\nDeveloper
341
- Mode is no longer available in Rails 2.1 and earlier.\nHowever, starting in version
342
- 2.12 you can use Developer Mode in any\nRack based framework, in addition to Rails.
343
- \ To install developer mode\nin a non-Rails application, just add NewRelic::Rack::DeveloperMode
344
- to\nyour middleware stack.\n\nIf you are using JRuby, we recommend using at least
345
- version 1.4 or \nlater because of issues with the implementation of the timeout
346
- library.\n\nRefer to the README.md file for more information.\n\nPlease see http://github.com/newrelic/rpm/blob/master/CHANGELOG\nfor
347
- a complete description of the features and enhancements available\nin version 3.3
348
- of the Ruby Agent.\n \n"
349
- rdoc_options:
352
+
353
+ post_install_message: |
354
+
355
+ PLEASE NOTE:
356
+
357
+ Developer Mode is now a Rack middleware.
358
+
359
+ Developer Mode is no longer available in Rails 2.1 and earlier.
360
+ However, starting in version 2.12 you can use Developer Mode in any
361
+ Rack based framework, in addition to Rails. To install developer mode
362
+ in a non-Rails application, just add NewRelic::Rack::DeveloperMode to
363
+ your middleware stack.
364
+
365
+ If you are using JRuby, we recommend using at least version 1.4 or
366
+ later because of issues with the implementation of the timeout library.
367
+
368
+ Refer to the README.md file for more information.
369
+
370
+ Please see http://github.com/newrelic/rpm/blob/master/CHANGELOG
371
+ for a complete description of the features and enhancements available
372
+ in version 3.3 of the Ruby Agent.
373
+
374
+
375
+ rdoc_options:
350
376
  - --line-numbers
351
377
  - --inline-source
352
378
  - --title
353
379
  - New Relic Ruby Agent
354
- require_paths:
380
+ require_paths:
355
381
  - lib
356
- required_ruby_version: !ruby/object:Gem::Requirement
382
+ required_ruby_version: !ruby/object:Gem::Requirement
357
383
  none: false
358
- requirements:
359
- - - ! '>='
360
- - !ruby/object:Gem::Version
361
- version: '0'
362
- required_rubygems_version: !ruby/object:Gem::Requirement
384
+ requirements:
385
+ - - ">="
386
+ - !ruby/object:Gem::Version
387
+ hash: 3
388
+ segments:
389
+ - 0
390
+ version: "0"
391
+ required_rubygems_version: !ruby/object:Gem::Requirement
363
392
  none: false
364
- requirements:
365
- - - ! '>='
366
- - !ruby/object:Gem::Version
367
- version: '0'
393
+ requirements:
394
+ - - ">="
395
+ - !ruby/object:Gem::Version
396
+ hash: 3
397
+ segments:
398
+ - 0
399
+ version: "0"
368
400
  requirements: []
401
+
369
402
  rubyforge_project:
370
- rubygems_version: 1.8.17
403
+ rubygems_version: 1.8.10
371
404
  signing_key:
372
405
  specification_version: 3
373
406
  summary: New Relic Ruby Agent
374
407
  test_files: []
408
+