hen 0.2.5 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +9 -0
- data/README +1 -1
- data/lib/hen/dsl.rb +4 -6
- data/lib/hen/version.rb +1 -1
- data/lib/hens/rdoc.rake +13 -2
- metadata +9 -9
data/ChangeLog
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
= Revision history for hen
|
2
2
|
|
3
|
+
== 0.2.7 [2011-01-24]
|
4
|
+
|
5
|
+
* RubyGems compatibility (Gem::CommandManager)
|
6
|
+
* Include Gem version in RDoc title
|
7
|
+
|
8
|
+
== 0.2.6 [2011-01-24]
|
9
|
+
|
10
|
+
* (Botched release...)
|
11
|
+
|
3
12
|
== 0.2.5 [2011-01-07]
|
4
13
|
|
5
14
|
* Handle rcov.opts file for RSpec 2
|
data/README
CHANGED
data/lib/hen/dsl.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# #
|
4
4
|
# A component of hen, the Rake helper. #
|
5
5
|
# #
|
6
|
-
# Copyright (C) 2007-
|
6
|
+
# Copyright (C) 2007-2011 University of Cologne, #
|
7
7
|
# Albertus-Magnus-Platz, #
|
8
8
|
# 50923 Cologne, Germany #
|
9
9
|
# #
|
@@ -195,7 +195,7 @@ class Hen
|
|
195
195
|
begin
|
196
196
|
require 'rubyforge'
|
197
197
|
rescue LoadError
|
198
|
-
raise "Please install the
|
198
|
+
raise "Please install the `rubyforge' gem first."
|
199
199
|
end
|
200
200
|
end
|
201
201
|
|
@@ -203,19 +203,17 @@ class Hen
|
|
203
203
|
# a nicer error message if it's not found.
|
204
204
|
def require_gemcutter(relax = true)
|
205
205
|
begin
|
206
|
+
require 'rubygems/command_manager'
|
206
207
|
require 'rubygems/commands/push_command'
|
207
208
|
rescue LoadError
|
208
209
|
# rubygems < 1.3.6, gemcutter < 0.4.0
|
209
|
-
|
210
|
-
require 'rubygems/command_manager'
|
211
|
-
|
212
210
|
require 'commands/abstract_command'
|
213
211
|
require 'commands/push'
|
214
212
|
end
|
215
213
|
|
216
214
|
Gem::Commands::PushCommand
|
217
215
|
rescue LoadError, NameError
|
218
|
-
raise "Please install the
|
216
|
+
raise "Please install the `gemcutter' gem first." unless relax
|
219
217
|
end
|
220
218
|
|
221
219
|
end
|
data/lib/hen/version.rb
CHANGED
data/lib/hens/rdoc.rake
CHANGED
@@ -4,8 +4,18 @@ Hen :rdoc do
|
|
4
4
|
|
5
5
|
rdoc_options = config[:rdoc]
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
rdoc_options[:title] ||= begin
|
8
|
+
title = 'Application documentation'
|
9
|
+
|
10
|
+
if name = config[:gem][:name] || config[:rubyforge][:package]
|
11
|
+
title.insert(0, "#{name} ")
|
12
|
+
end
|
13
|
+
|
14
|
+
if version = config[:gem][:version]
|
15
|
+
title << " (v#{version})"
|
16
|
+
end
|
17
|
+
|
18
|
+
title
|
9
19
|
end
|
10
20
|
|
11
21
|
### rdoc_dir
|
@@ -34,6 +44,7 @@ Hen :rdoc do
|
|
34
44
|
}
|
35
45
|
|
36
46
|
unless rdoc_files.empty?
|
47
|
+
# Rake::RDocTask -> RDoc::Task (require 'rdoc/task')
|
37
48
|
rdoc_task = Rake::RDocTask.new(:doc) { |rdoc|
|
38
49
|
rdoc.rdoc_dir = rdoc_dir
|
39
50
|
rdoc.rdoc_files = rdoc_files
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 7
|
10
|
+
version: 0.2.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jens Wille
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-
|
18
|
+
date: 2011-01-24 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -86,14 +86,14 @@ licenses: []
|
|
86
86
|
|
87
87
|
post_install_message:
|
88
88
|
rdoc_options:
|
89
|
-
- --
|
89
|
+
- --charset
|
90
|
+
- UTF-8
|
90
91
|
- --main
|
91
92
|
- README
|
92
|
-
- --
|
93
|
+
- --line-numbers
|
93
94
|
- --title
|
94
|
-
- hen Application documentation
|
95
|
-
- --
|
96
|
-
- UTF-8
|
95
|
+
- hen Application documentation (v0.2.7)
|
96
|
+
- --inline-source
|
97
97
|
- --all
|
98
98
|
require_paths:
|
99
99
|
- lib
|