ruby_memcheck 1.3.1 → 1.3.2

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: d7a2965241d52c1a38ece5788f2e029a6424fbd34f0b18ffc3dcc35253a45377
4
- data.tar.gz: 4949a4a3357647895f61bc85353342a6257b329d970f854ca7105fd85843b4b8
3
+ metadata.gz: 43086325741d10b10981f494f7351aa5877d413d5f14f808ed9e3b574e0392a5
4
+ data.tar.gz: c2894cc1143bc4383b7503ac4b4a2862250560a97b36c2e9f7c3ef38554e56e4
5
5
  SHA512:
6
- metadata.gz: bdc2918a24c74f5b238bc67a86d071006abc24df8a8ac613c5d555ad8de8c27a147c63bb85f42cfa6c13f1a14c3599c61329e93d324da741f5373d562d602a3a
7
- data.tar.gz: b2f8a27e88f0ab7347429eda0fc484ffba7eecf01b29e7411a6d1cdafb7fac31dfed10d826ae5259b089102cd984c93f94196e346851b8b0aab2842dc02b7821
6
+ metadata.gz: 82769e6405cd5f79a5b2d04611c4d37bcac5f76b665541b1448c7d78eb86f890f96291703786aaf47a6026b70ce577e64142913642fd320f631701311b852c61
7
+ data.tar.gz: 64470c0bc4683e23e4609372a765f95ad12feb65801924b88aa5f638d1924bc56567c16d81eb541416324186d8866a40b4bd32645e7d3591c2e3a3fbb617bc92
data/README.md CHANGED
@@ -188,6 +188,9 @@ Let's celebrate wins from this gem! If this gem was useful for you, please share
188
188
  - [`yarp`](https://github.com/shopify/yarp):
189
189
  - Found 6 memory leaks and 1 memory error: [#292](https://github.com/Shopify/yarp/pull/304), [#292](https://github.com/Shopify/yarp/pull/292)
190
190
  - Running on CI: [#293](https://github.com/Shopify/yarp/pull/293)
191
+ - [`libxml2`](https://gitlab.gnome.org/GNOME/libxml2):
192
+ - Found 1 memory leak: [memory leak from \`xmlSchemaValidateStream\` in v2.11.x (#530)](https://gitlab.gnome.org/GNOME/libxml2/-/issues/530)
193
+ - Running in Nokogiri's CI pipeline: [#2868](https://github.com/sparklemotion/nokogiri/pull/2868)
191
194
 
192
195
  ## License
193
196
 
@@ -31,7 +31,10 @@ module RubyMemcheck
31
31
  @errors = []
32
32
 
33
33
  xml_files.each do |file|
34
- Nokogiri::XML::Reader(File.open(file)).each do |node|
34
+ reader = Nokogiri::XML::Reader(File.open(file)) do |config| # rubocop:disable Style/SymbolProc
35
+ config.huge
36
+ end
37
+ reader.each do |node|
35
38
  next unless node.name == "error" && node.node_type == Nokogiri::XML::Reader::TYPE_ELEMENT
36
39
 
37
40
  error_xml = Nokogiri::XML::Document.parse(node.outer_xml).root
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyMemcheck
4
- VERSION = "1.3.1"
4
+ VERSION = "1.3.2"
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: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Zhu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-05 00:00:00.000000000 Z
11
+ date: 2023-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri