methan 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/methan/server.rb +2 -2
- data/lib/methan/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a9a5ef7198fb597cece166810ef15bb89d3699c
|
4
|
+
data.tar.gz: 87626a925140f2c9607c3e10bd30ad33fad13c41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 094a4b98e5b1be8dd2d1e133ce7f03c665f0ea7b497904545494db8b6da171b6dd559e70907c7c4a5870d63d73df406a659f1bbe8398f6aed461dd800728335e
|
7
|
+
data.tar.gz: 283b1319d8a9bd2a860bb2f8b60143a0262e7dc12b50bafdcca01cef8e0987f248ce00a8586bf0fe1897c7a169eb57c3a91c84f10c47e86615fefc83eef924ff
|
data/lib/methan/server.rb
CHANGED
@@ -123,11 +123,11 @@ module Methan
|
|
123
123
|
# bindings
|
124
124
|
@file_id = file_id
|
125
125
|
@filename = filename
|
126
|
-
@src = File.read(filepath)
|
126
|
+
@src = File.read(filepath).force_encoding('utf-8')
|
127
127
|
@html = markdown_to_html(@src)
|
128
128
|
|
129
129
|
# to html
|
130
|
-
src = File.read(make_template_path("show.html.erb"))
|
130
|
+
src = File.read(make_template_path("show.html.erb")).force_encoding('utf-8')
|
131
131
|
erb = ERB.new(src)
|
132
132
|
body = erb.result(binding)
|
133
133
|
return gen_response(body)
|
data/lib/methan/version.rb
CHANGED