soywiki 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/soywiki-expand +2 -2
- data/lib/soywiki.rb +1 -1
- metadata +2 -2
data/bin/soywiki-expand
CHANGED
@@ -28,9 +28,9 @@ def expand(file, mode, level=0)
|
|
28
28
|
# note that the wiki link must be alone on the line to be expanded
|
29
29
|
if line =~ WIKI_LINK_PATTERN
|
30
30
|
link = line.strip
|
31
|
-
if link =~
|
31
|
+
if link =~ /(\A|\s)[A-Z]/ # short link in namespace (relative link)
|
32
32
|
namespace = file.namespace
|
33
|
-
link = [namespace, link].join
|
33
|
+
link = [namespace, link].join('.')
|
34
34
|
end
|
35
35
|
if File.file?(link.to_file_path) && !PROCESSED_FILES.include?(link.to_file_path)
|
36
36
|
if mode == 'seamful'
|
data/lib/soywiki.rb
CHANGED