github-markup 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.3 (2010-03-29)
2
+
3
+ * UTF-8 works with ReST now.
4
+
1
5
  ## 0.3.2 (2010-03-25)
2
6
 
3
7
  * Improved test runner
@@ -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
@@ -1,5 +1,5 @@
1
1
  module GitHub
2
2
  module Markup
3
- Version = '0.3.2'
3
+ Version = '0.3.3'
4
4
  end
5
5
  end
@@ -10,4 +10,4 @@ Header 2
10
10
 
11
11
  2. More ``code``, hooray
12
12
 
13
-
13
+ 3. Somé UTF-8°
@@ -7,6 +7,7 @@
7
7
  <ol class="arabic simple">
8
8
  <li>Blah blah <tt class="docutils literal">code</tt> blah</li>
9
9
  <li>More <tt class="docutils literal">code</tt>, hooray</li>
10
+ <li>Somé UTF-8°</li>
10
11
  </ol>
11
12
  </div>
12
13
  </div>
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.2
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-25 00:00:00 -07:00
12
+ date: 2010-03-29 00:00:00 -07:00
13
13
  default_executable: github-markup
14
14
  dependencies: []
15
15