hoe 1.1.0 → 1.1.1
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/lib/hoe.rb +17 -9
- data/test/test_hoe.rb +1 -1
- metadata +2 -2
data/lib/hoe.rb
CHANGED
@@ -79,7 +79,7 @@ require 'rbconfig'
|
|
79
79
|
# * FILTER - Used to add flags to test_unit (e.g., -n test_borked)
|
80
80
|
|
81
81
|
class Hoe
|
82
|
-
VERSION = '1.1.
|
82
|
+
VERSION = '1.1.1'
|
83
83
|
|
84
84
|
rubyprefix = Config::CONFIG['prefix']
|
85
85
|
sitelibdir = Config::CONFIG['sitelibdir']
|
@@ -171,7 +171,8 @@ class Hoe
|
|
171
171
|
s.executables = s.files.grep(/bin/) { |f| File.basename(f) }
|
172
172
|
|
173
173
|
s.bindir = "bin"
|
174
|
-
|
174
|
+
dirs = Dir['{lib,test}']
|
175
|
+
s.require_paths = dirs unless dirs.empty?
|
175
176
|
s.has_rdoc = true
|
176
177
|
s.test_suite_file = "test/test_all.rb" if test ?f, "test/test_all.rb"
|
177
178
|
end
|
@@ -307,12 +308,18 @@ class Hoe
|
|
307
308
|
desc 'Generate email announcement file.'
|
308
309
|
task :email do
|
309
310
|
require 'rubyforge'
|
310
|
-
subject, body = announcement
|
311
|
+
subject, title, body, urls = announcement
|
311
312
|
|
312
313
|
File.open("email.txt", "w") do |mail|
|
313
|
-
mail.puts subject
|
314
|
+
mail.puts "Subject: [ANN] #{subject}"
|
315
|
+
mail.puts
|
316
|
+
mail.puts title
|
317
|
+
mail.puts
|
318
|
+
mail.puts urls
|
314
319
|
mail.puts
|
315
320
|
mail.puts body
|
321
|
+
mail.puts
|
322
|
+
mail.puts urls
|
316
323
|
end
|
317
324
|
puts "Created email.txt"
|
318
325
|
end
|
@@ -320,11 +327,11 @@ class Hoe
|
|
320
327
|
desc 'Post announcement to rubyforge.'
|
321
328
|
task :post_news do
|
322
329
|
require 'rubyforge'
|
323
|
-
subject, body = announcement
|
330
|
+
subject, title, body, urls = announcement
|
324
331
|
|
325
332
|
rf = RubyForge.new
|
326
333
|
rf.login
|
327
|
-
rf.post_news(rubyforge_name, subject, body)
|
334
|
+
rf.post_news(rubyforge_name, subject, "#{title}\n\n#{body}")
|
328
335
|
puts "Posted to rubyforge"
|
329
336
|
end
|
330
337
|
|
@@ -344,10 +351,11 @@ class Hoe
|
|
344
351
|
def announcement
|
345
352
|
urls = " " + Array(url).map {|s| s.strip}.join("\n ")
|
346
353
|
|
347
|
-
subject = "
|
348
|
-
|
354
|
+
subject = "#{name} #{version} Released"
|
355
|
+
title = "#{name} version #{version} has been released!"
|
356
|
+
body = "#{description}\n\nChanges:\n\n#{changes}"
|
349
357
|
|
350
|
-
return subject, body
|
358
|
+
return subject, title, body, urls
|
351
359
|
end
|
352
360
|
|
353
361
|
def run_tests(multi=false) # :nodoc:
|
data/test/test_hoe.rb
CHANGED
@@ -15,7 +15,7 @@ class TestHoe < Test::Unit::TestCase
|
|
15
15
|
|
16
16
|
def test_basics
|
17
17
|
boring = %w(clobber clobber_docs clobber_package doc doc/index.html pkg pkg/blah-1.0.0 pkg/blah-1.0.0.gem pkg/blah-1.0.0.tgz redocs repackage)
|
18
|
-
expected = %w(audit announce clean debug_gem default docs email gem install multi package post_news publish_docs release ridocs test uninstall)
|
18
|
+
expected = %w(audit announce check_manifest clean debug_gem default docs email gem install multi package post_news publish_docs release ridocs test uninstall)
|
19
19
|
expected += boring
|
20
20
|
|
21
21
|
Hoe.new('blah', '1.0.0')
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: hoe
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.1.
|
7
|
-
date: 2006-10-
|
6
|
+
version: 1.1.1
|
7
|
+
date: 2006-10-11 00:00:00 -07:00
|
8
8
|
summary: Hoe is a way to write Rakefiles much easier and cleaner.
|
9
9
|
require_paths:
|
10
10
|
- lib
|