lib/WWWCHtmlConverter/WWWCHTMLConverterLib.rb in WWWCHtmlConverter-0.0.1 vs lib/WWWCHtmlConverter/WWWCHTMLConverterLib.rb in WWWCHtmlConverter-0.0.2

- old
+ new

@@ -7,16 +7,16 @@ module WWWCHTMLConverter # Your code goes here... class CommandLine < Thor attr_accessor :wwwc - desc "in WWWwwCのディレクトリ", "out アウトプットディレクトリ" + desc "in_to WWWwwCのディレクトリ", "out アウトプットディレクトリ" def initialize() @wwwc = WWWC.new() end - def in(dir_path) + def in_to(dir_path) @wwwc.dir_path_in = dir_path end def out(dir_path) @wwwc.dir_path_out = dir_path @@ -101,10 +101,10 @@ end } } @items.each{|wwwc| - f = File.open(wwwc.item_dat_pach, 'r:utf-8'){|f| + f = File.open(wwwc.item_dat_pach, 'r:SJIS'){|f| @source = f.read # 全て読み込む } } end