hoe 2.3.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,15 @@
1
+ === 2.3.1 / 2009-06-24
2
+
3
+ * 2 minor enhancements:
4
+
5
+ * Removed email.txt from clean_globs, added TAGS.
6
+ * Use Gem::PackageTask if available, since Rake's package task will go away
7
+
8
+ * 2 bug fixes:
9
+
10
+ * Added require time where used
11
+ * JB nitpicks too much. fixed templates.
12
+
1
13
  === 2.3.0 / 2009-06-23
2
14
 
3
15
  * 1 major enhancement:
data/lib/hoe.rb CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  require 'rubygems'
4
4
  require 'rake'
5
- require 'rake/gempackagetask'
6
5
  require 'rake/testtask'
7
6
  require 'rubyforge'
8
7
  require 'yaml'
@@ -60,7 +59,7 @@ require 'hoe/rake'
60
59
 
61
60
  class Hoe
62
61
  # duh
63
- VERSION = '2.3.0'
62
+ VERSION = '2.3.1'
64
63
 
65
64
  @@plugins = [:clean, :debug, :deps, :flay, :flog, :package, :publish,
66
65
  :rcov, :signing, :test]
@@ -532,6 +531,7 @@ class Hoe
532
531
  # Provide a linear degrading value from n to m over start to finis dates.
533
532
 
534
533
  def timebomb n, m, finis = '2010-04-01', start = '2009-03-14'
534
+ require 'time'
535
535
  finis = Time.parse finis
536
536
  start = Time.parse start
537
537
  rest = (finis - Time.now)
@@ -15,7 +15,7 @@ module Hoe::Clean
15
15
  # Initialize variables for plugin.
16
16
 
17
17
  def initialize_clean
18
- self.clean_globs ||= %w(diff diff.txt email.txt ri deps .source_index
18
+ self.clean_globs ||= %w(diff diff.txt TAGS ri deps .source_index
19
19
  *.gem **/*~ **/.*~ **/*.rbc coverage*)
20
20
  end
21
21
 
@@ -1,3 +1,11 @@
1
+ begin
2
+ require 'rubygems/package_task'
3
+ rescue LoadError
4
+ # rake/gempackagetask will go away some day
5
+ require 'rake/gempackagetask'
6
+ Gem::PackageTask = Rake::GemPackageTask
7
+ end
8
+
1
9
  ##
2
10
  # Package plugin for hoe.
3
11
  #
@@ -29,7 +37,7 @@ module Hoe::Package
29
37
  # Define tasks for plugin.
30
38
 
31
39
  def define_package_tasks
32
- Rake::GemPackageTask.new spec do |pkg|
40
+ Gem::PackageTask.new spec do |pkg|
33
41
  abort "Fix your version before you release" if
34
42
  spec.version.version =~ /borked/
35
43
  pkg.need_tar = @need_tar
@@ -182,6 +182,8 @@ module Hoe::Publish
182
182
  end
183
183
 
184
184
  def generate_email full = nil
185
+ require 'time'
186
+
185
187
  abort "No email 'to' entry. Run `rake config_hoe` to fix." unless
186
188
  !full || email_to
187
189
 
@@ -1,3 +1,4 @@
1
+ .autotest
1
2
  History.txt
2
3
  Manifest.txt
3
4
  README.txt
@@ -4,8 +4,9 @@ require 'rubygems'
4
4
  require 'hoe'
5
5
 
6
6
  Hoe.spec '<%= project %>' do
7
+ # developer('<%= XIF %>', '<%= XIF %>@example.com')
8
+
7
9
  # self.rubyforge_name = '<%= project %>x' # if different than '<%= project %>'
8
- # p.developer('<%= XIF %>', '<%= XIF %>@example.com')
9
10
  end
10
11
 
11
12
  # vim: syntax=ruby
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: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -30,7 +30,7 @@ cert_chain:
30
30
  FBHgymkyj/AOSqKRIpXPhjC6
31
31
  -----END CERTIFICATE-----
32
32
 
33
- date: 2009-06-23 00:00:00 -07:00
33
+ date: 2009-06-24 00:00:00 -07:00
34
34
  default_executable:
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
metadata.gz.sig CHANGED
Binary file