soywiki 0.4.5 → 0.4.6

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.
Files changed (3) hide show
  1. data/lib/soywiki.rb +1 -1
  2. data/lib/soywiki.vim +2 -2
  3. metadata +2 -2
data/lib/soywiki.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'string_ext'
2
2
 
3
3
  module Soywiki
4
- VERSION = '0.4.5'
4
+ VERSION = '0.4.6'
5
5
  WIKI_WORD = /\b([a-z][\w_]+\.)?[A-Z][a-z]+[A-Z]\w*\b/
6
6
  HYPERLINK = %r|\bhttps?://[^ >)\n\]]+|
7
7
 
data/lib/soywiki.vim CHANGED
@@ -271,7 +271,7 @@ endfunc
271
271
 
272
272
  func! s:save_revision()
273
273
  call system("git add " . bufname('%'))
274
- call system("git commit " . bufname('%') . " -m 'edit'")
274
+ call system("git commit -a -m 'edit'")
275
275
  endfunc
276
276
 
277
277
  func! s:show_revision_history(stat)
@@ -619,7 +619,7 @@ func! s:prep_buffer()
619
619
  setlocal completefunc=CompletePageTitle
620
620
  augroup <buffer>
621
621
  au!
622
- autocmd BufWritePost,VimLeavePre <buffer> call s:save_revision()
622
+ autocmd BufWritePost,BufUnload <buffer> call s:save_revision()
623
623
  augroup END
624
624
  let b:mappings_loaded = 1
625
625
  endif
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 5
9
- version: 0.4.5
8
+ - 6
9
+ version: 0.4.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi