narou
narou copied to clipboard
Narou.rb - 小説家になろうのダウンローダ&縦書き整形&管理アプリ。Kindle(などの電子書籍端末)でなろうを読む場合に超便利です!

いくつかまとめてプルリクします。 ### fix: /api/diff_clean pass Integer and NoMethodError (ruby Feature #15231 : Remove `Object#=~`) /api/diff_clean で`CommandLine.run!`に`Integer`が渡されているが、ruby3.2より`Object#=~`が削除されたため`Integer#=~`がNoMethodErrorとなる いったんto_sでStringにして処理する ### fix: undefined method `empty?' for nil:NilClass レアケースだが、小説の保存フォルダが消えている場合、`get_sorted_cache_list`がnilを返すためNoMethodErrorとなる empty?ではなくactivesupportのblank?を使う ### fix: Downloader#get_cache_list return...
Ruby3.2以降、入出力で`IO::TimeoutError`が発生する可能性がある。 `OpenURI::HTTPError`他、エラー処理している3ヶ所について、`IO::TimeoutError`も加えた。 なお、3.1以前では未定義になるので`ダミーのIO::TimeoutError`を定義している。
[使用ソフトウェアヴァージョン] narou version 3.8.2 AozoraEpub3 1.1.1b13Q [設定] device: epub default.enable_half_indent_bracket: false default.slice_size: 1200 default.author_comment_style: simple [再現手順] $ narou download n0692es && narou convert n0692es 生成されたepubのうち、二冊目以降はepub validationを通りません。nav.xhtmlが不正と言われます。 [説明] これはAozoraEpub3側の問題かも知れませんが、.narou/local_setting.yaml ファイル内にdefault.slice_sizeを設定して(例 "narou...
The original AozoraEpub3 has stopped updating for a long time (last updated in 2016). And has caused some image conversion error with openjdk installation (namely com.sun.image.codec.jpeg). I personally found this...
Bumps [rack](https://github.com/rack/rack) from 2.2.3.1 to 2.2.6.4. Changelog Sourced from rack's changelog. Changelog All notable changes to this project will be documented in this file. For info on how to format...
Updates the requirements on [sinatra](https://github.com/sinatra/sinatra) to permit the latest version. Changelog Sourced from sinatra's changelog. Unreleased Your new feature here. 3.0.6 / 2023-04-11 Fix: Add support to keep open streaming...
普通に narou.rb を使っている分には問題ないのですが、`-W2` で警告を表示すると、`warning: Narou::Logger#write is outdated interface which accepts just one argument` と表示されます。 推測ですが、 `IO#write` の引数が [Ruby 2.4 まで `write(str)`](https://docs.ruby-lang.org/ja/2.4.0/method/IO/i/write.html)、[Ruby 2.5 から `write(*str)`](https://docs.ruby-lang.org/ja/2.5.0/method/IO/i/write.html) になったことが影響しているように見えます。 修正しなくても動作しますが、一応ご報告まで。(この issue は close していただいて構いません。)
テストデータにある narou/spec/fixtures/.test_novel_data/ハーメルン/80040 Asmody Story を使って再現試験しましたが、 $ narou download https://novel.syosetu.org/80040/ [ERROR] 何らかの理由により目次が取得できませんでした(403 Forbidden) [ERROR] https://syosetu.org/novel/80040/ の目次データが取得出来ませんでした $ narou version 3.9.0 という塩梅です。ブラウザからは特にログインも何も無しでサイトアクセスできます。