hoe-debugging 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +4 -0
- data/lib/hoe/debugging.rb +12 -5
- metadata +55 -54
data/CHANGELOG.rdoc
CHANGED
data/lib/hoe/debugging.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'rbconfig'
|
2
|
+
|
1
3
|
class Hoe #:nodoc:
|
2
4
|
|
3
5
|
# Whee, stuff to help when your codes are b0rked. Tasks provided:
|
@@ -8,7 +10,7 @@ class Hoe #:nodoc:
|
|
8
10
|
# * <tt>test:valgrind:mem0</tt>
|
9
11
|
|
10
12
|
module Debugging
|
11
|
-
VERSION = "1.0.
|
13
|
+
VERSION = "1.0.2" #:nodoc:
|
12
14
|
|
13
15
|
##
|
14
16
|
# Optional: Used to add flags to GDB. [default: <tt>[]</tt>]
|
@@ -31,30 +33,35 @@ class Hoe #:nodoc:
|
|
31
33
|
"--undef-value-errors=no"]
|
32
34
|
end
|
33
35
|
|
36
|
+
def ruby
|
37
|
+
# http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/151376
|
38
|
+
@ruby ||= File.join(Config::CONFIG["bindir"], (Config::CONFIG["RUBY_INSTALL_NAME"] + Config::CONFIG["EXEEXT"]))
|
39
|
+
end
|
40
|
+
|
34
41
|
def define_debugging_tasks #:nodoc:
|
35
42
|
if File.directory? "test" then
|
36
43
|
desc "Run the test suite under GDB."
|
37
44
|
task "test:gdb" do
|
38
|
-
sh "gdb #{gdb_options.join ' '} --args #{
|
45
|
+
sh "gdb #{gdb_options.join ' '} --args #{ruby} #{make_test_cmd}"
|
39
46
|
end
|
40
47
|
|
41
48
|
desc "Run the test suite under Valgrind."
|
42
49
|
task "test:valgrind" do
|
43
|
-
sh "valgrind #{valgrind_options.join ' '} #{
|
50
|
+
sh "valgrind #{valgrind_options.join ' '} #{ruby} #{make_test_cmd}"
|
44
51
|
end
|
45
52
|
|
46
53
|
desc "Run the test suite under Valgrind with memory-fill."
|
47
54
|
task "test:valgrind:mem" do
|
48
55
|
sh "valgrind #{valgrind_options.join ' '} " +
|
49
56
|
"--freelist-vol=100000000 --malloc-fill=6D --free-fill=66 " +
|
50
|
-
"#{
|
57
|
+
"#{ruby} #{make_test_cmd}"
|
51
58
|
end
|
52
59
|
|
53
60
|
desc "Run the test suite under Valgrind with memory-zero."
|
54
61
|
task "test:valgrind:mem0" do
|
55
62
|
sh "valgrind #{valgrind_options.join ' '} " +
|
56
63
|
"--freelist-vol=100000000 --malloc-fill=00 --free-fill=00 " +
|
57
|
-
"#{
|
64
|
+
"#{ruby} #{make_test_cmd}"
|
58
65
|
end
|
59
66
|
end
|
60
67
|
end
|
metadata
CHANGED
@@ -1,93 +1,94 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoe-debugging
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.2
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
|
-
authors:
|
7
|
+
authors:
|
7
8
|
- John Barnette
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-11-13 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: hoe
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
- !ruby/object:Gem::Version
|
16
|
+
requirement: &12499180 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
23
21
|
version: 2.2.0
|
24
|
-
|
25
|
-
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *12499180
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
26
|
name: hoe
|
27
|
+
requirement: &12498760 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '2.12'
|
27
33
|
type: :development
|
28
|
-
|
29
|
-
version_requirements:
|
30
|
-
|
31
|
-
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 2.3.1
|
34
|
-
version:
|
35
|
-
description: |-
|
36
|
-
A Hoe plugin to help you debug your codes. This plugin provides
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *12498760
|
36
|
+
description: ! 'A Hoe plugin to help you debug your codes. This plugin provides
|
37
|
+
|
37
38
|
<tt>test:gdb</tt> and <tt>test:valgrind</tt> tasks (with a few
|
39
|
+
|
38
40
|
variants).
|
39
|
-
|
41
|
+
|
42
|
+
|
40
43
|
See the Hoe::Debugging module for a few configuration options.
|
41
|
-
|
44
|
+
|
45
|
+
|
42
46
|
This plugin expects you to have <tt>gdb</tt> and <tt>valgrind</tt>
|
47
|
+
|
43
48
|
available in your <tt>PATH</tt>.
|
44
|
-
|
49
|
+
|
50
|
+
|
45
51
|
These tasks were extracted from nokogiri / johnson and originally written by
|
46
|
-
|
47
|
-
|
52
|
+
|
53
|
+
ruby legend, {Mike Dalessio}[http://mike.daless.io].'
|
54
|
+
email:
|
48
55
|
- jbarnette@rubyforge.org
|
49
56
|
executables: []
|
50
|
-
|
51
57
|
extensions: []
|
52
|
-
|
53
|
-
extra_rdoc_files:
|
58
|
+
extra_rdoc_files:
|
54
59
|
- Manifest.txt
|
55
60
|
- CHANGELOG.rdoc
|
56
61
|
- README.rdoc
|
57
|
-
files:
|
62
|
+
files:
|
58
63
|
- CHANGELOG.rdoc
|
59
64
|
- Manifest.txt
|
60
65
|
- README.rdoc
|
61
66
|
- Rakefile
|
62
67
|
- lib/hoe/debugging.rb
|
63
|
-
has_rdoc: true
|
64
68
|
homepage: http://github.com/jbarnette/hoe-debugging
|
65
69
|
licenses: []
|
66
|
-
|
67
70
|
post_install_message:
|
68
|
-
rdoc_options:
|
71
|
+
rdoc_options:
|
69
72
|
- --main
|
70
73
|
- README.rdoc
|
71
|
-
require_paths:
|
74
|
+
require_paths:
|
72
75
|
- lib
|
73
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
76
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
77
|
+
none: false
|
78
|
+
requirements:
|
79
|
+
- - ! '>='
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
85
88
|
requirements: []
|
86
|
-
|
87
89
|
rubyforge_project: hoe-debugging
|
88
|
-
rubygems_version: 1.
|
90
|
+
rubygems_version: 1.8.10
|
89
91
|
signing_key:
|
90
92
|
specification_version: 3
|
91
93
|
summary: A Hoe plugin to help you debug your codes
|
92
94
|
test_files: []
|
93
|
-
|