ruby_memcheck 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 84b08d7b0d1f0f1a254be4d2634c44055c21c415ccfa12d69c9bef56763291bf
4
- data.tar.gz: b73189e2d75124b4117565ba97a2fadf1a1b8ef9963bf6d8528fb04bd19c0b33
3
+ metadata.gz: 2ec5f6d45b73b374080c51c74cf3e771ee605e3b32750c61f6a48ecc4a8ce794
4
+ data.tar.gz: 4202115ba33f703884c6e8574ceacc20900c2fc530c0e54fb69557b29378cef1
5
5
  SHA512:
6
- metadata.gz: 682b181ca12116b0383a317304e9f931b4ccc4459259ef87b5d7823641ae73ec1077954e0a80b704ee20d525d39f01ea12ded58e24e39c48e69a065e79811873
7
- data.tar.gz: 82ea0151eebe57bcc43cc7316ba93ad6bb8af5413c311ffd48d78ebf105091774a1c28364a8acef7b4dafcfb4cc21fa4a542f43457bda44a69b8f63b9294f177
6
+ metadata.gz: 6ab4a3e446597018407ba9cc6ffe0558e9da050f25c2cbef0ab070bb52d412941f71c12e93955d66e9b6e79340178ff4faa9dcf4017bdfcef8c339493ec547ed
7
+ data.tar.gz: 6a25b3a25a8e0d093fca6f87a0f5bb508ee3f54fb9d853935ca6bd6e036e9635faff5e4e0fbf47eb3784a79f6bdc0ec6751691fedc3c3162562599abb23e7e9a
@@ -76,7 +76,9 @@ module RubyMemcheck
76
76
  end
77
77
 
78
78
  def frame_in_ruby?(frame)
79
- frame.obj == ruby
79
+ frame.obj == ruby ||
80
+ # Hack to fix Ruby built with --enabled-shared
81
+ File.basename(frame.obj) == "libruby.so.#{RUBY_VERSION}"
80
82
  end
81
83
 
82
84
  def frame_in_binary?(frame)
@@ -38,8 +38,8 @@ module RubyMemcheck
38
38
  @errors = []
39
39
 
40
40
  xml = Nokogiri::XML(configuration.valgrind_xml_file.read)
41
- xml.xpath("/valgrindoutput/error").each do |error|
42
- error = ValgrindError.new(configuration, error)
41
+ xml.xpath("/valgrindoutput/error").each do |error_xml|
42
+ error = ValgrindError.new(configuration, error_xml)
43
43
  next if error.skip?
44
44
  @errors << error
45
45
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyMemcheck
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_memcheck
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Zhu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-15 00:00:00.000000000 Z
11
+ date: 2021-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri