hoe 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/History.txt +4 -0
  2. data/lib/hoe.rb +9 -12
  3. metadata +1 -1
@@ -1,3 +1,7 @@
1
+ = 1.1.6 2006-11-29
2
+
3
+ * Fix release to work correctly with need_zip and need_tar.
4
+
1
5
  = 1.1.5 2006-11-29
2
6
 
3
7
  * Reduced check_manifest dependencies to just diff for windows.
data/lib/hoe.rb CHANGED
@@ -89,7 +89,7 @@ require 'rbconfig'
89
89
  # * RUBY_FLAGS - Used to specify flags to ruby [has smart default].
90
90
 
91
91
  class Hoe
92
- VERSION = '1.1.5'
92
+ VERSION = '1.1.6'
93
93
 
94
94
  rubyprefix = Config::CONFIG['prefix']
95
95
  sitelibdir = Config::CONFIG['sitelibdir']
@@ -152,7 +152,7 @@ class Hoe
152
152
  desc 'Show which test files fail when run alone.'
153
153
  task :test_deps do
154
154
  tests = Dir["test/**/test_*.rb"] + Dir["test/**/*_test.rb"]
155
-
155
+
156
156
  tests.each do |test|
157
157
  if not system "ruby -Ibin:lib:test #{test} &> /dev/null" then
158
158
  puts "Dependency Issues: #{test}"
@@ -167,7 +167,7 @@ class Hoe
167
167
 
168
168
  ############################################################
169
169
  # Packaging and Installing
170
-
170
+
171
171
  self.spec = Gem::Specification.new do |s|
172
172
  s.name = name
173
173
  s.version = version
@@ -276,15 +276,12 @@ class Hoe
276
276
  c["release_changes"] = changes if changes
277
277
  c["preformatted"] = true
278
278
 
279
- puts "Releasing #{name} v. #{version} tarball"
280
- release_id = rf.add_release rubyforge_name, name, version, "#{pkg}.tgz"
281
- if release_id then
282
- puts " release_id = #{release_id.inspect}"
283
- puts "Releasing #{name} v. #{version} gem"
284
- rf.add_file rubyforge_name, name, release_id, "#{pkg}.gem"
285
- else
286
- abort "Couldn't get release_id"
287
- end
279
+ files = [(@need_tar ? "#{pkg}.tgz" : nil),
280
+ (@need_zip ? "#{pkg}.zip" : nil),
281
+ "#{pkg}.gem"].compact
282
+
283
+ puts "Releasing #{name} v. #{version}"
284
+ rf.add_release rubyforge_name, name, version, *files
288
285
  end
289
286
 
290
287
  ############################################################
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.0.7
3
3
  specification_version: 1
4
4
  name: hoe
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.1.5
6
+ version: 1.1.6
7
7
  date: 2006-11-29 00:00:00 -08:00
8
8
  summary: Hoe is a way to write Rakefiles much easier and cleaner.
9
9
  require_paths: