newrelic_rpm 2.8.7 → 2.8.8

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/README CHANGED
@@ -76,7 +76,7 @@ Merb 1.0 or above
76
76
 
77
77
  === Rails Plug-In Installation
78
78
 
79
- script/plugin install http://newrelic.rubyforge.net/svn/newrelic_rpm
79
+ script/plugin install http://newrelic.rubyforge.org/svn/newrelic_rpm
80
80
 
81
81
  === Gem Installation
82
82
 
@@ -186,11 +186,15 @@ module NewRelic
186
186
  begin
187
187
  ip_address = Resolv.getaddress(host)
188
188
  rescue => e
189
- log.error "DNS Error: #{e}"
190
- raise NewRelic::Agent::IgnoreSilentlyException.new
189
+ log.debug "DNS Error caching with Resolv: #{e}"
190
+ begin
191
+ ip_address = IPSocket::getaddress host
192
+ rescue => e
193
+ log.warn "DNS Error looking up IP address: #{e}"
194
+ raise NewRelic::Agent::IgnoreSilentlyException.new
195
+ end
191
196
  end
192
197
  end
193
-
194
198
  log.info "Resolved #{host} to #{ip_address}"
195
199
  ip_address
196
200
  end
@@ -33,13 +33,12 @@ module NewRelic
33
33
  end
34
34
  end
35
35
  def check_for_webrick
36
- return unless defined?(WEBrick)
37
- @environment = :webrick
38
- if defined?(OPTIONS) && ::OPTIONS.respond_to?(:fetch)
36
+ # This will not succeed on rails 2.2 and later
37
+ if defined?(WEBrick) && defined?(OPTIONS) && ::OPTIONS.respond_to?(:fetch)
39
38
  # OPTIONS is set by script/server
39
+ @identifier = default_port unless @identifier
40
40
  @identifier = OPTIONS.fetch(:port)
41
41
  end
42
- @identifier = default_port unless @identifier
43
42
  end
44
43
  # this case covers starting by mongrel_rails
45
44
  def check_for_mongrel
@@ -3,7 +3,7 @@ module NewRelic
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 2
5
5
  MINOR = 8
6
- TINY = 7
6
+ TINY = 8
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  def self.changes
9
9
  puts "NewRelic RPM Plugin Version: #{NewRelic::VERSION::STRING}"
@@ -11,6 +11,8 @@ module NewRelic
11
11
  end
12
12
 
13
13
  CHANGELOG = <<EOF
14
+ 2009-03-27 version 2.8.8
15
+ * fix error with jruby on windows
14
16
  2009-03-20 version 2.8.7
15
17
  * fix for ssl connection hanging problems
16
18
  * fix problem recognizing mongrel in rails 2.3.2
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.8.7
4
+ version: 2.8.8
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-03-23 00:00:00 -07:00
12
+ date: 2009-03-31 00:00:00 -07:00
13
13
  default_executable: newrelic_cmd
14
14
  dependencies: []
15
15