gimli 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -57,9 +57,14 @@ module Gimli
57
57
  def output_pdf(html, filename)
58
58
  load_stylesheets
59
59
  append_stylesheets html
60
+ add_head html
60
61
  @wkhtmltopdf.output_pdf html, output_file(filename)
61
62
  end
62
63
 
64
+ def add_head(html)
65
+ html.insert(0, "\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n</head>\n")
66
+ end
67
+
63
68
  # Load the stylesheets to pdfkit loads the default and the user selected if any
64
69
  def load_stylesheets
65
70
  # Load standard stylesheet
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Gimli
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gimli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
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-08-19 00:00:00.000000000 Z
12
+ date: 2012-11-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: github-markup
@@ -248,7 +248,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
248
248
  version: '0'
249
249
  segments:
250
250
  - 0
251
- hash: 2603706137914885458
251
+ hash: 1103233129587707383
252
252
  required_rubygems_version: !ruby/object:Gem::Requirement
253
253
  none: false
254
254
  requirements:
@@ -257,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
257
257
  version: '0'
258
258
  segments:
259
259
  - 0
260
- hash: 2603706137914885458
260
+ hash: 1103233129587707383
261
261
  requirements: []
262
262
  rubyforge_project: gimli
263
263
  rubygems_version: 1.8.24