soywiki 0.9.1 → 0.9.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.
@@ -1,6 +1,7 @@
1
1
  !!!
2
2
  %html
3
3
  %head
4
+ %meta{'http-equiv'=>'Content-Type', content:'text/html; charset=UTF-8'}
4
5
  :css
5
6
  h3 { margin-top: 0 }
6
7
  .sidebar { float:left; width: 15%; font-size: small }
@@ -1,6 +1,7 @@
1
1
  !!!
2
2
  %html
3
3
  %head
4
+ %meta{'http-equiv'=>'Content-Type', content:'text/html; charset=UTF-8'}
4
5
  :css
5
6
  h3 { margin-top: 0 }
6
7
  .sidebar { float:left; width: 15%; font-size: small }
@@ -26,6 +27,6 @@
26
27
  .main
27
28
  %h2= title
28
29
  - if markdown
29
- != body.to_html
30
+ != body
30
31
  - else
31
32
  %pre= body
data/lib/soywiki.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'string_ext'
2
2
 
3
3
  module Soywiki
4
- VERSION = '0.9.1'
4
+ VERSION = '0.9.2'
5
5
  WIKI_WORD = /\b([a-z0-9][\w_]+\.)?[A-Z][a-z]+[A-Z0-9]\w*\b/
6
6
  HYPERLINK = %r|\bhttps?://[^ >)\n\]]+|
7
7
 
data/lib/soywiki.vim CHANGED
@@ -686,7 +686,8 @@ endfunc
686
686
 
687
687
  call s:global_mappings()
688
688
 
689
- if (!isdirectory(".git"))
689
+ " also catch detched git directories
690
+ if (!isdirectory(".git")&&!filereadable(".git"))
690
691
  call system("git init")
691
692
  echom "Created .git repository to store revisions"
692
693
  endif
data/lib/soywiki/html.rb CHANGED
@@ -30,7 +30,6 @@ module Soywiki
30
30
  end
31
31
 
32
32
  PAGE_TEMPLATE = File.read(File.join(File.dirname(__FILE__), '..', 'page_template.html.haml'))
33
-
34
33
  def self.generate_page(text, namespace, pages, namespaces)
35
34
  text = text.split("\n")
36
35
 
@@ -38,7 +37,7 @@ module Soywiki
38
37
  body = if text.empty?
39
38
  ''
40
39
  elsif @markdown
41
- RDiscount.new(text.join("\n").strip)
40
+ RDiscount.new(text.join("\n").strip).to_html.gsub("<pre><code>","<pre><code>\n")
42
41
  else
43
42
  process(text.join("\n").strip)
44
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soywiki
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-31 00:00:00.000000000Z
12
+ date: 2012-11-27 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A personal and collaborative wiki for Vim users
15
15
  email:
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  version: '0'
64
64
  requirements: []
65
65
  rubyforge_project: soywiki
66
- rubygems_version: 1.8.10
66
+ rubygems_version: 1.8.23
67
67
  signing_key:
68
68
  specification_version: 3
69
69
  summary: Wiki with Vim interface and Git repo