From a1527e70115e1ca426d3fa0a1238b0ff1b7c8cc8 Mon Sep 17 00:00:00 2001 From: whiteleaf7 <2nd.leaf@gmail.com> Date: Sat, 10 Sep 2022 13:21:41 +0900 Subject: [PATCH 1/2] avoid dir error with Newer AozoraEpub3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://jbbs.shitaraba.net/bbs/read.cgi/computer/44668/1511245701/280 「AozoraEpub3は公式版作者が失踪したので↓を使用」 を見てその通りに作業し narou init したところ、以下が発生。対処のため、1行追加。 /xxx/narou-3.5.1/lib/extension.rb:30:in `mkdir': No such file or directory @ dir_s_mkdir - /xxx/AozoraEpub3/template/OPS/css_custom (Errno::ENOENT) via https://github.com/whiteleaf7/narou/pull/371 --- lib/extension.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/extension.rb b/lib/extension.rb index 99a80647..5ece7717 100644 --- a/lib/extension.rb +++ b/lib/extension.rb @@ -27,6 +27,7 @@ def File.write(path, string, *options, mode: nil) return super if mode dirpath = File.dirname(path) + FileUtils.makedirs(dirpath) unless Dir.exist?(dirpath) temp_path = File.join(dirpath, SecureRandom.hex(15)) if File.extname(path) == ".yaml" && File.basename(dirpath) != Downloader::SECTION_SAVE_DIR_NAME backup = "#{path}.backup" From b01e4dd2f0cfea899a2a31d46d38d961050d69f2 Mon Sep 17 00:00:00 2001 From: whiteleaf7 <2nd.leaf@gmail.com> Date: Sat, 10 Sep 2022 13:26:38 +0900 Subject: [PATCH 2/2] bump version 3.8.2 --- ChangeLog.md | 6 ++++++ README.md | 4 ++-- lib/version.rb | 2 +- narou.gemspec | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index f38c7c83..4f880446 100755 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,6 +1,12 @@ 更新履歴 - ChangeLog ==================== +3.8.2: 2022/09/10 +----------------- +#### 修正内容 +- フォルダが存在しない場合に自動で作成する様に修正 + + 3.8.1: 2021/12/27 ----------------- #### 修正内容 diff --git a/README.md b/README.md index 275e58c6..0f122c71 100644 --- a/README.md +++ b/README.md @@ -34,10 +34,10 @@ Narou.rb - 小説家になろうのダウンローダ&縦書き整形&管理 更新履歴 - ChangeLog -------------------- -3.8.1: 2021/12/27 +3.8.2: 2022/09/10 ----------------- #### 修正内容 -- ハーメルンのまえがき・あとがきが取得できなくなっていたのを修正 +- フォルダが存在しない場合に自動で作成する様に修正 ---- diff --git a/lib/version.rb b/lib/version.rb index 62622e50..48fd84d7 100644 --- a/lib/version.rb +++ b/lib/version.rb @@ -5,5 +5,5 @@ # module Narou - VERSION = "3.8.1" + VERSION = "3.8.2" end diff --git a/narou.gemspec b/narou.gemspec index 2a13cf03..0c10af33 100644 --- a/narou.gemspec +++ b/narou.gemspec @@ -32,10 +32,10 @@ Gem::Specification.new do |gem| install_message = <<-EOS #{"*" * 60} -3.8.1: 2021/12/27 +3.8.2: 2022/09/10 ----------------- #### 修正内容 -- ハーメルンのまえがき・あとがきが取得できなくなっていたのを修正 +- フォルダが存在しない場合に自動で作成する様に修正 #{"*" * 60} EOS