lib/soywiki.rb in soywiki-0.4.1 vs lib/soywiki.rb in soywiki-0.4.2
- old
+ new
@@ -1,20 +1,20 @@
require 'string_ext'
module Soywiki
- VERSION = '0.4.1'
+ VERSION = '0.4.2'
WIKI_WORD = /\b([a-z][\w_]+\.)?[A-Z][a-z]+[A-Z]\w*\b/
HYPERLINK = %r|\bhttps?://[^ >)\n\]]+|
def self.run
if %W( -v --version -h --help).include?(ARGV.first)
puts "soywiki #{Soywiki::VERSION}"
puts "by Daniel Choi dhchoi@gmail.com"
puts
puts <<END
---
-Usage: soywiki [wiki file]
+Usage: soywiki
Run the command in a directory you've made to contain soywiki files.
Specifying a wiki file is optional. If you don't specify a file, soywiki will
open the most recently modified wiki file.
@@ -25,10 +25,10 @@
self.html_export
exit
else
vim = ENV['SOYWIKI_VIM'] || 'vim'
vimscript = File.expand_path("../soywiki.vim", __FILE__)
- vim_command = "#{vim} -S #{vimscript} #{ARGV.first}"
+ vim_command = "#{vim} -S #{vimscript}"
exec vim_command
end
end
def self.html_export