lib/soywiki.rb in soywiki-0.1.4 vs lib/soywiki.rb in soywiki-0.1.5

- old
+ new

@@ -1,27 +1,8 @@ +require 'string_ext' -class String - # not Windows compatible - def to_file_path - self.gsub(".", "/") - end - - def to_page_title - self.gsub("/", ".") - end - - def short_page_title - self.to_page_title.split('.')[1] - end - - def namespace - self.to_page_title.split('.')[0] - end -end - - module Soywiki - VERSION = '0.1.4' + VERSION = '0.1.5' WIKI_WORD = /\b([a-z][\w_]+\.)?[A-Z][a-z]+[A-Z]\w*\b/ def self.run if %W( -v --version -h --help).include?(ARGV.first) puts "soywiki #{Soywiki::VERSION}"