hoe-debugging 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +12 -0
- data/Rakefile +4 -0
- data/lib/hoe/debugging.rb +14 -4
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3934e0e164a722183698cc4860ab7d596bdad91
|
4
|
+
data.tar.gz: 04b21b2e1ea75b76ab71229f43563ba494525f8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 638f74e040708f28a40c3e01480fa9b89bffac0d574159c187049715526ab45ecbc350fe8b3821aaefff420b8eece9f1021ccc9ff2d97f3ce47a9bde9518387f
|
7
|
+
data.tar.gz: 48dde34dd58efbb1d62e0e06981fb276da4c955a1d220f17907be3b3824bc15a87921584e8f61159abe6b68f109d9dc57c038fdde0550406bc5ee9059a652d1a
|
data/CHANGELOG.rdoc
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
=== 1.4.0 / 2017-06-19
|
2
|
+
|
3
|
+
Features:
|
4
|
+
|
5
|
+
* Add explanatory messages to suppression file generation.
|
6
|
+
|
7
|
+
|
8
|
+
Bugfixes:
|
9
|
+
|
10
|
+
* Fixed generation of suppression files.
|
11
|
+
|
12
|
+
|
1
13
|
=== 1.3.0 / 2017-01-20
|
2
14
|
|
3
15
|
* The rake task now fails if valgrind detects any errors during the run.
|
data/Rakefile
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require "rubygems"
|
2
2
|
require "hoe"
|
3
|
+
require "concourse"
|
3
4
|
|
4
5
|
Hoe.plugin :git
|
5
6
|
Hoe.plugin :gemspec
|
@@ -22,6 +23,9 @@ Hoe.spec "hoe-debugging" do
|
|
22
23
|
extra_dev_deps << ["hoe-git", ">= 0"]
|
23
24
|
extra_dev_deps << ["rake-compiler", ">= 0"]
|
24
25
|
extra_dev_deps << ["rspec", "~> 3.5.0"]
|
26
|
+
extra_dev_deps << ["concourse", "~> 0.1"]
|
25
27
|
end
|
26
28
|
|
27
29
|
task "spec" => ["bundler:gemfile", "gem:spec"] # so the integration tests work
|
30
|
+
|
31
|
+
Concourse.new("hoe-debugging").create_tasks!
|
data/lib/hoe/debugging.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'rbconfig'
|
2
|
+
require 'tempfile'
|
2
3
|
|
3
4
|
class Hoe #:nodoc:
|
4
5
|
|
@@ -10,7 +11,7 @@ class Hoe #:nodoc:
|
|
10
11
|
# * <tt>test:valgrind:mem0</tt>
|
11
12
|
|
12
13
|
module Debugging
|
13
|
-
VERSION = "1.
|
14
|
+
VERSION = "1.4.0" #:nodoc:
|
14
15
|
|
15
16
|
##
|
16
17
|
# The exit code of valgrind when it detects an error.
|
@@ -104,9 +105,18 @@ class Hoe #:nodoc:
|
|
104
105
|
desc "Generate a valgrind suppression file for your test suite."
|
105
106
|
task "test:valgrind:suppression" do
|
106
107
|
vopts = valgrind_options + ["--gen-suppressions=all"]
|
107
|
-
|
108
|
-
|
109
|
-
|
108
|
+
generated_suppression_file = false
|
109
|
+
::Tempfile.open "hoe_debugging_valgrind_suppression_log" do |logfile|
|
110
|
+
begin
|
111
|
+
hoe_debugging_run_valgrind "#{hoe_debugging_ruby} #{hoe_debugging_make_test_cmd} 2> #{logfile.path}", vopts
|
112
|
+
rescue RuntimeError
|
113
|
+
suppfile = hoe_debugging_valgrind_helper.save_suppressions_from logfile.path
|
114
|
+
puts "NOTICE: saved suppressions to #{suppfile}"
|
115
|
+
generated_suppression_file = true
|
116
|
+
end
|
117
|
+
end
|
118
|
+
unless generated_suppression_file
|
119
|
+
puts "WARNING: no valgrind warnings detected, no suppressions file generated"
|
110
120
|
end
|
111
121
|
end
|
112
122
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoe-debugging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Barnette
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-06-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -109,6 +109,20 @@ dependencies:
|
|
109
109
|
- - "~>"
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: 3.5.0
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: concourse
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - "~>"
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0.1'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - "~>"
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0.1'
|
112
126
|
- !ruby/object:Gem::Dependency
|
113
127
|
name: rdoc
|
114
128
|
requirement: !ruby/object:Gem::Requirement
|
@@ -181,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
195
|
version: '0'
|
182
196
|
requirements: []
|
183
197
|
rubyforge_project:
|
184
|
-
rubygems_version: 2.6.
|
198
|
+
rubygems_version: 2.6.10
|
185
199
|
signing_key:
|
186
200
|
specification_version: 4
|
187
201
|
summary: A Hoe plugin to help you debug your C extensions
|