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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd69fb85561bf578df4ef0979bf50746c662a7c9f7f9267387c6f301e626b318
4
- data.tar.gz: 4e8f8841a8e2fcbbd62f5e1e681d1e37c4fc4d9b48a840a1eaa3ae687640db70
3
+ metadata.gz: 9e7602ba2d969aaf94fd33d0a1ba7f706149861cb90b6d7924cc2c8f66081416
4
+ data.tar.gz: 5d0dc68095c855a69a3af7837949a2902bd2509cf6febae7d8c9589ea1fef301
5
5
  SHA512:
6
- metadata.gz: ca73de016293a5745831afdc14f4e76071c60283b493774cbc0d5fe2d5b0fb864ac2837e6746c0dd12e9a804ab0202d6b1306262816fd064cae9abcf30df76b2
7
- data.tar.gz: 4aaf2337f272602260b0b82494eee829164cde6c1f58246a8ba072fe4f3441b29ac7e34ebc792eebceba32e358570575c4a8aafde18d19591ff4ddbd594ee3fb
6
+ metadata.gz: f9f48b127ae554760619b1cfdbd61041b3284ee675a9c6a00fb91adfe54968d8c0f5f776eee036bdf8fadb59308169a2732ac0413c3da3223e18c0fbe0bc83fa
7
+ data.tar.gz: c368440c723fec9af88932da94755d787720bddf393413467ddbcb86c39b41cdb629e980b79f76db6acc8b7715cd55b41a4e20f998a975caf75259434dd8d46a
@@ -12,8 +12,8 @@ jobs:
12
12
  - checkout
13
13
 
14
14
  - run:
15
- name: Which bundler?
16
- command: bundle -v
15
+ name: Install bundler 2.1.4
16
+ command: gem install bundler:2.1.4
17
17
 
18
18
  # Restore bundle cache
19
19
  - restore_cache:
@@ -8,7 +8,7 @@ AllCops:
8
8
  - "narou.gemspec"
9
9
  - "spec/**/*"
10
10
  DisplayCopNames: true
11
- TargetRubyVersion: 2.3
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
- Metrics/LineLength:
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
- NamePrefixBlacklist:
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/IndentFirstHashElement:
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/Tab:
179
+ Layout/IndentationStyle:
183
180
  Enabled: true
184
181
 
185
- Layout/TrailingBlankLines:
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/IndentHeredoc:
221
+ Layout/HeredocIndentation:
225
222
  Enabled: true
226
223
 
227
224
  Style/NumericPredicate:
228
225
  Enabled: false
229
226
 
230
- Lint/HandleExceptions:
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
@@ -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
@@ -1,156 +1,141 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- narou (3.4.8)
5
- activesupport (~> 5.2)
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
- sass (~> 3.4, >= 3.4.18)
15
- sinatra (~> 1.4, >= 1.4.5)
16
- sinatra-contrib (~> 1.4, >= 1.4.2)
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 (5.2.3)
27
+ activesupport (6.1.1)
26
28
  concurrent-ruby (~> 1.0, >= 1.0.2)
27
- i18n (>= 0.7, < 2)
28
- minitest (~> 5.1)
29
- tzinfo (~> 1.1)
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
- backports (3.15.0)
32
- better_errors (2.5.0)
33
- coderay (>= 1.0.0)
34
- erubi (>= 1.0.0)
35
- rack (>= 0.9.0)
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.9.25)
47
- ffi (1.9.25-java)
48
- haml (5.1.2)
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.0)
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.9.2)
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.2019.1009)
62
- minitest (5.13.0)
63
- multi_json (1.14.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.12.2)
68
- coderay (~> 1.1.0)
69
- method_source (~> 0.9.0)
70
- pry (0.12.2-java)
71
- coderay (~> 1.1.0)
72
- method_source (~> 0.9.0)
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.6.0)
75
- byebug (~> 10.0)
76
- pry (~> 0.10)
77
- rack (1.6.11)
78
- rack-protection (1.5.5)
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
- rack-test (1.1.0)
81
- rack (>= 1.0, < 3)
82
- rb-fsevent (0.10.3)
83
- rb-inotify (0.10.0)
84
- ffi (~> 1.0)
85
- rspec (3.8.0)
86
- rspec-core (~> 3.8.0)
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.8.0)
94
- rspec-mocks (3.8.0)
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.8.0)
97
- rspec-retry (0.6.1)
85
+ rspec-support (~> 3.10.0)
86
+ rspec-retry (0.6.2)
98
87
  rspec-core (> 3.3)
99
- rspec-support (3.8.0)
88
+ rspec-support (3.10.1)
100
89
  rspec_junit_formatter (0.4.1)
101
90
  rspec-core (>= 2, < 4, != 2.12.0)
102
- rubyzip (2.0.0)
103
- sass (3.7.4)
104
- sass-listen (~> 4.0.0)
105
- sass-listen (4.0.0)
106
- rb-fsevent (~> 0.9, >= 0.9.4)
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
- json (>= 1.8, < 3)
111
- simplecov-html (~> 0.10.0)
112
- simplecov-html (0.10.2)
113
- sinatra (1.4.8)
114
- rack (~> 1.5)
115
- rack-protection (~> 1.4)
116
- tilt (>= 1.3, < 3)
117
- sinatra-contrib (1.4.7)
118
- backports (>= 2.0)
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
- rack-protection
121
- rack-test
122
- sinatra (~> 1.4.0)
123
- tilt (>= 1.3, < 3)
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.1)
133
- tzinfo (1.2.5)
134
- thread_safe (~> 0.1)
135
- unicode-display_width (1.6.0)
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-core
150
- rspec-retry
151
- rspec_junit_formatter
152
- simplecov
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
- 1.17.2
141
+ 2.2.3
data/README.md CHANGED
@@ -34,13 +34,18 @@ Narou.rb - 小説家になろうのダウンローダ&縦書き整形&管理
34
34
  更新履歴 - ChangeLog
35
35
  --------------------
36
36
 
37
- 3.4.8: 2019/11/27
37
+ 3.7.0: 2021/01/23
38
38
  -----------------
39
39
  #### 修正内容
40
- - 小説タイトルが長すぎる場合、backup コマンドでファイルを作成した際にエラーが
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
 
@@ -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.get_theme_names,
541
- select_summaries: Narou.get_theme_names,
540
+ select_keys: Narou.theme_names,
541
+ select_summaries: Narou.theme_names,
542
542
  tab: :webui
543
543
  },
544
544
  "webui.table.reload-timing" => {