narou 3.9.0 → 3.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a9fafd6af1ebb3b07da36ae193a2de21a750b00797ef805f6d3ade778e65dff
4
- data.tar.gz: 3e260f769599b31e1e52290c78842be937b6dc34b6a002ca73dd30f351fe079c
3
+ metadata.gz: 0cba3073bd20cc176a06ad7d93226804233c5678f68a161246b136ce8acf43dc
4
+ data.tar.gz: 972ce99e7897a82ed37fd0b53766ae44b4734ef87bcb14efc0bc3613b26463f8
5
5
  SHA512:
6
- metadata.gz: 9cd647d5a413bb188640688ff07fcd82f21604e3aca83faebaf3e3bb8f39db91a517c13483cddc69ffef0f674570835273b6a9a57487565d6ab4fe61c2e8053c
7
- data.tar.gz: a568312cc5fd8349789c1061a227bd39e31db63769ad75011f8d0bcd36fe95bb6cd0e57749930f8d0d7cf4572e862c2a51499235dd04b7590c6fd04af0259039
6
+ metadata.gz: 55a9085a3ff2956615dcd37ace30dd716c185f5fd13222f97dbeef431ae490bf435c07fa85e9d27ba95bd6960ee72088abac373ec9394fea4b475b1d3bf44708
7
+ data.tar.gz: 0b0dc1381c4b4675c440da1e0420ac928e63fcf937c614d0eb0fc36bbb0ab46fd2807ab6196786da83d4717e75af0586159bbac6f299a265257244c69fc04f08
data/ChangeLog.md CHANGED
@@ -1,6 +1,12 @@
1
1
  更新履歴 - ChangeLog
2
2
  ====================
3
3
 
4
+ 3.9.1: 2024-09-19
5
+ -----------------
6
+ #### 修正内容
7
+ - 小説家になろうの目次修正に対応 #432 @etg-lt
8
+
9
+
4
10
  3.9.0: 2024-04-02
5
11
  -----------------
6
12
  #### 修正内容
data/README.md CHANGED
@@ -34,13 +34,10 @@ Narou.rb - 小説家になろうのダウンローダ&縦書き整形&管理
34
34
  更新履歴 - ChangeLog
35
35
  --------------------
36
36
 
37
- 3.9.0: 2024-04-02
37
+ 3.9.1: 2024-09-19
38
38
  -----------------
39
39
  #### 修正内容
40
- - 小説家になろうの目次修正に対応
41
- - カクヨムの目次修正に対応
42
-
43
- thanks for contributors: @topstone, @rogenobl, @happynow, @etg-lt
40
+ - 小説家になろうの目次修正に対応 #432 @etg-lt
44
41
 
45
42
  ----
46
43
 
data/commitversion CHANGED
@@ -1 +1 @@
1
- 89566d7
1
+ eb3b13e
data/lib/version.rb CHANGED
@@ -5,5 +5,5 @@
5
5
  #
6
6
 
7
7
  module Narou
8
- VERSION = "3.9.0"
8
+ VERSION = "3.9.1"
9
9
  end
data/narou.gemspec CHANGED
@@ -32,13 +32,10 @@ Gem::Specification.new do |gem|
32
32
  install_message = <<-EOS
33
33
  #{"*" * 60}
34
34
 
35
- 3.9.0: 2024-04-02
35
+ 3.9.1: 2024-09-19
36
36
  -----------------
37
37
  #### 修正内容
38
- - 小説家になろうの目次修正に対応
39
- - カクヨムの目次修正に対応
40
-
41
- thanks for contributors: @topstone, @rogenobl, @happynow, @etg-lt
38
+ - 小説家になろうの目次修正に対応 #432 @etg-lt
42
39
 
43
40
  #{"*" * 60}
44
41
  EOS
@@ -16,32 +16,35 @@ version: 2.0
16
16
  # 目次取得設定
17
17
  toc_url: https://\\k<domain>/\\k<ncode>/
18
18
  subtitles: |-
