KITAITI Makoto
null+****@clear*****
Sun Sep 20 14:39:40 JST 2015
KITAITI Makoto 2015-09-20 14:39:40 +0900 (Sun, 20 Sep 2015) New Revision: 4eb85bd83aff8224c1bf75d8ccc4cbfd8332ec4a https://github.com/ranguba/epub-searcher/commit/4eb85bd83aff8224c1bf75d8ccc4cbfd8332ec4a Message: Accept files with Japanese characters in their name Modified files: lib/epub-searcher/epub-file.rb Modified: lib/epub-searcher/epub-file.rb (+1 -2) =================================================================== --- lib/epub-searcher/epub-file.rb 2015-09-20 14:39:08 +0900 (922c1ca) +++ lib/epub-searcher/epub-file.rb 2015-09-20 14:39:40 +0900 (296eeac) @@ -12,8 +12,7 @@ module EPUBSearcher attr_reader :local_path def initialize(uri) - scheme = URI(uri).scheme - if !scheme || scheme == 'file' + if File.file? uri @local_path = uri else @local_path = get_remote_epub_file(uri) -------------- next part -------------- HTML����������������������������...Download