ruby_memcheck 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +0 -12
- data/lib/ruby_memcheck/rspec/rake_task.rb +1 -0
- data/lib/ruby_memcheck/test_helper.rb +3 -0
- data/lib/ruby_memcheck/test_task.rb +1 -0
- data/lib/ruby_memcheck/version.rb +1 -1
- data/suppressions/ruby.supp +0 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01e474f34ff993ba99b7c554d54bf850c49b8fc8f73fdec8702639373673a088
|
4
|
+
data.tar.gz: a1413639549cc0493adf456b8f38e6dc6463975dab3ef508459809f3b8307031
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ade6759ab00942eb4dc1ebd5f5e3578d316c49cdf69e979e42ec5d37a8215d139d9765bca26f519158764613d51ed58f01bed055ba70b17860e0d15d7b1c9a89
|
7
|
+
data.tar.gz: 46b92557fbf9dca12a6b3a9f5196d95d54d44b886f06d46beb7b6afe7768476decc921c0f893864e9417328453f45346a4bf91159df8fe3bd529091b19637b90
|
data/README.md
CHANGED
@@ -121,18 +121,6 @@ The easiest way to use this gem is to use it on your test suite (minitest or RSp
|
|
121
121
|
end
|
122
122
|
```
|
123
123
|
|
124
|
-
1. Add the following line to your `test_helper.rb` or `spec_helper.rb`:
|
125
|
-
|
126
|
-
```ruby
|
127
|
-
at_exit { GC.start }
|
128
|
-
```
|
129
|
-
|
130
|
-
This will run a major garbage collection cycle before the Ruby process shuts down. This will ensure that any remaining Ruby objects are collected which will prevent Valgrind from reporting false positives.
|
131
|
-
|
132
|
-
It is safest to add the line above at the very first line of `test_helper.rb` or `spec_helper.rb`.
|
133
|
-
|
134
|
-
- **For minitest:** It is important that the line above is added BEFORE the `require "minitest/autorun"` line.
|
135
|
-
|
136
124
|
1. You're ready to run your test suite with Valgrind using `rake test:valgrind` or `rake spec:valgrind`! Note that this will take a while to run because Valgrind will make Ruby significantly slower.
|
137
125
|
1. (Optional) If you find false positives in the output, you can create Valgrind suppression files. See the [`Suppression files`](#suppression-files) section for more details.
|
138
126
|
|
data/suppressions/ruby.supp
CHANGED
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.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Zhu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -143,6 +143,7 @@ files:
|
|
143
143
|
- lib/ruby_memcheck/rspec/rake_task.rb
|
144
144
|
- lib/ruby_memcheck/stack.rb
|
145
145
|
- lib/ruby_memcheck/suppression.rb
|
146
|
+
- lib/ruby_memcheck/test_helper.rb
|
146
147
|
- lib/ruby_memcheck/test_task.rb
|
147
148
|
- lib/ruby_memcheck/test_task_reporter.rb
|
148
149
|
- lib/ruby_memcheck/valgrind_error.rb
|