19
- (?:<div class="chapter_title">(?<chapter>.+?)</div>
19
+ (?:<div class="p-eplist__chapter-title">(?<chapter>.+?)</div>
20
20
 
21
- )?<dl class="novel_sublist2">
22
- <dd class="subtitle">
23
- <a href="(?<href>/.+?/(?<index>\d+?)/)">(?<subtitle>.+?)</a>
24
- </dd>
25
- <dt class="long_update">
26
- (?<subdate>.+?)(?:<span title="(?<subupdate>.+?) 改稿">(<u>改</u>)</span>)?</dt>
27
- </dl>
28
- next_toc: <a href="/(?<next_page>[^"]+)" class="novelview_pager-next">
21
+ )?<div class="p-eplist__sublist">
22
+ <a href="(?<href>/.+?/(?<index>\d+?)/)" class="p-eplist__subtitle">
23
+ (?<subtitle>.+?)
24
+ </a>
25
+
26
+ <div class="p-eplist__update">
27
+ (?:<span class="p-eplist__favep">.+?</span></span>)?(?<subdate>.+?)
28
+ (?:<span title="(?<subupdate>.+?) 改稿">(<u>改</u>)</span>
29
+ )?</div>
30
+ </div>
31
+ next_toc: <a href="/(?<next_page>[^"]+)" class="c-pager__item c-pager__item--next">
29
32
  next_url: https://\\k<domain>/\\k<next_page>
30
33
  # 最大のページ数を得る。固定の数字でも可。
31
- toc_page_max: <a href="/[^"]+p=(?<toc_page_max>\d+)" class="novelview_pager-last">
34
+ toc_page_max: <a href="/[^"]+p=(?<toc_page_max>\d+)" class="c-pager__item c-pager__item--last">
32
35
 
33
36
  # ------------------------------------------------------------
34
37
  # 本文取得設定
35
38
  body_pattern: |-
36
- <div id="novel_honbun" class="novel_view">
39
+ <div class="js-novel-text p-novel__text">
37
40
  (?<body>.+?)
38
41
  ?</div>
39
42
  introduction_pattern: |-
40
- <div id="novel_p" class="novel_view">
43
+ <div class="js-novel-text p-novel__text p-novel__text--preface">
41
44
  (?<introduction>.+?)
42
45
  ?</div>
43
46
  postscript_pattern: |-
44
- <div id="novel_a" class="novel_view">
47
+ <div class="js-novel-text p-novel__text p-novel__text--afterword">
45
48
  (?<postscript>.+?)
46
49
  ?</div>
47
50
 
@@ -68,7 +71,7 @@ novel_type_string:
68
71
  短編: 2
69
72
 
70
73
  # general_all_no 掲載話数
71
- ga: </span>全(?<general_all_no>\d+)
74
+ ga: </span>全(?<general_all_no>\d+)エピソード
72
75
 
73
76
  # story あらすじ
74
77
  s: <td class="ex">(?<story>.+?)</td>
@@ -80,14 +83,14 @@ gf: |-
80
83
 
81
84
  # novelupdated_at 小説の更新時刻。連載小説だと書いてないので最終掲載日で代用
82
85
  nu: |-
83
- <th>(?:最終更新日|最終話掲載日)</th>
86
+ <th>(?:最終更新日|最新掲載日|最終掲載日)</th>
84
87
  <td>(?:
85
88
  )?(?<novelupdated_at>.+?)(?:
86
89
  )?</td>
87
90
 
88
- # general_lastup 最終話掲載日
91
+ # general_lastup 最終掲載日
89
92
  gl: |-
90
- <th>最終話掲載日</th>
93
+ <th>(?:最新掲載日|最終掲載日)</th>
91
94
  <td>(?<general_lastup>.+?)</td>
92
95
 
93
96
  # writer 作者名
@@ -21,32 +21,35 @@ version: 2.0
21
21
  # 目次取得設定
22
22
  toc_url: https://\\k<domain>/\\k<ncode>/
23
23
  subtitles: |-
