gimli 0.4.0 → 0.4.1
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/lib/gimli/converter.rb +5 -0
- data/lib/gimli/version.rb +1 -1
- metadata +4 -4
data/lib/gimli/converter.rb
CHANGED
|
@@ -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
|
data/lib/gimli/version.rb
CHANGED
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.
|
|
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
|
|
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:
|
|
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:
|
|
260
|
+
hash: 1103233129587707383
|
|
261
261
|
requirements: []
|
|
262
262
|
rubyforge_project: gimli
|
|
263
263
|
rubygems_version: 1.8.24
|