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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b291cf3e5902d8fa8dbf9c03754ba1358d6a4ba
4
- data.tar.gz: 12fd3b54abcbe8f42dfa4a15f3f5415633e0cfa5
3
+ metadata.gz: 47cf4894ee829e2a907a02048cdfb2e86864db94
4
+ data.tar.gz: 2091fb2447fef00e3ae581698328d43f190094d7
5
5
  SHA512:
6
- metadata.gz: a23de732cf89b9ca75ba7ada9a154eff9416aed114550c89c8422d5f1189fd0c5fd8f0851da9cebe2f120daa3d3354e13bc8afc1a47b5088c275b4bfd1b56c2e
7
- data.tar.gz: 034cd20ec28754fd2df81ac73a84458dd1bb96a08c9a2b8253583dc9ff6e910e6cd89db1efe41dbe6d1f0f4148be550d8691183096c5896e4433b709d96d4544
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 => private,
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 => private,
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>).)'
@@ -30,6 +30,8 @@ module NewRelic
30
30
  hash[k] = normalize_object(v)
31
31
  end
32
32
  hash
33
+ when Rational
34
+ object.to_f
33
35
  else
34
36
  object
35
37
  end
@@ -79,4 +81,4 @@ module NewRelic
79
81
  end
80
82
  end
81
83
  end
82
- end
84
+ end
@@ -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
@@ -12,7 +12,7 @@ module NewRelic
12
12
 
13
13
  MAJOR = 3
14
14
  MINOR = 13
15
- TINY = 1
15
+ TINY = 2
16
16
 
17
17
  begin
18
18
  require File.join(File.dirname(__FILE__), 'build')
@@ -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.1.300
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-11 00:00:00.000000000 Z
14
+ date: 2015-09-23 00:00:00.000000000 Z
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: rake