24
- (?:<div class="chapter_title">(?<chapter>.+?)</div>
24
+ (?:<div class="p-eplist__chapter-title">(?<chapter>.+?)</div>
25
25
 
26
- )?<dl class="novel_sublist2">
27
- <dd class="subtitle">
28
- <a href="(?<href>/.+?/(?<index>\d+?)/)">(?<subtitle>.+?)</a>
29
- </dd>
30
- <dt class="long_update">
31
- (?<subdate>.+?)(?:<span title="(?<subupdate>.+?) 改稿">(<u>改</u>)</span>)?</dt>
32
- </dl>
33
- next_toc: <a href="/(?<next_page>[^"]+)" class="novelview_pager-next">
26
+ )?<div class="p-eplist__sublist">
27
+ <a href="(?<href>/.+?/(?<index>\d+?)/)" class="p-eplist__subtitle">
28
+ (?<subtitle>.+?)
29
+ </a>
30
+
31
+ <div class="p-eplist__update">
32
+ (?:<span class="p-eplist__favep">.+?</span></span>)?(?<subdate>.+?)
33
+ (?:<span title="(?<subupdate>.+?) 改稿">(<u>改</u>)</span>
34
+ )?</div>
35
+ </div>
36
+ next_toc: <a href="/(?<next_page>[^"]+)" class="c-pager__item c-pager__item--next">
34
37
  next_url: https://\\k<domain>/\\k<next_page>
35
38
  # 最大のページ数を得る。固定の数字でも可。
36
- toc_page_max: <a href="/[^"]+p=(?<toc_page_max>\d+)" class="novelview_pager-last">
39
+ toc_page_max: <a href="/[^"]+p=(?<toc_page_max>\d+)" class="c-pager__item c-pager__item--last">
37
40
 
38
41
  # ------------------------------------------------------------
39
42
  # 本文取得設定
40
43
  body_pattern: |-
41
- <div id="novel_honbun" class="novel_view">
44
+ <div class="js-novel-text p-novel__text">
42
45
  (?<body>.+?)
43
46
  ?</div>
44
47
  introduction_pattern: |-
45
- <div id="novel_p" class="novel_view">
48
+ <div class="js-novel-text p-novel__text p-novel__text--preface">
46
49
  (?<introduction>.+?)
47
50
  ?</div>
48
51
  postscript_pattern: |-
49
- <div id="novel_a" class="novel_view">
52
+ <div class="js-novel-text p-novel__text p-novel__text--afterword">
50
53
  (?<postscript>.+?)
51
54
  ?</div>
52
55
 
@@ -73,7 +76,7 @@ novel_type_string:
73
76
  短編: 2
74
77
 
75
78
  # general_all_no 掲載話数
76
- ga: </span>全(?<general_all_no>\d+)
79
+ ga: </span>全(?<general_all_no>\d+)エピソード
77
80
 
78
81
  # story あらすじ
79
82
  s: <td class="ex">(?<story>.+?)</td>
@@ -85,14 +88,14 @@ gf: |-
85
88
 
86
89
  # novelupdated_at 小説の更新時刻。連載小説だと書いてないので最終掲載日で代用
87
90
  nu: |-
88
- <th>(?:最終更新日|最終話掲載日)</th>
91
+ <th>(?:最終更新日|最新掲載日|最終掲載日)</th>
89
92
  <td>(?:
90
93
  )?(?<novelupdated_at>.+?)(?:
91
94
  )?</td>
92
95
 
93
- # general_lastup 最終話掲載日
96
+ # general_lastup 最終掲載日
94
97
  gl: |-
95
- <th>最終話掲載日</th>
98
+ <th>(?:最新掲載日|最終掲載日)</th>
96
99
  <td>(?<general_lastup>.+?)</td>
97
100
 
98
101
  # writer 作者名
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: narou
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.9.0
4
+ version: 3.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - whiteleaf7
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-02 00:00:00.000000000 Z
11
+ date: 2024-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: termcolorlight
@@ -710,13 +710,10 @@ metadata: {}
710
710
  post_install_message: |
711
711
  ************************************************************
712
712
 
713
- 3.9.0: 2024-04-02
713
+ 3.9.1: 2024-09-19
714
714
  -----------------
715
715
  #### 修正内容
716
- - 小説家になろうの目次修正に対応
717
- - カクヨムの目次修正に対応
718
-
719
- thanks for contributors: @topstone, @rogenobl, @happynow, @etg-lt
716
+ - 小説家になろうの目次修正に対応 #432 @etg-lt
720
717
 
721
718
  ************************************************************
722
719
  rdoc_options: []