github-markup 0.3.2 → 0.3.3
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.
- data/HISTORY.md +4 -0
- data/lib/github/commands/rest2html +3 -1
- data/lib/github/markup/version.rb +1 -1
- data/test/markups/README.rst +1 -1
- data/test/markups/README.rst.html +1 -0
- metadata +2 -2
data/HISTORY.md
CHANGED
|
@@ -14,6 +14,8 @@ except:
|
|
|
14
14
|
pass
|
|
15
15
|
|
|
16
16
|
import sys
|
|
17
|
+
import codecs
|
|
18
|
+
|
|
17
19
|
from docutils.core import publish_parts
|
|
18
20
|
from docutils.writers.html4css1 import Writer
|
|
19
21
|
|
|
@@ -35,7 +37,7 @@ def main():
|
|
|
35
37
|
rest2html README.rst
|
|
36
38
|
"""
|
|
37
39
|
try:
|
|
38
|
-
text = open(sys.argv[1], 'r').read()
|
|
40
|
+
text = codecs.open(sys.argv[1], 'r', 'utf-8').read()
|
|
39
41
|
except IOError: # given filename could not be found
|
|
40
42
|
return ''
|
|
41
43
|
except IndexError: # no filename given
|
data/test/markups/README.rst
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: github-markup
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Wanstrath
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2010-03-
|
|
12
|
+
date: 2010-03-29 00:00:00 -07:00
|
|
13
13
|
default_executable: github-markup
|
|
14
14
|
dependencies: []
|
|
15
15
|
|