Skip to content

Commit fde4f59

Browse files
committed
Enforced opening in utf-8.
Sometimes *cough*shoes*cough* things don't respect the encodings correctly. So we want to open things in utf-8 mode for reals.
1 parent fc2e0c0 commit fde4f59

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/hackety_hack/lessons.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def find_by_slug(slug)
2626
end
2727

2828
def all
29-
FILE_LIST.collect{|file| Metadown.render(File.read(file)) }
29+
FILE_LIST.collect{|file| Metadown.render(File.read(file, :encoding => "utf-8")) }
3030
end
3131

3232
def static_directory
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module HacketyHack
22
module Lessons
3-
VERSION = "1.1.0"
3+
VERSION = "1.1.1"
44
end
55
end

0 commit comments

Comments
 (0)