soywiki 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/soywiki-expand +2 -2
  2. data/lib/soywiki.rb +1 -1
  3. 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 =~ /^\./ # short link in namespace (relative 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
@@ -20,7 +20,7 @@ end
20
20
 
21
21
 
22
22
  module Soywiki
23
- VERSION = '0.1.1'
23
+ VERSION = '0.1.2'
24
24
  WIKI_WORD = /\b([a-z][\w_]+\.)?[A-Z][a-z]+[A-Z]\w*\b/
25
25
 
26
26
  def self.run
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi