docter 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGELOG +3 -0
  2. data/Rakefile +1 -1
  3. data/lib/docter/page.rb +1 -1
  4. data/lib/docter.rb +5 -9
  5. metadata +1 -1
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 1.1.1 (2007-01-03)
2
+ * Fixed: Upgraded to Facets 2.2.1 to prevent conflict with Buildr.
3
+
1
4
  1.1.0 (2007-01-03)
2
5
  * Changed: Now using YAML for nested ToC.
3
6
  * Fixed: Sleek upload with changelog for each release courtesy of Anatol Pomozov.
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
- #fail "Cannot release unless all local changes are in SVN:\n#{status}" unless status.empty?
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 'facet/symbol/to_proc'
3
- # blank? on string and nil
4
- require 'facet/string/blank'
5
- require 'facet/nilclass/blank'
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.0'.freeze
8
+ VERSION = '1.1.1'.freeze
13
9
  end
14
10
 
15
11
  $LOAD_PATH.unshift __DIR__
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Apache Buildr