hoe 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/hoe.rb +19 -25
  2. metadata +5 -5
data/lib/hoe.rb CHANGED
@@ -9,7 +9,7 @@ require 'rake/testtask'
9
9
  require 'rbconfig'
10
10
 
11
11
  class Hoe
12
- VERSION = '1.0.0'
12
+ VERSION = '1.0.1'
13
13
 
14
14
  rubyprefix = Config::CONFIG['prefix']
15
15
  sitelibdir = Config::CONFIG['sitelibdir']
@@ -26,7 +26,7 @@ class Hoe
26
26
  (RUBY_DEBUG ? " #{RUBY_DEBUG}" : '')
27
27
  FILTER = ENV['FILTER'] # for tests (eg FILTER="-n test_blah")
28
28
 
29
- attr_accessor :author, :bin_files, :clean_globs, :email, :lib_files, :name, :rubyforge_name, :spec, :summary, :test_files, :url, :version
29
+ attr_accessor :author, :bin_files, :clean_globs, :description, :email, :extra_deps, :lib_files, :name, :rubyforge_name, :spec, :summary, :test_files, :url, :version
30
30
 
31
31
  def initialize(name, version)
32
32
  self.name = name
@@ -38,7 +38,10 @@ class Hoe
38
38
  self.author = "Ryan Davis"
39
39
  self.email = "ryand-ruby@zenspider.com"
40
40
  self.clean_globs = %w(diff diff.txt demo.rb *.gem **/*~)
41
-
41
+ self.description = "#{author} is too lazy to write a description"
42
+ self.summary = "#{author} is too lazy to write a summary"
43
+ self.extra_deps = [name == 'hoe' ? 'rake' : 'hoe']
44
+
42
45
  yield self if block_given?
43
46
 
44
47
  define_tasks
@@ -70,10 +73,12 @@ class Hoe
70
73
  s.homepage = url
71
74
  s.rubyforge_project = rubyforge_name
72
75
 
73
- paragraphs = File.read("README.txt").split(/\n\n+/)
74
- s.description = paragraphs[2]
76
+ s.description = description
77
+
78
+ extra_deps.each do |dep|
79
+ s.add_dependency(*dep)
80
+ end
75
81
 
76
- s.add_dependency('RubyInline', '>= 3.2.0')
77
82
  s.files = File.read("Manifest.txt").split
78
83
  s.executables = s.files.grep(/bin/) { |f| File.basename(f) }
79
84
 
@@ -82,18 +87,7 @@ class Hoe
82
87
  s.has_rdoc = true
83
88
  s.test_suite_file = "test/test_all.rb" if test ?f, "test/test_all.rb"
84
89
 
85
- if $DEBUG then
86
- puts "Gem Info:"
87
- puts
88
- puts "Summary = #{s.summary}"
89
- puts
90
- puts "Description = #{s.description}"
91
- puts
92
- puts "Executables = #{s.executables.join(", ")}"
93
- puts
94
- puts "Files = #{s.files.join(", ")}"
95
- puts
96
- end
90
+ puts s.to_ruby if $DEBUG
97
91
  end
98
92
 
99
93
  self.lib_files = spec.files.grep(/^lib/)
@@ -136,14 +130,14 @@ class Hoe
136
130
  pkg = "pkg/#{name}-#{version}"
137
131
 
138
132
  if $DEBUG then
139
- puts "release_id = rf.add_release #{rubyforge_name.inspect}, #{name.inspect}, #{version.inspect}, \"#{pkg}.gem\""
140
- puts "rf.add_file #{rubyforge_name.inspect}, #{name.inspect}, release_id, \"#{pkg}.tgz\""
141
- else
142
- rf = RubyForge.new
143
- rf.login
144
- release_id = rf.add_release rubyforge_name, name, version, "#{pkg}.gem"
145
- rf.add_file rubyforge_name, name, release_id, "#{pkg}.tgz"
133
+ puts "release_id = rf.add_release #{rubyforge_name.inspect}, #{name.inspect}, #{version.inspect}, \"#{pkg}.tgz\""
134
+ puts "rf.add_file #{rubyforge_name.inspect}, #{name.inspect}, release_id, \"#{pkg}.gem\""
146
135
  end
136
+
137
+ rf = RubyForge.new
138
+ rf.login
139
+ release_id = rf.add_release rubyforge_name, name, version, "#{pkg}.tgz"
140
+ rf.add_file rubyforge_name, name, release_id, "#{pkg}.gem"
147
141
  end
148
142
 
149
143
  ############################################################
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: hoe
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.0
6
+ version: 1.0.1
7
7
  date: 2006-09-19 00:00:00 -07:00
8
8
  summary: Hoe is a way to write Rakefiles much easier and cleaner.
9
9
  require_paths:
@@ -12,7 +12,7 @@ require_paths:
12
12
  email: ryand-ruby@zenspider.com
13
13
  homepage: http://www.zenspider.com/ZSS/Products/hoe/
14
14
  rubyforge_project: seattlerb
15
- description: Hoe is a simple rake/rubygems helper for project Rakefiles. It generates all the usual tasks for projects including rdoc generation, testing, packaging, and deployment.
15
+ description: Ryan Davis is too lazy to write a description
16
16
  autorequire:
17
17
  default_executable:
18
18
  bindir: bin
@@ -49,11 +49,11 @@ requirements: []
49
49
 
50
50
  dependencies:
51
51
  - !ruby/object:Gem::Dependency
52
- name: RubyInline
52
+ name: rake
53
53
  version_requirement:
54
54
  version_requirements: !ruby/object:Gem::Version::Requirement
55
55
  requirements:
56
- - - ">="
56
+ - - ">"
57
57
  - !ruby/object:Gem::Version
58
- version: 3.2.0
58
+ version: 0.0.0
59
59
  version: