gmd 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/gmd +4 -2
  2. data/lib/gmd/version.rb +1 -1
  3. metadata +5 -5
data/bin/gmd CHANGED
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
- #encoding: utf-8
2
+ # coding: utf-8
3
+ Encoding.default_external = "UTF-8"
4
+ Encoding.default_internal = "UTF-8"
3
5
  require 'optparse'
4
6
  require 'gmd'
5
7
 
@@ -55,4 +57,4 @@ locals = {}
55
57
  output = Redcarpet::Markdown.new(Redcarpet::Render::HTML).render(File.read(file))
56
58
  output = Tilt.new(layout).render(self, locals) { output } if layout
57
59
 
58
- File.open(output_file, "w") { |f| f.write(output) }
60
+ File.open(output_file, "wb") { |f| f.write(output) }
data/lib/gmd/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gmd
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gmd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-14 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: redcarpet
16
- requirement: &82953420 !ruby/object:Gem::Requirement
16
+ requirement: &74359080 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *82953420
24
+ version_requirements: *74359080
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: tilt
27
- requirement: &82953060 !ruby/object:Gem::Requirement
27
+ requirement: &74358240 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *82953060
35
+ version_requirements: *74358240
36
36
  description: gmd is a small command-line utility to easily generate fancy HTML from
37
37
  Markdown.
38
38
  email: