utopia 0.9.59 → 0.9.60

Sign up to get free protection for your applications and to get access to all the features.
data/lib/utopia/link.rb CHANGED
@@ -57,22 +57,18 @@ module Utopia
57
57
  elsif @path
58
58
  return @path.to_s
59
59
  else
60
- "\#"
60
+ nil
61
61
  end
62
62
  end
63
63
 
64
64
  def href?
65
- return href != "\#"
65
+ return href != nil
66
66
  end
67
67
 
68
68
  def title
69
69
  @info[:title] || @title.to_title
70
70
  end
71
71
 
72
- def external?
73
- @info.key? :uri
74
- end
75
-
76
72
  def to_href(options = {})
77
73
  options[:content] ||= title
78
74
  options[:class] ||= "link"
@@ -180,8 +176,7 @@ module Utopia
180
176
  end
181
177
 
182
178
  if indices == 0
183
- # We specify that no link was found, unless one was explicitly specified in directory_metadata:
184
- links << Link.new(:directory, top + [filename, ""], {:uri => "\#"}.merge(directory_metadata))
179
+ links << Link.new(:directory, top + [filename, ""], directory_metadata)
185
180
  end
186
181
  elsif filename.match(INDEX_XNODE_FILTER) && options[:indices] == false
187
182
  name = $1
@@ -6,7 +6,7 @@ module Utopia
6
6
  module VERSION
7
7
  MAJOR = 0
8
8
  MINOR = 9
9
- TINY = 59
9
+ TINY = 60
10
10
 
11
11
  STRING = [MAJOR, MINOR, TINY].join('.')
12
12
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 59
9
- version: 0.9.59
8
+ - 60
9
+ version: 0.9.60
10
10
  platform: ruby
11
11
  authors:
12
12
  - Samuel Williams