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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a7db260d051bde44805ae2cbaf37df18da9adc1
4
- data.tar.gz: 397e86edcbb3d8fb87a158b14a1a7851a86bc975
3
+ metadata.gz: 4a9a5ef7198fb597cece166810ef15bb89d3699c
4
+ data.tar.gz: 87626a925140f2c9607c3e10bd30ad33fad13c41
5
5
  SHA512:
6
- metadata.gz: 3afd478c2d066dbb3c6ce0da9f0d2880c63bb9eaa1422c57754e05db3109a38debef1a2bc79bf116ce28160edf175ffb3fb3394e7e3505026d049cb670b61d46
7
- data.tar.gz: 306dd174897384ed05cb1fa5e26393c4052c6172385dc8d4a3615be1c44f51b91dba293d24ad8c5254443e87330e0afb45e8484fa250af07f59421fa7134146f
6
+ metadata.gz: 094a4b98e5b1be8dd2d1e133ce7f03c665f0ea7b497904545494db8b6da171b6dd559e70907c7c4a5870d63d73df406a659f1bbe8398f6aed461dd800728335e
7
+ data.tar.gz: 283b1319d8a9bd2a860bb2f8b60143a0262e7dc12b50bafdcca01cef8e0987f248ce00a8586bf0fe1897c7a169eb57c3a91c84f10c47e86615fefc83eef924ff
@@ -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)
@@ -1,4 +1,4 @@
1
1
  # coding: utf-8
2
2
  module Methan
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: methan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinichirow KAMITO