>>328
返信ありがとうございます。
3.5.1にアップデートしてもほとんど結果は変わりませんでした。Rubyを再インストールして、Narou.rbをインストールするところからやり直しましたが、それでもダメでした
ただ、narou u -a --gl otherおよびハーメルンとカクヨムのアップデートは問題なく機能しました。問題点は小説家になろう掲載の小説に限られるようです。
エラーメッセージもバージョンの部分以外は前と同じです。
C:/Ruby27-x64/lib/ruby/2.7.0/fileutils.rb:1413:in `initialize': No such file or directory @ rb_sysopen - D:/MyNovel/小説データ/小説家になろう/n9902bn デスマーチからはじまる異世界狂想曲( web版 )/[愛七ひろ] デスマーチからはじまる異世界狂想曲( web版 ).epub (Errno::ENOENT)
from C:/Ruby27-x64/lib/ruby/2.7.0/fileutils.rb:1413:in `open'
from C:/Ruby27-x64/lib/ruby/2.7.0/fileutils.rb:1413:in `copy_file'
from C:/Ruby27-x64/lib/ruby/2.7.0/fileutils.rb:511:in `copy_file'
from C:/Ruby27-x64/lib/ruby/2.7.0/fileutils.rb:430:in `block in cp'
from C:/Ruby27-x64/lib/ruby/2.7.0/fileutils.rb:1588:in `block in fu_each_src_dest'
from C:/Ruby27-x64/lib/ruby/2.7.0/fileutils.rb:1602:in `fu_each_src_dest0'
from C:/Ruby27-x64/lib/ruby/2.7.0/fileutils.rb:1586:in `fu_each_src_dest'
from C:/Ruby27-x64/lib/ruby/2.7.0/fileutils.rb:429:in `cp'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:320:in `copy_to_converted_file'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:255:in `block in convert_novel_main'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:248:in `each'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:248:in `convert_novel_main'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:201:in `block (2 levels) in
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/mixin/locker.rb:26:in `lock'convert_novels'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:200:in `block in convert_novels'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:199:in `each'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:199:in `with_index'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:199:in `convert_novels'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:159:in `block in main'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:152:in `each'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:152:in `main'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:133:in `execute'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/commandbase.rb:125:in `execute!'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/commandbase.rb:134:in `execute!'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/command/convert.rb:123:in `block in execute!'
from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/narou-3.5.1/lib/worker.rb:49:in `block (3 levels) in start'
>narou co 69 --backtrace
ID:69 【書籍化予定】『おっぱい揉みたい』って叫んだら、妹の友達と付き合うことになりました。〜未仔ちゃん、ちょっと甘やか しすぎでは?〜 の変換を開始
C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/extension.rb:39:in `rename': Invalid argument @ rb_file_s_rename - (T:/小説まんが/小説データ/小説家になろう/n7863fx 【書籍化予定】『おっぱい揉みたい』って叫んだら、妹の友達と付き合うこ とになりました。/5bd36903bf2cd4df0b32cf537a6476, T:/小説まんが/小説データ/小説家になろう/n7863fx 【書籍化予定】『おっぱ い揉みたい』って叫んだら、妹の友達と付き合うことになりました。/[凪木エコ@F文庫より『おひとり様』発売中] 【書籍化予定】『おっぱい揉みたい』って叫んだら、妹の友達と付き合うことになりました。〜未仔ちゃん、ちょっと甘やかしすぎでは?〜.txt) (Errno::EINVAL)
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/extension.rb:39:in `write'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/novelconverter.rb:404:in `block in convert_main'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/novelconverter.rb:402:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/novelconverter.rb:402:in `each_with_index'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/novelconverter.rb:402:in `convert_main'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/novelconverter.rb:52:in `convert'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:236:in `convert_novel_main'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:201:in `block (2 levels) in convert_novels'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/mixin/locker.rb:26:in `lock'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:200:in `block in convert_novels'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:199:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:199:in `with_index'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:199:in `convert_novels'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:159:in `block in main'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:152:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:152:in `main'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:133:in `execute'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/commandbase.rb:125:in `execute!'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/commandbase.rb:134:in `execute!'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:123:in `block in execute!'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/narou.rb:363:in `concurrency_call'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/command/convert.rb:122:in `execute!'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/commandline.rb:29:in `run'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/commandline.rb:43:in `run!'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/narou.rb:50:in `block in <top (required)>'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/lib/backtracer.rb:16:in `capture'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/narou.rb:49:in `<top (required)>'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/bin/narou:13:in `require_relative'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/narou-3.5.1/bin/narou:13:in `<top (required)>'
from C:/Ruby26-x64/bin/narou:23:in `load'
from C:/Ruby26-x64/bin/narou:23:in `<main>'
だけどnovel.txt.erbのバージョンが上がったのは5年ほど前みたいだから、最近になって初めて出てきたというなら理由はわかりません。
h ttps://github.com/whiteleaf7/narou/commit/da041cb#diff-76ae2d8605226345b0d0d678abbb93cfa848e544537c9e6c2c08a15a4882cea7
一応影響についてはエラー出力してるコードのコメントが参考になると思います。
h ttps://github.com/whiteleaf7/narou/blob/ec1e7233eef8523340771575ba12f5e307578b11/lib/template.rb#L63-L75
> テンプレート内部で使われる変数の変更があった場合に binary_version が上がる
> (変数の追加ではバージョンは上がらない。現在使われている変数の中身が変わった場合は上る)
ttp://(IP) -> /api/list?view_frozen=false&view_nonfrozen=true&_=1610969738748
#<Thread:0x00000000092fd1f0 C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/downloader.rb:762:in `get_latest_table_of_contents': wrong number of arguments (given 0, expected 1) (ArgumentError)
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/command/update/general_lastup_updater.rb:66:in `block in update_other_novels'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/command/update/general_lastup_updater.rb:61:in `each'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/command/update/general_lastup_updater.rb:61:in `each_with_index'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/command/update/general_lastup_updater.rb:61:in `update_other_novels'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/command/update.rb:242:in `update_general_lastup'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/command/update.rb:76:in `block in initialize'
from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1591:in `block in parse_in_order'
from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1577:in `catch'
from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1577:in `parse_in_order'
from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1571:in `order!'
from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1668:in `permute!'
from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1693:in `parse!'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/commandbase.rb:59:in `execute'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/command/update.rb:140:in `execute'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/commandbase.rb:125:in `execute!'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/commandbase.rb:134:in `execute!'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/commandline.rb:29:in `run'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/commandline.rb:43:in `run!'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/web/appserver.rb:791:in `block (2 levels) in <class:AppServer>'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/web/web_worker.rb:47:in `block (3 levels) in start'
[2021-01-18 20:35:53] ERROR ArgumentError: wrong number of arguments (given 0, expected 1)\n\tC:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.6.0/lib/command/update/general_lastup_updater.rb:66:in `block in update_other_novels'
(IP) - - [18/Jan/2021:20:36:01 東京 (標準時)] "POST /api/clear_history HTTP/1.1" 200 0
[06:19:57] Narou.rb version 3.7.0
[06:20:22] 最新話掲載日を確認しています...
[06:20:22] C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/downloader.rb:762:in `get_latest_table_of_contents': wrong number of arguments (given 0, expected 1) (ArgumentError)
[06:20:22] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/command/update/general_lastup_updater.rb:66:in `block in update_other_novels'
[06:20:22] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/command/update/general_lastup_updater.rb:61:in `each'
[06:20:22] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/command/update/general_lastup_updater.rb:61:in `each_with_index'
[06:20:22] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/command/update/general_lastup_updater.rb:61:in `update_other_novels'
[06:20:22] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/command/update.rb:242:in `update_general_lastup'
[06:20:22] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/command/update.rb:76:in `block in initialize'
[06:20:22] from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1591:in `block in parse_in_order'
[06:20:22] from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1577:in `catch'
[06:20:23] from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1577:in `parse_in_order'
[06:20:23] from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1571:in `order!'
[06:20:23] from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1668:in `permute!'
[06:20:23] from C:/Ruby/30/lib/ruby/3.0.0/optparse.rb:1693:in `parse!'
[06:20:23] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/commandbase.rb:59:in `execute'
[06:20:23] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/command/update.rb:140:in `execute'
[06:20:23] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/commandbase.rb:125:in `execute!'
[06:20:23] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/commandbase.rb:134:in `execute!'
[06:20:23] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/commandline.rb:29:in `run'
[06:20:23] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/commandline.rb:43:in `run!'
[06:20:23] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/web/appserver.rb:791:in `block (2 levels) in <class:AppServer>'
[06:20:23] from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.0/lib/web/web_worker.rb:47:in `block (3 levels) in start'
>Ver.3.7からRuby3系で追加エラー発生
[08:13:07] ID:* * の変換を開始
[08:13:15] Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments.
[08:13:15] {:uplevel=>1}
[08:13:15] Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead.
[08:13:15] {:uplevel=>1}
[08:13:15] 縦書用の変換が終了しました
C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
12: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/web/web_worker.rb:47:in `block (3 levels) in start'
11: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/web/appserver.rb:575:in `block (2 levels) in <class:AppServer>'
10: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/commandbase.rb:125:in `execute!'
9: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/command/update.rb:157:in `execute'
8: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/command/update.rb:157:in `each_with_index'
7: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/command/update.rb:157:in `each'
6: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/command/update.rb:182:in `block in execute'
5: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/downloader.rb:332:in `start_download'
4: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/downloader.rb:370:in `run_download'
3: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/downloader.rb:831:in `update_body_check'
2: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/downloader.rb:831:in `select'
1: from C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/downloader.rb:885:in `block in update_body_check'
C:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/downloader.rb:885:in `>': comparison of String with Time failed (ArgumentError)
[2021-04-03 14:39:42] ERROR ArgumentError: comparison of String with Time failed\n\tC:/Ruby/26/lib/ruby/gems/2.6.0/gems/narou-3.7.1/lib/downloader.rb:885:in `block in update_body_check'
2.7系だと
C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
12: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/web/web_worker.rb:47:in `block (3 levels) in start'
11: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/web/appserver.rb:575:in `block (2 levels) in <class:AppServer>'
10: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/commandbase.rb:125:in `execute!'
9: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/command/update.rb:157:in `execute'
8: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/command/update.rb:157:in `each_with_index'
7: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/command/update.rb:157:in `each'
6: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/command/update.rb:182:in `block in execute'
5: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/downloader.rb:332:in `start_download'
4: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/downloader.rb:370:in `run_download'
3: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/downloader.rb:831:in `update_body_check'
2: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/downloader.rb:831:in `select'
1: from C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/downloader.rb:885:in `block in update_body_check'
C:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/downloader.rb:885:in `>': comparison of String with Time failed (ArgumentError)
[2021-04-03 14:23:35] ERROR ArgumentError: comparison of String with Time failed\n\tC:/Ruby/27/lib/ruby/gems/2.7.0/gems/narou-3.7.1/lib/downloader.rb:885:in `block in update_body_check'
C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/web/web_worker.rb:46 run> terminated with exception (report_on_exception is true):
C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/downloader.rb:885:in `>': comparison of String with Time failed (ArgumentError)
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/downloader.rb:885:in `block in update_body_check'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/downloader.rb:831:in `select'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/downloader.rb:831:in `update_body_check'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/downloader.rb:370:in `run_download'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/downloader.rb:332:in `start_download'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/command/update.rb:182:in `block in execute'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/command/update.rb:157:in `each'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/command/update.rb:157:in `each_with_index'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/command/update.rb:157:in `execute'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/commandbase.rb:125:in `execute!'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/web/appserver.rb:575:in `block (2 levels) in <class:AppServer>'
from C:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/web/web_worker.rb:47:in `block (3 levels) in start'
[2021-04-03 14:18:44] ERROR ArgumentError: comparison of String with Time failed\n\tC:/Ruby/30/lib/ruby/gems/3.0.0/gems/narou-3.7.1/lib/downloader.rb:885:in `block in update_body_check'
Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments.
{:uplevel=>1}
Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead.
{:uplevel=>1}
何が起きたのか:
Epubに変換する際、以下のwarningが表示されます。
Epubの出力含めNarou.rbの動作自体に問題はありません。
Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments.
{:uplevel=>1}
Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead.
{:uplevel=>1}