narou 3.4.8 → 3.7.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of narou might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.circleci/config.yml +2 -2
- data/.rubocop.yml +14 -14
- data/ChangeLog.md +27 -0
- data/Gemfile +0 -14
- data/Gemfile.lock +85 -100
- data/README.md +10 -5
- data/lib/command/setting.rb +3 -3
- data/lib/commandbase.rb +1 -1
- data/lib/commandline.rb +1 -1
- data/lib/converterbase.rb +1 -1
- data/lib/downloader.rb +4 -4
- data/lib/helper.rb +4 -4
- data/lib/html.rb +2 -2
- data/lib/illustration.rb +11 -2
- data/lib/loadconverter.rb +5 -3
- data/lib/narou.rb +276 -270
- data/lib/narou/api.rb +1 -1
- data/lib/novelconverter.rb +5 -4
- data/lib/novelinfo.rb +1 -1
- data/lib/sitesetting.rb +1 -1
- data/lib/version.rb +1 -1
- data/lib/web/appserver.rb +4 -2
- data/lib/web/progressbar4web.rb +2 -2
- data/narou.gemspec +19 -9
- metadata +178 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e7602ba2d969aaf94fd33d0a1ba7f706149861cb90b6d7924cc2c8f66081416
|
4
|
+
data.tar.gz: 5d0dc68095c855a69a3af7837949a2902bd2509cf6febae7d8c9589ea1fef301
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9f48b127ae554760619b1cfdbd61041b3284ee675a9c6a00fb91adfe54968d8c0f5f776eee036bdf8fadb59308169a2732ac0413c3da3223e18c0fbe0bc83fa
|
7
|
+
data.tar.gz: c368440c723fec9af88932da94755d787720bddf393413467ddbcb86c39b41cdb629e980b79f76db6acc8b7715cd55b41a4e20f998a975caf75259434dd8d46a
|
data/.circleci/config.yml
CHANGED
data/.rubocop.yml
CHANGED
@@ -8,7 +8,7 @@ AllCops:
|
|
8
8
|
- "narou.gemspec"
|
9
9
|
- "spec/**/*"
|
10
10
|
DisplayCopNames: true
|
11
|
-
TargetRubyVersion: 2.
|
11
|
+
TargetRubyVersion: 2.5
|
12
12
|
|
13
13
|
Metrics/ClassLength:
|
14
14
|
CountComments: false
|
@@ -30,7 +30,7 @@ Metrics/BlockNesting:
|
|
30
30
|
Metrics/CyclomaticComplexity:
|
31
31
|
Max: 8
|
32
32
|
|
33
|
-
|
33
|
+
Layout/LineLength:
|
34
34
|
Max: 140
|
35
35
|
AllowURI: true
|
36
36
|
URISchemes:
|
@@ -56,9 +56,6 @@ Style/AndOr:
|
|
56
56
|
Style/BlockDelimiters:
|
57
57
|
Enabled: false
|
58
58
|
|
59
|
-
Style/BracesAroundHashParameters:
|
60
|
-
Enabled: false
|
61
|
-
|
62
59
|
Style/CollectionMethods:
|
63
60
|
PreferredMethods:
|
64
61
|
detect: "detect"
|
@@ -106,7 +103,7 @@ Style/NumericLiterals:
|
|
106
103
|
|
107
104
|
# has_ から始まるメソッドは許可する
|
108
105
|
Naming/PredicateName:
|
109
|
-
|
106
|
+
ForbiddenPrefixes:
|
110
107
|
- "is_"
|
111
108
|
- "have_"
|
112
109
|
NamePrefix:
|
@@ -116,7 +113,7 @@ Naming/PredicateName:
|
|
116
113
|
Style/GlobalVars:
|
117
114
|
Enabled: false
|
118
115
|
|
119
|
-
Layout/
|
116
|
+
Layout/FirstHashElementIndentation:
|
120
117
|
Enabled: false
|
121
118
|
|
122
119
|
Layout/LeadingCommentSpace:
|
@@ -137,7 +134,7 @@ Style/NegatedIf:
|
|
137
134
|
Style/Not:
|
138
135
|
Enabled: true
|
139
136
|
|
140
|
-
PercentLiteralDelimiters:
|
137
|
+
Style/PercentLiteralDelimiters:
|
141
138
|
PreferredDelimiters:
|
142
139
|
"%": "!!"
|
143
140
|
"%i": "()"
|
@@ -158,7 +155,7 @@ Style/RedundantReturn:
|
|
158
155
|
Style/RedundantSelf:
|
159
156
|
Enabled: false
|
160
157
|
|
161
|
-
SignalException:
|
158
|
+
Style/SignalException:
|
162
159
|
EnforcedStyle: only_raise
|
163
160
|
|
164
161
|
Layout/SpaceAfterComma:
|
@@ -179,10 +176,10 @@ Style/StringLiterals:
|
|
179
176
|
Style/SymbolProc:
|
180
177
|
Enabled: true
|
181
178
|
|
182
|
-
Layout/
|
179
|
+
Layout/IndentationStyle:
|
183
180
|
Enabled: true
|
184
181
|
|
185
|
-
Layout/
|
182
|
+
Layout/TrailingEmptyLines:
|
186
183
|
Enabled: false
|
187
184
|
|
188
185
|
Style/TrailingCommaInArrayLiteral:
|
@@ -197,7 +194,7 @@ Style/TrivialAccessors:
|
|
197
194
|
Style/UnlessElse:
|
198
195
|
Enabled: true
|
199
196
|
|
200
|
-
VariableName:
|
197
|
+
Naming/VariableName:
|
201
198
|
EnforcedStyle: snake_case
|
202
199
|
|
203
200
|
Style/WordArray:
|
@@ -221,13 +218,13 @@ Style/FrozenStringLiteralComment:
|
|
221
218
|
Layout/MultilineOperationIndentation:
|
222
219
|
Enabled: false
|
223
220
|
|
224
|
-
Layout/
|
221
|
+
Layout/HeredocIndentation:
|
225
222
|
Enabled: true
|
226
223
|
|
227
224
|
Style/NumericPredicate:
|
228
225
|
Enabled: false
|
229
226
|
|
230
|
-
Lint/
|
227
|
+
Lint/SuppressedException:
|
231
228
|
Enabled: false
|
232
229
|
|
233
230
|
Lint/RescueException:
|
@@ -241,3 +238,6 @@ Style/FormatStringToken:
|
|
241
238
|
|
242
239
|
Layout/EmptyLineAfterGuardClause:
|
243
240
|
Enabled: false
|
241
|
+
|
242
|
+
Style/StderrPuts:
|
243
|
+
Enabled: false
|
data/ChangeLog.md
CHANGED
@@ -1,6 +1,33 @@
|
|
1
1
|
更新履歴 - ChangeLog
|
2
2
|
====================
|
3
3
|
|
4
|
+
3.7.0: 2021/01/23
|
5
|
+
-----------------
|
6
|
+
#### 修正内容
|
7
|
+
- Apple Silicon 搭載 Mac でも動く様にライブラリをアップデート
|
8
|
+
- device を kobo に設定し、_ebook-filename-length-limit でファイル名が制限され
|
9
|
+
た場合に send コマンドが正常に実行できない不具合を修正
|
10
|
+
|
11
|
+
3.6.0: 2021/01/02
|
12
|
+
-----------------
|
13
|
+
#### 修正内容
|
14
|
+
- Ruby 3.0 に対応
|
15
|
+
|
16
|
+
|
17
|
+
3.5.1: 2020/03/21
|
18
|
+
-----------------
|
19
|
+
#### 修正内容
|
20
|
+
- 小説家になろう系列の挿絵をダウンロード時に、サムネイル画像を取得するように
|
21
|
+
なってしまっていたのを修正
|
22
|
+
- Ruby 2.7 で narou setting -l を実行時に警告が大量に出ていたのを修正
|
23
|
+
|
24
|
+
|
25
|
+
3.5.0: 2020/02/16
|
26
|
+
-----------------
|
27
|
+
#### 修正内容
|
28
|
+
- Ruby 2.7 に対応
|
29
|
+
|
30
|
+
|
4
31
|
3.4.8: 2019/11/27
|
5
32
|
-----------------
|
6
33
|
#### 修正内容
|
data/Gemfile
CHANGED
@@ -2,17 +2,3 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
# Specify your gem's dependencies in narou.gemspec
|
4
4
|
gemspec
|
5
|
-
|
6
|
-
# development gems
|
7
|
-
|
8
|
-
gem "rspec"
|
9
|
-
gem "rspec-core"
|
10
|
-
gem "rspec-retry"
|
11
|
-
gem "rspec_junit_formatter"
|
12
|
-
gem "timecop"
|
13
|
-
gem "pry"
|
14
|
-
gem "pry-byebug"
|
15
|
-
gem "better_errors"
|
16
|
-
gem "binding_of_caller"
|
17
|
-
gem "awesome_print"
|
18
|
-
gem "simplecov", require: false, group: :test
|
data/Gemfile.lock
CHANGED
@@ -1,156 +1,141 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
narou (3.
|
5
|
-
activesupport (
|
4
|
+
narou (3.7.0)
|
5
|
+
activesupport (>= 6.1, < 8.0)
|
6
6
|
diff-lcs (~> 1.2, >= 1.2.5)
|
7
7
|
erubis (~> 2.7)
|
8
|
+
ffi (>= 1.4.2)
|
8
9
|
haml (>= 5.1.2, < 6)
|
9
10
|
mail (~> 2.6.0, >= 2.6.6)
|
10
11
|
memoist (~> 0.11.0)
|
11
12
|
open_uri_redirections (~> 0.2, >= 0.2.1)
|
12
13
|
pony (~> 1, >= 1.11)
|
13
14
|
rubyzip (~> 2.0, >= 2.0.0)
|
14
|
-
|
15
|
-
sinatra (~>
|
16
|
-
sinatra-contrib (~>
|
15
|
+
sassc (~> 2.4)
|
16
|
+
sinatra (~> 2.0, >= 2.0.8.1)
|
17
|
+
sinatra-contrib (~> 2.0, >= 2.0.8.1)
|
17
18
|
systemu (~> 2.6, >= 2.6.5)
|
18
19
|
termcolorlight (~> 1.0, >= 1.1.1)
|
19
20
|
tilt (~> 2.0, >= 2.0.10)
|
20
21
|
unicode-display_width (~> 1.4)
|
22
|
+
webrick (~> 1.7)
|
21
23
|
|
22
24
|
GEM
|
23
25
|
remote: https://rubygems.org/
|
24
26
|
specs:
|
25
|
-
activesupport (
|
27
|
+
activesupport (6.1.1)
|
26
28
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
27
|
-
i18n (>=
|
28
|
-
minitest (
|
29
|
-
tzinfo (~>
|
29
|
+
i18n (>= 1.6, < 2)
|
30
|
+
minitest (>= 5.1)
|
31
|
+
tzinfo (~> 2.0)
|
32
|
+
zeitwerk (~> 2.3)
|
30
33
|
awesome_print (1.8.0)
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
binding_of_caller (0.8.0)
|
37
|
-
debug_inspector (>= 0.0.1)
|
38
|
-
byebug (10.0.2)
|
39
|
-
coderay (1.1.2)
|
40
|
-
concurrent-ruby (1.1.5)
|
41
|
-
debug_inspector (0.0.3)
|
42
|
-
diff-lcs (1.3)
|
43
|
-
docile (1.3.1)
|
44
|
-
erubi (1.7.1)
|
34
|
+
byebug (11.1.3)
|
35
|
+
coderay (1.1.3)
|
36
|
+
concurrent-ruby (1.1.8)
|
37
|
+
diff-lcs (1.4.4)
|
38
|
+
docile (1.3.5)
|
45
39
|
erubis (2.7.0)
|
46
|
-
ffi (1.
|
47
|
-
ffi (1.
|
48
|
-
haml (5.1
|
40
|
+
ffi (1.14.2)
|
41
|
+
ffi (1.14.2-java)
|
42
|
+
haml (5.2.1)
|
49
43
|
temple (>= 0.8.0)
|
50
44
|
tilt
|
51
|
-
i18n (1.7
|
45
|
+
i18n (1.8.7)
|
52
46
|
concurrent-ruby (~> 1.0)
|
53
|
-
json (2.1.0)
|
54
|
-
json (2.1.0-java)
|
55
47
|
mail (2.6.6)
|
56
48
|
mime-types (>= 1.16, < 4)
|
57
49
|
memoist (0.11.0)
|
58
|
-
method_source (0.
|
59
|
-
mime-types (3.3)
|
50
|
+
method_source (1.0.0)
|
51
|
+
mime-types (3.3.1)
|
60
52
|
mime-types-data (~> 3.2015)
|
61
|
-
mime-types-data (3.
|
62
|
-
minitest (5.
|
63
|
-
multi_json (1.
|
53
|
+
mime-types-data (3.2020.1104)
|
54
|
+
minitest (5.14.3)
|
55
|
+
multi_json (1.15.0)
|
56
|
+
mustermann (1.1.1)
|
57
|
+
ruby2_keywords (~> 0.0.1)
|
64
58
|
open_uri_redirections (0.2.1)
|
65
59
|
pony (1.13.1)
|
66
60
|
mail (>= 2.0)
|
67
|
-
pry (0.
|
68
|
-
coderay (~> 1.1
|
69
|
-
method_source (~>
|
70
|
-
pry (0.
|
71
|
-
coderay (~> 1.1
|
72
|
-
method_source (~>
|
61
|
+
pry (0.13.1)
|
62
|
+
coderay (~> 1.1)
|
63
|
+
method_source (~> 1.0)
|
64
|
+
pry (0.13.1-java)
|
65
|
+
coderay (~> 1.1)
|
66
|
+
method_source (~> 1.0)
|
73
67
|
spoon (~> 0.0)
|
74
|
-
pry-byebug (3.
|
75
|
-
byebug (~>
|
76
|
-
pry (~> 0.
|
77
|
-
rack (
|
78
|
-
rack-protection (1.
|
68
|
+
pry-byebug (3.9.0)
|
69
|
+
byebug (~> 11.0)
|
70
|
+
pry (~> 0.13.0)
|
71
|
+
rack (2.2.3)
|
72
|
+
rack-protection (2.1.0)
|
79
73
|
rack
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
rspec-expectations (~> 3.8.0)
|
88
|
-
rspec-mocks (~> 3.8.0)
|
89
|
-
rspec-core (3.8.0)
|
90
|
-
rspec-support (~> 3.8.0)
|
91
|
-
rspec-expectations (3.8.2)
|
74
|
+
rspec (3.10.0)
|
75
|
+
rspec-core (~> 3.10.0)
|
76
|
+
rspec-expectations (~> 3.10.0)
|
77
|
+
rspec-mocks (~> 3.10.0)
|
78
|
+
rspec-core (3.10.1)
|
79
|
+
rspec-support (~> 3.10.0)
|
80
|
+
rspec-expectations (3.10.1)
|
92
81
|
diff-lcs (>= 1.2.0, < 2.0)
|
93
|
-
rspec-support (~> 3.
|
94
|
-
rspec-mocks (3.
|
82
|
+
rspec-support (~> 3.10.0)
|
83
|
+
rspec-mocks (3.10.1)
|
95
84
|
diff-lcs (>= 1.2.0, < 2.0)
|
96
|
-
rspec-support (~> 3.
|
97
|
-
rspec-retry (0.6.
|
85
|
+
rspec-support (~> 3.10.0)
|
86
|
+
rspec-retry (0.6.2)
|
98
87
|
rspec-core (> 3.3)
|
99
|
-
rspec-support (3.
|
88
|
+
rspec-support (3.10.1)
|
100
89
|
rspec_junit_formatter (0.4.1)
|
101
90
|
rspec-core (>= 2, < 4, != 2.12.0)
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
108
|
-
simplecov (0.16.1)
|
91
|
+
ruby2_keywords (0.0.4)
|
92
|
+
rubyzip (2.3.0)
|
93
|
+
sassc (2.4.0)
|
94
|
+
ffi (~> 1.9)
|
95
|
+
simplecov (0.21.2)
|
109
96
|
docile (~> 1.1)
|
110
|
-
|
111
|
-
|
112
|
-
simplecov-html (0.
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
97
|
+
simplecov-html (~> 0.11)
|
98
|
+
simplecov_json_formatter (~> 0.1)
|
99
|
+
simplecov-html (0.12.3)
|
100
|
+
simplecov_json_formatter (0.1.2)
|
101
|
+
sinatra (2.1.0)
|
102
|
+
mustermann (~> 1.0)
|
103
|
+
rack (~> 2.2)
|
104
|
+
rack-protection (= 2.1.0)
|
105
|
+
tilt (~> 2.0)
|
106
|
+
sinatra-contrib (2.1.0)
|
119
107
|
multi_json
|
120
|
-
|
121
|
-
rack-
|
122
|
-
sinatra (
|
123
|
-
tilt (
|
108
|
+
mustermann (~> 1.0)
|
109
|
+
rack-protection (= 2.1.0)
|
110
|
+
sinatra (= 2.1.0)
|
111
|
+
tilt (~> 2.0)
|
124
112
|
spoon (0.0.6)
|
125
113
|
ffi
|
126
114
|
systemu (2.6.5)
|
127
115
|
temple (0.8.2)
|
128
116
|
termcolorlight (1.1.1)
|
129
|
-
thread_safe (0.3.6)
|
130
|
-
thread_safe (0.3.6-java)
|
131
117
|
tilt (2.0.10)
|
132
|
-
timecop (0.9.
|
133
|
-
tzinfo (
|
134
|
-
|
135
|
-
unicode-display_width (1.
|
118
|
+
timecop (0.9.2)
|
119
|
+
tzinfo (2.0.4)
|
120
|
+
concurrent-ruby (~> 1.0)
|
121
|
+
unicode-display_width (1.7.0)
|
122
|
+
webrick (1.7.0)
|
123
|
+
zeitwerk (2.4.2)
|
136
124
|
|
137
125
|
PLATFORMS
|
138
126
|
java
|
139
127
|
ruby
|
140
128
|
|
141
129
|
DEPENDENCIES
|
142
|
-
awesome_print
|
143
|
-
better_errors
|
144
|
-
binding_of_caller
|
130
|
+
awesome_print (~> 1.8)
|
145
131
|
narou!
|
146
|
-
pry
|
147
|
-
pry-byebug
|
148
|
-
rspec
|
149
|
-
rspec-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
timecop
|
132
|
+
pry (~> 0.12)
|
133
|
+
pry-byebug (~> 3.8)
|
134
|
+
rspec (~> 3.10)
|
135
|
+
rspec-retry (~> 0.6)
|
136
|
+
rspec_junit_formatter (~> 0.4)
|
137
|
+
simplecov (~> 0.20)
|
138
|
+
timecop (~> 0.9)
|
154
139
|
|
155
140
|
BUNDLED WITH
|
156
|
-
|
141
|
+
2.2.3
|
data/README.md
CHANGED
@@ -34,13 +34,18 @@ Narou.rb - 小説家になろうのダウンローダ&縦書き整形&管理
|
|
34
34
|
更新履歴 - ChangeLog
|
35
35
|
--------------------
|
36
36
|
|
37
|
-
3.
|
37
|
+
3.7.0: 2021/01/23
|
38
38
|
-----------------
|
39
39
|
#### 修正内容
|
40
|
-
-
|
41
|
-
|
42
|
-
|
43
|
-
|
40
|
+
- Apple Silicon 搭載 Mac でも動く様にライブラリをアップデート
|
41
|
+
- device を kobo に設定し、_ebook-filename-length-limit でファイル名が制限され
|
42
|
+
た場合に send コマンドが正常に実行できない不具合を修正
|
43
|
+
|
44
|
+
|
45
|
+
3.6.0: 2021/01/02
|
46
|
+
-----------------
|
47
|
+
#### 修正内容
|
48
|
+
- Ruby 3.0 に対応
|
44
49
|
|
45
50
|
----
|
46
51
|
|
data/lib/command/setting.rb
CHANGED
@@ -118,7 +118,7 @@ module Command
|
|
118
118
|
settings.each do |scope, scoped_settings|
|
119
119
|
stream_io.puts "[#{scope.capitalize} Variables]"
|
120
120
|
scoped_settings.each do |name, value|
|
121
|
-
if value =~ / /
|
121
|
+
if value.to_s =~ / /
|
122
122
|
value = "'#{value}'"
|
123
123
|
end
|
124
124
|
stream_io.puts "<bold><green>#{name}</green></bold>=#{value}".termcolor
|
@@ -537,8 +537,8 @@ module Command
|
|
537
537
|
"webui.theme" => {
|
538
538
|
type: :select, help: "WEB UI 用テーマ選択",
|
539
539
|
invisible: true,
|
540
|
-
select_keys: Narou.
|
541
|
-
select_summaries: Narou.
|
540
|
+
select_keys: Narou.theme_names,
|
541
|
+
select_summaries: Narou.theme_names,
|
542
542
|
tab: :webui
|
543
543
|
},
|
544
544
|
"webui.table.reload-timing" => {
|