hoe 2.12.5 → 2.13.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.
- data.tar.gz.sig +0 -0
- data/History.txt +15 -1
- data/lib/hoe.rb +2 -2
- data/lib/hoe/publish.rb +11 -0
- data/lib/hoe/rake.rb +16 -0
- data/lib/hoe/rcov.rb +4 -0
- data/test/test_hoe.rb +14 -2
- metadata +8 -8
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
@@ -1,9 +1,23 @@
|
|
1
|
+
=== 2.13.0 / 2012-01-23
|
2
|
+
|
3
|
+
* 3 minor enhancements:
|
4
|
+
|
5
|
+
* Added :dcov task so you can easily check documentation coverage.
|
6
|
+
* Added Rake monkeypatch so that Task#clear will clear comments. (github)
|
7
|
+
* Added coverage sorting and added tmp/isolate to rcov flags
|
8
|
+
|
9
|
+
* 2 bug fixes:
|
10
|
+
|
11
|
+
* Quelled 1.9.3 warning. (erikh)
|
12
|
+
* rcov plugin should invoke isolate task if isolate plugin is being used.
|
13
|
+
|
1
14
|
=== 2.12.5 / 2011-12-19
|
2
15
|
|
3
|
-
*
|
16
|
+
* 3 minor enhancements:
|
4
17
|
|
5
18
|
* Make hoe noisy about missing plugins again.
|
6
19
|
* Normalize dev/runtime deps: dev + runtime = runtime.
|
20
|
+
* Add support for per-project .hoerc overrides. (ged)
|
7
21
|
|
8
22
|
=== 2.12.4 / 2011-11-28
|
9
23
|
|
data/lib/hoe.rb
CHANGED
@@ -68,7 +68,7 @@ class Hoe
|
|
68
68
|
include Rake::DSL if defined?(Rake::DSL)
|
69
69
|
|
70
70
|
# duh
|
71
|
-
VERSION = '2.
|
71
|
+
VERSION = '2.13.0'
|
72
72
|
|
73
73
|
@@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
|
74
74
|
:publish, :rcov, :gemcutter, :signing, :test]
|
@@ -397,7 +397,7 @@ class Hoe
|
|
397
397
|
end
|
398
398
|
|
399
399
|
runtime = extra_deps.map(&:first)
|
400
|
-
extra_dev_deps.reject! { |(name,
|
400
|
+
extra_dev_deps.reject! { |(name, _)| runtime.include? name }
|
401
401
|
|
402
402
|
extra_deps.each do |dep|
|
403
403
|
spec.add_dependency(*dep)
|
data/lib/hoe/publish.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require "hoe/rake"
|
2
|
+
|
1
3
|
##
|
2
4
|
# Publish plugin for hoe.
|
3
5
|
#
|
@@ -131,6 +133,15 @@ module Hoe::Publish
|
|
131
133
|
sh %q{ rdoc --ri -o ri . }
|
132
134
|
end
|
133
135
|
|
136
|
+
RDoc::Task.new(:dcov) do |rd|
|
137
|
+
rd.options << '-C'
|
138
|
+
rd.rdoc_files += spec.require_paths
|
139
|
+
rd.rdoc_files += spec.extra_rdoc_files
|
140
|
+
end
|
141
|
+
|
142
|
+
task(:redcov).clear # lame
|
143
|
+
task(:clobber_dcov).clear # lame
|
144
|
+
|
134
145
|
task :docs do
|
135
146
|
Dir.chdir local_rdoc_dir do
|
136
147
|
sh "chmod -R g+w ."
|
data/lib/hoe/rake.rb
CHANGED
@@ -11,6 +11,22 @@ module Rake
|
|
11
11
|
def comment
|
12
12
|
"%-#{$plugin_max}s # %s" % [plugin, old_comment] if old_comment
|
13
13
|
end
|
14
|
+
|
15
|
+
unless method_defined? :clear_comments then
|
16
|
+
alias :old_clear :clear
|
17
|
+
def clear
|
18
|
+
clear_prerequisites
|
19
|
+
clear_actions
|
20
|
+
clear_comments
|
21
|
+
self
|
22
|
+
end
|
23
|
+
|
24
|
+
def clear_comments
|
25
|
+
@full_comment = nil
|
26
|
+
@comment = nil
|
27
|
+
self
|
28
|
+
end
|
29
|
+
end
|
14
30
|
end
|
15
31
|
|
16
32
|
module TaskManager
|
data/lib/hoe/rcov.rb
CHANGED
@@ -11,6 +11,8 @@ module Hoe::RCov
|
|
11
11
|
|
12
12
|
def define_rcov_tasks
|
13
13
|
begin # take a whack at defining rcov tasks
|
14
|
+
Rake.application[:isolate].invoke if plugin? :isolate
|
15
|
+
|
14
16
|
require 'rcov/rcovtask'
|
15
17
|
|
16
18
|
Rcov::RcovTask.new do |t|
|
@@ -23,6 +25,8 @@ module Hoe::RCov
|
|
23
25
|
t.rcov_opts << "--no-color"
|
24
26
|
t.rcov_opts << "--save coverage.info"
|
25
27
|
t.rcov_opts << "-x ^/"
|
28
|
+
t.rcov_opts << "-x tmp/isolate"
|
29
|
+
t.rcov_opts << "--sort coverage --sort-reverse"
|
26
30
|
end
|
27
31
|
|
28
32
|
# this is for my emacs rcov overlay stuff on emacswiki.
|
data/test/test_hoe.rb
CHANGED
@@ -51,7 +51,12 @@ class TestHoe < MiniTest::Unit::TestCase
|
|
51
51
|
|
52
52
|
Dir.mkdir File.join(path, 'hoe')
|
53
53
|
open File.join(path, 'hoe', 'hoerc.rb'), 'w' do |io|
|
54
|
-
io.write
|
54
|
+
io.write <<-EOM
|
55
|
+
module Hoe::Hoerc
|
56
|
+
def initialize_hoerc; end
|
57
|
+
def define_hoerc_tasks; end
|
58
|
+
end
|
59
|
+
EOM
|
55
60
|
end
|
56
61
|
|
57
62
|
open File.join(path, '.hoerc'), 'w' do |io|
|
@@ -61,6 +66,7 @@ class TestHoe < MiniTest::Unit::TestCase
|
|
61
66
|
methods = hoe.methods.grep(/^initialize/).map { |s| s.to_s }
|
62
67
|
|
63
68
|
assert_includes methods, 'initialize_hoerc'
|
69
|
+
assert_includes Hoe.plugins, :hoerc
|
64
70
|
end
|
65
71
|
ensure
|
66
72
|
Hoe.instance_variable_get(:@loaded).delete :hoerc
|
@@ -110,7 +116,12 @@ class TestHoe < MiniTest::Unit::TestCase
|
|
110
116
|
|
111
117
|
Dir.mkdir File.join(path, 'hoe')
|
112
118
|
open File.join(path, 'hoe', 'hoerc.rb'), 'w' do |io|
|
113
|
-
io.write
|
119
|
+
io.write <<-EOM
|
120
|
+
module Hoe::Hoerc
|
121
|
+
def initialize_hoerc; @hoerc_plugin_initialized = true; end
|
122
|
+
def define_hoerc_tasks; end
|
123
|
+
end
|
124
|
+
EOM
|
114
125
|
end
|
115
126
|
|
116
127
|
open File.join(path, '.hoerc'), 'w' do |io|
|
@@ -120,6 +131,7 @@ class TestHoe < MiniTest::Unit::TestCase
|
|
120
131
|
methods = hoe.instance_variables.map(&:to_s)
|
121
132
|
assert_includes(methods, '@hoerc_plugin_initialized',
|
122
133
|
"Hoerc plugin wasn't initialized")
|
134
|
+
assert_includes Hoe.plugins, :hoerc
|
123
135
|
end
|
124
136
|
ensure
|
125
137
|
Hoe.instance_variable_get(:@loaded).delete :hoerc
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 59
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 2.
|
8
|
+
- 13
|
9
|
+
- 0
|
10
|
+
version: 2.13.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Davis
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
FBHgymkyj/AOSqKRIpXPhjC6
|
37
37
|
-----END CERTIFICATE-----
|
38
38
|
|
39
|
-
date:
|
39
|
+
date: 2012-01-24 00:00:00 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
@@ -61,11 +61,11 @@ dependencies:
|
|
61
61
|
requirements:
|
62
62
|
- - ~>
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
hash:
|
64
|
+
hash: 17
|
65
65
|
segments:
|
66
66
|
- 2
|
67
|
-
-
|
68
|
-
version: "2.
|
67
|
+
- 9
|
68
|
+
version: "2.9"
|
69
69
|
type: :development
|
70
70
|
version_requirements: *id002
|
71
71
|
- !ruby/object:Gem::Dependency
|
metadata.gz.sig
CHANGED
Binary file
|