File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 33# Author:: progd <http://d.hatena.ne.jp/progd/20120429/automatic_ruby_filter_full_feed>
44# 774 <http://id774.net>
55# Created:: Apr 29, 2012
6- # Updated:: Apr 5 , 2013
6+ # Updated:: Jun 23 , 2013
77# Copyright:: progd
88# 774 Copyright (c) 2012-2013
99# License:: Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0.
@@ -38,7 +38,7 @@ def run
3838
3939 def get_siteinfo
4040 Automatic ::Log . puts ( :info , "Loading siteinfo from #{ @config [ 'siteinfo' ] } " )
41- siteinfo = JSON . load ( open ( File . join ( assets_dir , @config [ 'siteinfo' ] ) ) . read )
41+ siteinfo = JSON . load ( open ( File . join ( assets_dir , @config [ 'siteinfo' ] ) ) . read . force_encoding ( "UTF-8" ) )
4242 siteinfo . select! { |info | SITEINFO_TYPES . include? ( info [ 'data' ] [ 'type' ] ) }
4343 siteinfo . sort! { |a , b |
4444 atype , btype = a [ 'data' ] [ 'type' ] , b [ 'data' ] [ 'type' ]
You can’t perform that action at this time.
0 commit comments