mdoc 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/lib/mdoc/document.rb CHANGED
@@ -14,7 +14,7 @@ module Mdoc
14
14
  def initialize(path)
15
15
  if path.is_a?(String)
16
16
  @file = path
17
- path = File.new(@file, 'r:utf-8')
17
+ path = File.new(@file, 'r:bom|utf-8')
18
18
  end
19
19
 
20
20
  # initialize performed processor list
data/lib/mdoc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mdoc
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
data/lib/mdoc/writer.rb CHANGED
@@ -5,13 +5,13 @@ module Mdoc
5
5
  attr_accessor :tilt
6
6
 
7
7
  def out(doc)
8
- Mdoc.opts.no_output ? $stdout : File.new(doc.out_file, 'w:utf-8')
8
+ Mdoc.opts.no_output ? $stdout : File.new(doc.out_file, 'wb')
9
9
  end
10
10
 
11
11
  def process!(doc)
12
12
  @tilt = Tilt::ERBTemplate.new(doc.tpl_file)
13
13
  oh = out(doc)
14
- oh.write @tilt.render doc
14
+ oh.write @tilt.render(doc)
15
15
  oh.close unless oh == $stdout
16
16
  end
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: