m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2019-08-12 21:44:37 -0700
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2019-08-12 21:44:37 -0700
commit4626d5b3ae67015bc153ea7543792bf0c52bc26a (patch)
treedc4b07f39c1d19884531a055001907c318c7fbb3
parent07315dd10f20ccf83580ecfa0ea1c68c3acafa7c (diff)
Remove old encoding workaround
-rw-r--r--lib/blog.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/blog.rb b/lib/blog.rb
index fe552e5..656f815 100644
--- a/lib/blog.rb
+++ b/lib/blog.rb
@@ -1,7 +1,7 @@
require 'date'
def parse_post filename
- file_raw = File.read(src filename).force_encoding('UTF-8').split('---')
+ file_raw = File.read(src filename).split('---')
post = YAML.load file_raw[0]
post['date'] = DateTime.parse(post['date'])