hoe 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/History.txt +15 -2
  2. data/Manifest.txt +1 -0
  3. data/lib/hoe.rb +11 -4
  4. data/test/test_hoe.rb +18 -0
  5. metadata +3 -2
@@ -1,3 +1,16 @@
1
- = 1.0.0
1
+ = 1.0.2 2006-09-20
2
2
 
3
- Birthday!
3
+ * Wee little tests.
4
+ * Fixed up gemspec's require_paths.
5
+
6
+ = 1.0.1 2006-09-20
7
+
8
+ * Finally got deployment straightened out. Maybe. Some might be on rubyforge.org.
9
+ * Added default description and summary.
10
+ * Added dependency mechanism.
11
+ * Improved gemspec debugging.
12
+ * Swapped gem with tgz in deploy... we'd rather screw up on tgz
13
+
14
+ = 1.0.0 2006-09-19
15
+
16
+ * Birthday!
@@ -3,3 +3,4 @@ Manifest.txt
3
3
  README.txt
4
4
  Rakefile
5
5
  lib/hoe.rb
6
+ test/test_hoe.rb
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.1'
12
+ VERSION = '1.0.2'
13
13
 
14
14
  rubyprefix = Config::CONFIG['prefix']
15
15
  sitelibdir = Config::CONFIG['sitelibdir']
@@ -83,7 +83,7 @@ class Hoe
83
83
  s.executables = s.files.grep(/bin/) { |f| File.basename(f) }
84
84
 
85
85
  s.bindir = "bin"
86
- s.require_paths = ['lib', 'test']
86
+ s.require_paths = Dir['{lib,test}']
87
87
  s.has_rdoc = true
88
88
  s.test_suite_file = "test/test_all.rb" if test ?f, "test/test_all.rb"
89
89
 
@@ -125,7 +125,6 @@ class Hoe
125
125
  task :deploy => [:clean, :package] do |t|
126
126
  v = ENV["VERSION"] or abort "Must supply VERSION=x.y.z"
127
127
  abort "Versions don't match #{v} vs #{version}" if v != version
128
- puts "Releasing #{name} v. #{version}"
129
128
  require 'rubyforge'
130
129
  pkg = "pkg/#{name}-#{version}"
131
130
 
@@ -135,9 +134,17 @@ class Hoe
135
134
  end
136
135
 
137
136
  rf = RubyForge.new
137
+ puts "Logging in"
138
138
  rf.login
139
+ puts "Releasing #{name} v. #{version} tarball"
139
140
  release_id = rf.add_release rubyforge_name, name, version, "#{pkg}.tgz"
140
- rf.add_file rubyforge_name, name, release_id, "#{pkg}.gem"
141
+ if release_id then
142
+ puts " release_id = #{release_id.inspect}"
143
+ puts "Releasing #{name} v. #{version} gem"
144
+ rf.add_file rubyforge_name, name, release_id, "#{pkg}.gem"
145
+ else
146
+ abort "Couldn't get release_id"
147
+ end
141
148
  end
142
149
 
143
150
  ############################################################
@@ -0,0 +1,18 @@
1
+
2
+ require 'test/unit/testcase'
3
+ require 'hoe'
4
+
5
+ $rakefile = nil # shuts up a warning in rdoctask.rb
6
+
7
+ class TestHoe < Test::Unit::TestCase
8
+ def setup
9
+ Rake.application.clear
10
+ end
11
+
12
+ def test_basics
13
+ Hoe.new('blah', '1.0.0')
14
+ tasks = Rake.application.tasks.map { |t| t.name }.sort
15
+ expected = ["audit", "clean", "clobber", "clobber_docs", "clobber_package", "default", "deploy", "doc", "doc/index.html", "docs", "gem", "install", "multi", "package", "pkg", "pkg/blah-1.0.0", "pkg/blah-1.0.0.gem", "pkg/blah-1.0.0.tgz", "redocs", "repackage", "test", "uninstall", "upload"]
16
+ assert_equal expected, tasks
17
+ end
18
+ end
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.0.1
7
- date: 2006-09-19 00:00:00 -07:00
6
+ version: 1.0.2
7
+ date: 2006-09-20 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
@@ -35,6 +35,7 @@ files:
35
35
  - README.txt
36
36
  - Rakefile
37
37
  - lib/hoe.rb
38
+ - test/test_hoe.rb
38
39
  test_files: []
39
40
 
40
41
  rdoc_options: []