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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.rdoc +12 -0
  3. data/Rakefile +4 -0
  4. data/lib/hoe/debugging.rb +14 -4
  5. metadata +17 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cfa052d4d8e419305a6280beb720a4eba27feb8a
4
- data.tar.gz: 2dc7714be6e94558807f4548e41792e14bffdb95
3
+ metadata.gz: f3934e0e164a722183698cc4860ab7d596bdad91
4
+ data.tar.gz: 04b21b2e1ea75b76ab71229f43563ba494525f8d
5
5
  SHA512:
6
- metadata.gz: ba1a0830b5e89b864b72b8c3fef07495f98b4393284df700a27f75043f497edc335a466a718f12b11d35e1cb4ada28d05c7e2a036f83d6dbea1e23101b206e4d
7
- data.tar.gz: 91ccfc32a42b5e315e95885ec657a3a0896f55075fc1dac2ed2105d4d4e2e3afbe818803b054149b7fc2c5226c5c6716ef5e7b61f855aae5c196540d7d49936b
6
+ metadata.gz: 638f74e040708f28a40c3e01480fa9b89bffac0d574159c187049715526ab45ecbc350fe8b3821aaefff420b8eece9f1021ccc9ff2d97f3ce47a9bde9518387f
7
+ data.tar.gz: 48dde34dd58efbb1d62e0e06981fb276da4c955a1d220f17907be3b3824bc15a87921584e8f61159abe6b68f109d9dc57c038fdde0550406bc5ee9059a652d1a
@@ -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!
@@ -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.3.0" #:nodoc:
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
- Tempfile.open "hoe_debugging_valgrind_suppression_log" do |logfile|
108
- hoe_debugging_run_valgrind "#{hoe_debugging_ruby} #{hoe_debugging_make_test_cmd} 2> #{logfile.path}", vopts
109
- hoe_debugging_valgrind_helper.save_suppressions_from logfile.path
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.3.0
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-01-22 00:00:00.000000000 Z
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.8
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