docter 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +3 -0
- data/Rakefile +1 -1
- data/lib/docter/page.rb +1 -1
- data/lib/docter.rb +5 -9
- metadata +1 -1
data/CHANGELOG
CHANGED
data/Rakefile
CHANGED
@@ -63,7 +63,7 @@ task('clobber') { rm_rf [rdoc.rdoc_dir.to_s] }
|
|
63
63
|
namespace :svn do
|
64
64
|
task :clean? do |task|
|
65
65
|
status = `svn status`.reject { |line| line =~ /\s(pkg|html)$/ }
|
66
|
-
|
66
|
+
fail "Cannot release unless all local changes are in SVN:\n#{status}" unless status.empty?
|
67
67
|
end
|
68
68
|
|
69
69
|
task :tag do |task|
|
data/lib/docter/page.rb
CHANGED
@@ -202,7 +202,7 @@ module Docter
|
|
202
202
|
tag, attributes, text = $1.downcase, $2.to_s, inner_text_from($3)
|
203
203
|
# Make sure all H2/H3 headers have a usable ID, create once if necessary.
|
204
204
|
id = CGI.unescape($3) if attributes[regexp_attribute('id')]
|
205
|
-
if id.blank?
|
205
|
+
if id.to_s.blank?
|
206
206
|
id = CGI.unescapeHTML(text.downcase.gsub(' ', '_'))
|
207
207
|
header = %{<#{tag} #{attributes} id='#{id}'>#{text}</#{tag}>}
|
208
208
|
end
|
data/lib/docter.rb
CHANGED
@@ -1,15 +1,11 @@
|
|
1
1
|
# &:symbol goodness.
|
2
|
-
require '
|
3
|
-
|
4
|
-
require '
|
5
|
-
require '
|
6
|
-
# x.in?(y) is better than y.include?(x)
|
7
|
-
require 'facet/string/starts_with'
|
8
|
-
require 'facets/core/kernel/tap'
|
9
|
-
require 'facet/kernel/__DIR__'
|
2
|
+
require 'facets/symbol/to_proc'
|
3
|
+
require 'facets/string/blank'
|
4
|
+
require 'facets/kernel/tap'
|
5
|
+
require 'facets/kernel/__DIR__'
|
10
6
|
|
11
7
|
module Docter
|
12
|
-
VERSION = '1.1.
|
8
|
+
VERSION = '1.1.1'.freeze
|
13
9
|
end
|
14
10
|
|
15
11
|
$LOAD_PATH.unshift __DIR__
|