hoe-debugging 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/CHANGELOG.rdoc +8 -0
  2. data/lib/hoe/debugging.rb +30 -22
  3. metadata +7 -7
@@ -1,3 +1,11 @@
1
+ === 1.0.4 / 2012-06-19
2
+
3
+ * Adding support for RSpec.
4
+
5
+ === 1.0.3 / 2012-02-06
6
+
7
+ * Fixing compatibility with latter-day versions of rake. #1
8
+
1
9
  === 1.0.2 / 2011-11-13
2
10
 
3
11
  * Fixing reference to ::RUBY with rbconfig-based construction of the ruby interpreter path.
@@ -10,7 +10,7 @@ class Hoe #:nodoc:
10
10
  # * <tt>test:valgrind:mem0</tt>
11
11
 
12
12
  module Debugging
13
- VERSION = "1.0.3" #:nodoc:
13
+ VERSION = "1.0.4" #:nodoc:
14
14
 
15
15
  ##
16
16
  # Optional: Used to add flags to GDB. [default: <tt>[]</tt>]
@@ -38,31 +38,39 @@ class Hoe #:nodoc:
38
38
  @ruby ||= File.join(Config::CONFIG["bindir"], (Config::CONFIG["RUBY_INSTALL_NAME"] + Config::CONFIG["EXEEXT"]))
39
39
  end
40
40
 
41
+ def hoe_debugging_make_test_cmd
42
+ cmd = []
43
+ if File.directory? "spec"
44
+ cmd << "-S rspec"
45
+ else
46
+ cmd << make_test_cmd
47
+ end
48
+ cmd.join(' ')
49
+ end
50
+
41
51
  def define_debugging_tasks #:nodoc:
42
- if File.directory? "test" then
43
- desc "Run the test suite under GDB."
44
- task "test:gdb" do
45
- sh "gdb #{gdb_options.join ' '} --args #{hoe_debugging_ruby} #{make_test_cmd}"
46
- end
52
+ desc "Run the test suite under GDB."
53
+ task "test:gdb" do
54
+ sh "gdb #{gdb_options.join ' '} --args #{hoe_debugging_ruby} #{hoe_debugging_make_test_cmd}"
55
+ end
47
56
 
48
- desc "Run the test suite under Valgrind."
49
- task "test:valgrind" do
50
- sh "valgrind #{valgrind_options.join ' '} #{hoe_debugging_ruby} #{make_test_cmd}"
51
- end
57
+ desc "Run the test suite under Valgrind."
58
+ task "test:valgrind" do
59
+ sh "valgrind #{valgrind_options.join ' '} #{hoe_debugging_ruby} #{hoe_debugging_make_test_cmd}"
60
+ end
52
61
 
53
- desc "Run the test suite under Valgrind with memory-fill."
54
- task "test:valgrind:mem" do
55
- sh "valgrind #{valgrind_options.join ' '} " +
56
- "--freelist-vol=100000000 --malloc-fill=6D --free-fill=66 " +
57
- "#{hoe_debugging_ruby} #{make_test_cmd}"
58
- end
62
+ desc "Run the test suite under Valgrind with memory-fill."
63
+ task "test:valgrind:mem" do
64
+ sh "valgrind #{valgrind_options.join ' '} " +
65
+ "--freelist-vol=100000000 --malloc-fill=6D --free-fill=66 " +
66
+ "#{hoe_debugging_ruby} #{hoe_debugging_make_test_cmd}"
67
+ end
59
68
 
60
- desc "Run the test suite under Valgrind with memory-zero."
61
- task "test:valgrind:mem0" do
62
- sh "valgrind #{valgrind_options.join ' '} " +
63
- "--freelist-vol=100000000 --malloc-fill=00 --free-fill=00 " +
64
- "#{hoe_debugging_ruby} #{make_test_cmd}"
65
- end
69
+ desc "Run the test suite under Valgrind with memory-zero."
70
+ task "test:valgrind:mem0" do
71
+ sh "valgrind #{valgrind_options.join ' '} " +
72
+ "--freelist-vol=100000000 --malloc-fill=00 --free-fill=00 " +
73
+ "#{hoe_debugging_ruby} #{hoe_debugging_make_test_cmd}"
66
74
  end
67
75
  end
68
76
  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.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-06 00:00:00.000000000 Z
12
+ date: 2012-06-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: hoe
16
- requirement: &18083060 !ruby/object:Gem::Requirement
16
+ requirement: &15683000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.2.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *18083060
24
+ version_requirements: *15683000
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rdoc
27
- requirement: &18082580 !ruby/object:Gem::Requirement
27
+ requirement: &15682580 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '3.10'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *18082580
35
+ version_requirements: *15682580
36
36
  description: ! 'A Hoe plugin to help you debug your codes. This plugin provides
37
37
 
38
38
  <tt>test:gdb</tt> and <tt>test:valgrind</tt> tasks (with a few
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  version: '0'
88
88
  requirements: []
89
89
  rubyforge_project: hoe-debugging
90
- rubygems_version: 1.8.10
90
+ rubygems_version: 1.8.15
91
91
  signing_key:
92
92
  specification_version: 3
93
93
  summary: A Hoe plugin to help you debug your codes