newrelic_rpm 3.13.1.300 → 3.13.2.302
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +8 -0
- data/lib/new_relic/agent/configuration/default_source.rb +2 -2
- data/lib/new_relic/agent/encoding_normalizer.rb +3 -1
- data/lib/new_relic/agent/system_info.rb +3 -3
- data/lib/new_relic/version.rb +1 -1
- data/newrelic_rpm.gemspec +1 -1
- data/test/new_relic/agent/encoding_normalizer_test.rb +5 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47cf4894ee829e2a907a02048cdfb2e86864db94
|
4
|
+
data.tar.gz: 2091fb2447fef00e3ae581698328d43f190094d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 165e4c5b83e06fe422b0df838c342012ce681fb01fecdd7bafa65d5627130fd1d3ddd72a3bfa13e96cd6fdf11f697677f6145588fb910724c48084e049cfe22a
|
7
|
+
data.tar.gz: b0eb8ed8caa69e608e9ae6f2b7246e2c9783803b866c70115f1df8afb6f9c3dc31d86921933a4712e9884b7acbcf960f0b7fcbf4613739b761e85c748d0ad091
|
data/CHANGELOG
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# New Relic Ruby Agent Release Notes #
|
2
2
|
|
3
|
+
## v3.13.2 ##
|
4
|
+
|
5
|
+
* Don't fail to send data when using 'mathn' library
|
6
|
+
|
7
|
+
Version 3.12.1 introduced a bug with applications using the 'mathn' library
|
8
|
+
that would prevent the agent from sending data to New Relic. This has been
|
9
|
+
fixed.
|
10
|
+
|
3
11
|
## v3.13.1 ##
|
4
12
|
|
5
13
|
* Don't use a pager when running `git log` command
|
@@ -994,14 +994,14 @@ module NewRelic
|
|
994
994
|
},
|
995
995
|
:'browser_monitoring.loader' => {
|
996
996
|
:default => DefaultSource.browser_monitoring_loader,
|
997
|
-
:public =>
|
997
|
+
:public => false,
|
998
998
|
:type => String,
|
999
999
|
:allowed_from_server => true,
|
1000
1000
|
:description => 'Type of JavaScript agent loader to use for browser monitoring instrumentation.'
|
1001
1001
|
},
|
1002
1002
|
:'browser_monitoring.loader_version' => {
|
1003
1003
|
:default => '',
|
1004
|
-
:public =>
|
1004
|
+
:public => false,
|
1005
1005
|
:type => String,
|
1006
1006
|
:allowed_from_server => true,
|
1007
1007
|
:description => 'Version of JavaScript agent loader (returned from the New Relic <a href="/docs/apm/new-relic-apm/getting-started/glossary#collector">collector</a>).)'
|
@@ -231,12 +231,12 @@ module NewRelic
|
|
231
231
|
|
232
232
|
def self.ram_in_mib
|
233
233
|
if darwin?
|
234
|
-
sysctl_value('hw.memsize').to_i / (1024 ** 2)
|
234
|
+
(sysctl_value('hw.memsize').to_i / (1024 ** 2)).to_i
|
235
235
|
elsif linux?
|
236
236
|
meminfo = proc_try_read('/proc/meminfo')
|
237
237
|
parse_linux_meminfo_in_mib(meminfo)
|
238
238
|
elsif bsd?
|
239
|
-
sysctl_value('hw.realmem').to_i / (1024 ** 2)
|
239
|
+
(sysctl_value('hw.realmem').to_i / (1024 ** 2)).to_i
|
240
240
|
else
|
241
241
|
::NewRelic::Agent.logger.debug("Unable to determine ram_in_mib for host os: #{ruby_os_identifier}")
|
242
242
|
nil
|
@@ -245,7 +245,7 @@ module NewRelic
|
|
245
245
|
|
246
246
|
def self.parse_linux_meminfo_in_mib(meminfo)
|
247
247
|
if mem_total = meminfo[/MemTotal:\s*(\d*)\skB/,1]
|
248
|
-
mem_total.to_i / 1024
|
248
|
+
(mem_total.to_i / 1024).to_i
|
249
249
|
else
|
250
250
|
::NewRelic::Agent.logger.debug("Failed to parse MemTotal from /proc/meminfo: #{meminfo}")
|
251
251
|
nil
|
data/lib/new_relic/version.rb
CHANGED
data/newrelic_rpm.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.version = NewRelic::VERSION::STRING
|
11
11
|
s.required_ruby_version = '>= 1.8.7'
|
12
12
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
13
|
-
s.authors = [ "Tim Krajcar", "Matthew Wear", "Katherine Wu" ]
|
13
|
+
s.authors = [ "Tim Krajcar", "Matthew Wear", "Katherine Wu", "Karl Sandwich" ]
|
14
14
|
s.date = Time.now.strftime('%Y-%m-%d')
|
15
15
|
s.licenses = ['New Relic', 'MIT', 'Ruby']
|
16
16
|
s.description = <<-EOS
|
@@ -18,6 +18,11 @@ class EncodingNormalizerTest < Minitest::Test
|
|
18
18
|
assert_equal({'key' => 'value'}, result)
|
19
19
|
end
|
20
20
|
|
21
|
+
def test_normalize_object_converts_rationals_to_floats
|
22
|
+
result = EncodingNormalizer.normalize_object({:key => Rational(3,2)})
|
23
|
+
assert_equal({'key' => 1.5}, result)
|
24
|
+
end
|
25
|
+
|
21
26
|
if NewRelic::LanguageSupport.supports_string_encodings?
|
22
27
|
def test_normalize_string_returns_input_if_correctly_encoded_utf8
|
23
28
|
string = "i want a pony"
|
metadata
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: newrelic_rpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.13.
|
4
|
+
version: 3.13.2.302
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Krajcar
|
8
8
|
- Matthew Wear
|
9
9
|
- Katherine Wu
|
10
|
+
- Karl Sandwich
|
10
11
|
autorequire:
|
11
12
|
bindir: bin
|
12
13
|
cert_chain: []
|
13
|
-
date: 2015-09-
|
14
|
+
date: 2015-09-23 00:00:00.000000000 Z
|
14
15
|
dependencies:
|
15
16
|
- !ruby/object:Gem::Dependency
|
16
17
|
name: rake
|