hoe 1.5.3 → 1.6.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.
Files changed (4) hide show
  1. data/History.txt +6 -0
  2. data/Rakefile +2 -1
  3. data/lib/hoe.rb +15 -7
  4. metadata +2 -2
@@ -1,3 +1,9 @@
1
+ === 1.6.0 / 2008-06-18
2
+
3
+ * 1 minor enhancement
4
+
5
+ * blog categories! Defaults to array with project's name. Thanks Aaron!
6
+
1
7
  === 1.5.3 / 2008-05-20
2
8
 
3
9
  * 1 Bug Fix
data/Rakefile CHANGED
@@ -4,9 +4,10 @@ require './lib/hoe.rb'
4
4
 
5
5
  Hoe.new("hoe", Hoe::VERSION) do |hoe|
6
6
  hoe.rubyforge_name = "seattlerb"
7
+
7
8
  hoe.developer("Ryan Davis", "ryand-ruby@zenspider.com")
8
9
 
9
- hoe.multiruby_skip << "rubinius"
10
+ hoe.blog_categories << "Seattle.rb" << "Ruby"
10
11
  end
11
12
 
12
13
  desc "Generate a list of tasks for doco. RDOC=1 for commented output"
data/lib/hoe.rb CHANGED
@@ -115,7 +115,7 @@ require 'yaml'
115
115
  #
116
116
 
117
117
  class Hoe
118
- VERSION = '1.5.3'
118
+ VERSION = '1.6.0'
119
119
 
120
120
  ruby_prefix = Config::CONFIG['prefix']
121
121
  sitelibdir = Config::CONFIG['sitelibdir']
@@ -178,6 +178,11 @@ class Hoe
178
178
 
179
179
  attr_accessor :bin_files # :nodoc:
180
180
 
181
+ ##
182
+ # *Optional*: An array of the project's blog categories. Defaults to project name.
183
+
184
+ attr_accessor :blog_categories
185
+
181
186
  ##
182
187
  # Optional: A description of the release's latest changes. Auto-populates.
183
188
 
@@ -307,6 +312,7 @@ class Hoe
307
312
  self.clean_globs = %w(diff diff.txt email.txt ri
308
313
  *.gem *~ **/*~ *.rbc **/*.rbc)
309
314
  self.description_sections = %w(description)
315
+ self.blog_categories = [name]
310
316
  self.email = []
311
317
  self.extra_deps = []
312
318
  self.multiruby_skip = []
@@ -537,7 +543,8 @@ class Hoe
537
543
 
538
544
  desc 'Install the package as a gem.'
539
545
  task :install_gem => [:clean, :package] do
540
- sh "#{'sudo ' unless WINDOZE}gem install --local pkg/*.gem"
546
+ gem = Dir['pkg/*.gem'].first
547
+ sh "#{'sudo ' unless WINDOZE}gem install --local #{gem}"
541
548
  end
542
549
 
543
550
  desc 'Package and upload the release to rubyforge.'
@@ -684,7 +691,9 @@ class Hoe
684
691
  config['blogs'].each do |site|
685
692
  server = XMLRPC::Client.new2(site['url'])
686
693
  content = site['extra_headers'].merge(:title => title,
687
- :description => body)
694
+ :description => body,
695
+ :categories => blog_categories)
696
+
688
697
  result = server.call('metaWeblog.newPost',
689
698
  site['blog_id'],
690
699
  site['user'],
@@ -783,11 +792,10 @@ class Hoe
783
792
 
784
793
  def announcement # :nodoc:
785
794
  changes = self.changes.rdoc_to_markdown
786
-
787
795
  subject = "#{name} #{version} Released"
788
- title = "#{name} version #{version} has been released!"
789
- body = "#{description}\n\nChanges:\n\n#{changes}".rdoc_to_markdown
790
- urls = Array(url).map { |s| "* <#{s.strip.rdoc_to_markdown}>" }.join("\n")
796
+ title = "#{name} version #{version} has been released!"
797
+ body = "#{description}\n\nChanges:\n\n#{changes}".rdoc_to_markdown
798
+ urls = Array(url).map { |s| "* <#{s.strip.rdoc_to_markdown}>" }.join("\n")
791
799
 
792
800
  return subject, title, body, urls
793
801
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoe
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-05-21 00:00:00 -07:00
12
+ date: 2008-06-18 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency