narou 3.1.7 → 3.1.8

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
  SHA1:
3
- metadata.gz: dd74240822ee1fd2a841a14b8759a16c7228856e
4
- data.tar.gz: d5434f1dc872056e5bea3bf36e415a0d273ea023
3
+ metadata.gz: 597f53594479beb500a756d803ae46b5432f4619
4
+ data.tar.gz: 2ebd802419a453716598759c351d55ec3dc024ba
5
5
  SHA512:
6
- metadata.gz: 9b3418b310dc57369330a4ce4c98811c80c70616c9976cbee4161c83a066b37b160dac4c5bd1b95d036bfb2ef2be5bce02a8d6ffd8744691682e9f76ee8d4ed6
7
- data.tar.gz: 17c748a435c29015ce69f1ade970a5ac704d21cc4a9903c95ec7082da819c0bc3ca7b4da98c5bdba630e689ad3a895a757fa0449de93f6fdcb3530d3daca3df8
6
+ metadata.gz: eeb2c87d89b641c144711158b4f281098ae7b021f6b97f2fcf4957dd8af584e0e26355eb9e79a0212a1cf64448a68e941620f59d395650db81e89c7a44d2514a
7
+ data.tar.gz: 828fb5374c59003acf4599baf393e4a0f80f442e3219a839f1d2ac231f72b857cae835c83bd391314c54e9b33d67363e371bee091a0bc68f68b7f9e0fca9a168
@@ -2,6 +2,18 @@
2
2
  更新履歴 - ChangeLog
3
3
  ====================
4
4
 
5
+ 3.1.8: 2017/09/30
6
+ ------------------
7
+ #### 仕様変更
8
+ - 3.1.7 でデフォルト設定をオフにした「かぎ括弧内自動連結」ですが、一旦またオン
9
+ に戻しました。二転三転して申し訳ありません
10
+ - コンソール上でのカラー表示時の処理方法を変更しました(Windowsのみ)
11
+ + narou setting の color-parser を変更することで今までの処理方法に戻せます
12
+ + `narou s color-parser=self` 今までの処理方法(独力でカラー処理)
13
+ + `narou s color-parser=system` システムにカラー表示を任せる(デフォルト)
14
+ + 稀に表示時にエラーになってしまう現象への対策です
15
+
16
+
5
17
  3.1.7: 2017/09/28
6
18
  ------------------
7
19
  #### 仕様変更
data/README.md CHANGED
@@ -33,6 +33,18 @@ Narou.rb ― 「小説家になろう」「小説を読もう!」ダウンロ
33
33
  更新履歴 - ChangeLog
34
34
  --------------------
35
35
 
36
+ 3.1.8: 2017/09/30
37
+ ------------------
38
+ #### 仕様変更
39
+ - 3.1.7 でデフォルト設定をオフにした「かぎ括弧内自動連結」ですが、一旦またオン
40
+ に戻しました。二転三転して申し訳ありません
41
+ - コンソール上でのカラー表示時の処理方法を変更しました(Windowsのみ)
42
+ + narou setting の color-parser を変更することで今までの処理方法に戻せます
43
+ + `narou s color-parser=self` 今までの処理方法(独力でカラー処理)
44
+ + `narou s color-parser=system` システムにカラー表示を任せる(デフォルト)
45
+ + 稀に表示時にエラーになってしまう現象への対策です
46
+
47
+
36
48
  3.1.7: 2017/09/28
37
49
  ------------------
38
50
  #### 仕様変更
@@ -43,65 +55,6 @@ Narou.rb ― 「小説家になろう」「小説を読もう!」ダウンロ
43
55
  #### 修正内容
44
56
  - 小説家になろうのSSL化に対応
45
57
 
46
-
47
- 3.1.6: 2017/09/19
48
- ------------------
49
- #### 修正内容
50
- - 小説家になろうのSSL化に対応(先行対応)
51
-
52
-
53
- 3.1.5: 2017/08/27
54
- ------------------
55
- #### 修正内容
56
- - 変換時にエラーになる小説に対応
57
-
58
-
59
- 3.1.4 : 2017/08/22
60
- ------------------
61
- #### 追加機能
62
- - WEB UIにDigest認証の設定を追加しました。設定に server-digest-auth.* 関連の値
63
- が追加されています。詳しくは narou s -a かWEB UIの設定画面(Globalタブ)を参照
64
- して下さい
65
-
66
- #### 修正内容
67
- - 小説家になろうの目次の仕様変更に対応
68
- - 小説家になろうのルビ仕様に追随できていなかった部分(ふりがなに空白を含む場合)
69
- を修正
70
-
71
-
72
- 3.1.3 : 2017/07/10
73
- ------------------
74
- #### 修正内容
75
- - hotentry.auto-mail を有効にしても、更新時に hotentry がメールで送信されなく
76
- なっていた
77
-
78
-
79
- 3.1.2 : 2017/06/10
80
- ------------------
81
- #### 追加機能
82
- - WEB UIにおいて、フィルターに入力されている状況をアドレスバーに反映するように
83
- しました。(ブックマークなどをすることでフィルターの状況を記憶・再現出来ます)
84
-
85
- #### 修正内容
86
- - WEB UIにおいて、凍結状態の表示状態に関わらず小説データを内部で取得していた事
87
- により、表示速度が低下していたのを修正しました
88
- - 暁の常時 https 化に対応
89
-
90
-
91
- 3.1.1 : 2017/04/05
92
- ------------------
93
- #### 追加機能
94
- - `clean` コマンドを実装しました。サブタイトルの変更等により参照されなくなった
95
- ゴミファイルを削除することが出来ます。詳細は `narou clean -h`を参照して下さい
96
- - WEB UI からメールを送信する機能を追加しました
97
- + Other ボタンと、個別メニューに追加されます
98
-
99
- #### 修正内容
100
- - Ruby 2.4 対応
101
- - WEB UI のアバウトダイアログで、最新バージョンチェックが正しく動かなくなる場合
102
- があったのを修正
103
- - WEB UI から「凍結済みでも更新」が使用出来ずにエラーが出ていたのを修正
104
-
105
58
  ----
106
59
 
107
60
  「小説家になろう」は株式会社ヒナプロジェクトの登録商標です
@@ -1,127 +1,10 @@
1
1
  # -*- coding: utf-8 -*-
2
- #
3
- =begin
4
- original source is
5
- https://github.com/termtter/termtter/blob/master/lib/termtter/system_extensions/windows.rb
6
2
 
7
- customed by whiteleaf
8
-
9
- (The MIT License)
10
-
11
- Copyright (c) 2008-2012 The Termtter Development Team
12
-
13
- Permission is hereby granted, free of charge, to any person obtaining
14
- a copy of this software and associated documentation files (the
15
- 'Software'), to deal in the Software without restriction, including
16
- without limitation the rights to use, copy, modify, merge, publish,
17
- distribute, sublicense, and/or sell copies of the Software, and to
18
- permit persons to whom the Software is furnished to do so, subject to
19
- the following conditions:
20
-
21
- The above copyright notice and this permission notice shall be
22
- included in all copies or substantial portions of the Software.
23
-
24
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
25
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
27
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
28
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
29
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
30
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
- =end
3
+ def write_color(str, console = STDOUT)
4
+ console.write str
5
+ end
32
6
 
33
7
  if RbConfig::CONFIG["host_os"] =~ /mswin(?!ce)|mingw|bccwin/i
34
8
  require_relative "extensions/windows"
35
-
36
- $hStdOut = WinAPI.GetStdHandle(0xFFFFFFF5)
37
- lpBuffer = ' ' * 22
38
- WinAPI.GetConsoleScreenBufferInfo($hStdOut, lpBuffer)
39
- $oldColor = lpBuffer.unpack('SSSSSssssSS')[4]
40
- $default_foreground = $oldColor & 0x0f
41
- $default_background = $oldColor & 0xf0
42
-
43
- $colorMap = {
44
- 0 => 0x07|0x00|0x00|0x00, # black/white
45
- 1 => 0x08 , # foreground_intensity
46
- 4 => 0x8000 , # underline
47
- 7 => 0x4000 , # reverse
48
- 30 => 0x00|0x00|0x00|0x00, # black
49
- 31 => 0x04|0x00|0x00|0x00, # red/red
50
- 32 => 0x02|0x00|0x00|0x00, # green/green
51
- 33 => 0x06|0x00|0x00|0x00, # yellow/yellow
52
- 34 => 0x01|0x00|0x00|0x00, # blue/blue
53
- 35 => 0x05|0x00|0x00|0x00, # magenta/purple
54
- 36 => 0x03|0x00|0x00|0x00, # cyan/aqua
55
- 37 => 0x07|0x00|0x00|0x00, # white/gray
56
- 39 => $default_foreground, # default
57
- 40 => 0x00|0x00|0x00|0x00, # background:black
58
- 41 => 0x00|0x00|0x40|0x00, # background:red
59
- 42 => 0x00|0x00|0x20|0x00, # background:green
60
- 43 => 0x00|0x00|0x60|0x00, # background:yellow
61
- 44 => 0x00|0x00|0x10|0x00, # background:blue
62
- 45 => 0x00|0x00|0x50|0x00, # background:magenta
63
- 46 => 0x00|0x00|0x30|0x00, # background:cyan
64
- 47 => 0x00|0x00|0x70|0x00, # background:white
65
- 49 => $default_background, # default
66
- 90 => 0x07|0x00|0x00|0x00, # erase/white
67
- }
68
-
69
- def write_color(str, console = STDOUT)
70
- @decoration ||= 0
71
- @foreground ||= $default_foreground
72
- @background ||= $default_background
73
- @reverse ||= false
74
- str.gsub("\xef\xbd\x9e", "\xe3\x80\x9c").split(/(\e\[\d*[a-zA-Z])/).each do |token|
75
- case token
76
- when /\e\[(\d+)m/
77
- code = $1.to_i
78
- code = code > 90 ? (code % 60) : code
79
- case code
80
- when 0
81
- @decoration = 0
82
- @foreground = $default_foreground
83
- @background = $default_background
84
- @reverse = false
85
- when 1
86
- @decoration |= $colorMap[1]
87
- when 4
88
- @decoration |= $colorMap[4]
89
- when 7
90
- @reverse = true
91
- when 30..39
92
- @foreground = $colorMap[code].to_i
93
- when 40..49
94
- @background = $colorMap[code].to_i
95
- end
96
- foreground = @foreground
97
- background = @background
98
- if @reverse
99
- foreground <<= 4
100
- background >>= 4
101
- # reverse では intensity 情報も文字と背景で入れ替わるでの、
102
- # 下位4bitと上位4bitをスワップ
103
- @decoration = @decoration & 0xff00 | @decoration >> 4 & 0xf | (@decoration & 0xf) << 4
104
- end
105
- loop do
106
- error_code = WinAPI.SetConsoleTextAttribute $hStdOut, @decoration | foreground | background
107
- if error_code == 0
108
- if WinAPI.GetLastError == 6
109
- $hStdOut = WinAPI.GetStdHandle(0xFFFFFFF5)
110
- redo
111
- end
112
- end
113
- break
114
- end
115
- when /\e\[\d*[a-zA-Z]/, ""
116
- # do nothing
117
- else
118
- console.write token
119
- end
120
- end
121
- WinAPI.SetConsoleTextAttribute $hStdOut, $oldColor
122
- end
123
- else
124
- def write_color(str, console = STDOUT)
125
- console.write str
126
- end
9
+ require_relative "extensions/windows_write_color" if $color_parser == "self"
127
10
  end
@@ -506,6 +506,14 @@ module Command
506
506
  type: :boolean, help: "カラー表示を無効にする",
507
507
  tab: :global
508
508
  },
509
+ "color-parser" => {
510
+ type: :select,
511
+ help: "コンソール上でのANSIカラーを表示する方法の選択(Windowsのみ)。" \
512
+ "system: システムに任せる(デフォルト) / self: Narou.rbで処理",
513
+ select_keys: %w(system self),
514
+ select_summaries: %w(システムに任せる Narou.rbで処理),
515
+ tab: :global
516
+ },
509
517
  "server-port" => {
510
518
  type: :integer, help: "WEBサーバ起動時のポート",
511
519
  tab: :global
@@ -0,0 +1,119 @@
1
+ # -*- coding: utf-8 -*-
2
+ #
3
+ =begin
4
+ original source is
5
+ https://github.com/termtter/termtter/blob/master/lib/termtter/system_extensions/windows.rb
6
+
7
+ customed by whiteleaf
8
+
9
+ (The MIT License)
10
+
11
+ Copyright (c) 2008-2012 The Termtter Development Team
12
+
13
+ Permission is hereby granted, free of charge, to any person obtaining
14
+ a copy of this software and associated documentation files (the
15
+ 'Software'), to deal in the Software without restriction, including
16
+ without limitation the rights to use, copy, modify, merge, publish,
17
+ distribute, sublicense, and/or sell copies of the Software, and to
18
+ permit persons to whom the Software is furnished to do so, subject to
19
+ the following conditions:
20
+
21
+ The above copyright notice and this permission notice shall be
22
+ included in all copies or substantial portions of the Software.
23
+
24
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
25
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
27
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
28
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
29
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
30
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31
+ =end
32
+
33
+ $hStdOut = WinAPI.GetStdHandle(0xFFFFFFF5)
34
+ lpBuffer = ' ' * 22
35
+ WinAPI.GetConsoleScreenBufferInfo($hStdOut, lpBuffer)
36
+ $oldColor = lpBuffer.unpack('SSSSSssssSS')[4]
37
+ $default_foreground = $oldColor & 0x0f
38
+ $default_background = $oldColor & 0xf0
39
+
40
+ $colorMap = {
41
+ 0 => 0x07|0x00|0x00|0x00, # black/white
42
+ 1 => 0x08 , # foreground_intensity
43
+ 4 => 0x8000 , # underline
44
+ 7 => 0x4000 , # reverse
45
+ 30 => 0x00|0x00|0x00|0x00, # black
46
+ 31 => 0x04|0x00|0x00|0x00, # red/red
47
+ 32 => 0x02|0x00|0x00|0x00, # green/green
48
+ 33 => 0x06|0x00|0x00|0x00, # yellow/yellow
49
+ 34 => 0x01|0x00|0x00|0x00, # blue/blue
50
+ 35 => 0x05|0x00|0x00|0x00, # magenta/purple
51
+ 36 => 0x03|0x00|0x00|0x00, # cyan/aqua
52
+ 37 => 0x07|0x00|0x00|0x00, # white/gray
53
+ 39 => $default_foreground, # default
54
+ 40 => 0x00|0x00|0x00|0x00, # background:black
55
+ 41 => 0x00|0x00|0x40|0x00, # background:red
56
+ 42 => 0x00|0x00|0x20|0x00, # background:green
57
+ 43 => 0x00|0x00|0x60|0x00, # background:yellow
58
+ 44 => 0x00|0x00|0x10|0x00, # background:blue
59
+ 45 => 0x00|0x00|0x50|0x00, # background:magenta
60
+ 46 => 0x00|0x00|0x30|0x00, # background:cyan
61
+ 47 => 0x00|0x00|0x70|0x00, # background:white
62
+ 49 => $default_background, # default
63
+ 90 => 0x07|0x00|0x00|0x00, # erase/white
64
+ }
65
+
66
+ def write_color(str, console = STDOUT)
67
+ @decoration ||= 0
68
+ @foreground ||= $default_foreground
69
+ @background ||= $default_background
70
+ @reverse ||= false
71
+ str.gsub("\xef\xbd\x9e", "\xe3\x80\x9c").split(/(\e\[\d*[a-zA-Z])/).each do |token|
72
+ case token
73
+ when /\e\[(\d+)m/
74
+ code = $1.to_i
75
+ code = code > 90 ? (code % 60) : code
76
+ case code
77
+ when 0
78
+ @decoration = 0
79
+ @foreground = $default_foreground
80
+ @background = $default_background
81
+ @reverse = false
82
+ when 1
83
+ @decoration |= $colorMap[1]
84
+ when 4
85
+ @decoration |= $colorMap[4]
86
+ when 7
87
+ @reverse = true
88
+ when 30..39
89
+ @foreground = $colorMap[code].to_i
90
+ when 40..49
91
+ @background = $colorMap[code].to_i
92
+ end
93
+ foreground = @foreground
94
+ background = @background
95
+ if @reverse
96
+ foreground <<= 4
97
+ background >>= 4
98
+ # reverse では intensity 情報も文字と背景で入れ替わるでの、
99
+ # 下位4bitと上位4bitをスワップ
100
+ @decoration = @decoration & 0xff00 | @decoration >> 4 & 0xf | (@decoration & 0xf) << 4
101
+ end
102
+ loop do
103
+ error_code = WinAPI.SetConsoleTextAttribute $hStdOut, @decoration | foreground | background
104
+ if error_code == 0
105
+ if WinAPI.GetLastError == 6
106
+ $hStdOut = WinAPI.GetStdHandle(0xFFFFFFF5)
107
+ redo
108
+ end
109
+ end
110
+ break
111
+ end
112
+ when /\e\[\d*[a-zA-Z]/, ""
113
+ # do nothing
114
+ else
115
+ console.write token
116
+ end
117
+ end
118
+ WinAPI.SetConsoleTextAttribute $hStdOut, $oldColor
119
+ end
@@ -48,7 +48,6 @@ class Mailer
48
48
  end
49
49
 
50
50
  def send(id, message, attached_file_path = nil)
51
- gem "mail", "2.5.4"
52
51
  require "pony"
53
52
  @error_message = ""
54
53
  params = @options.dup
File without changes
@@ -287,7 +287,7 @@ class NovelSetting
287
287
  {
288
288
  name: "enable_auto_join_in_brackets",
289
289
  type: :boolean,
290
- value: false,
290
+ value: true,
291
291
  help: "かぎ括弧内自動連結を有効にする\n例)\n「~~~!\n ***?」 → 「~~~! ***?」"
292
292
  },
293
293
  {
@@ -3,4 +3,4 @@
3
3
  # Copyright 2013 whiteleaf. All rights reserved.
4
4
  #
5
5
 
6
- Version = "3.1.7"
6
+ Version = "3.1.8"
@@ -14,7 +14,7 @@ require "better_errors" if $debug
14
14
  require "tilt/erubis"
15
15
  require "tilt/haml"
16
16
  require "tilt/sass"
17
- require_relative "../logger"
17
+ require_relative "../narou_logger"
18
18
  require_relative "../commandline"
19
19
  require_relative "../inventory"
20
20
  require_relative "worker"
@@ -32,6 +32,18 @@ Gem::Specification.new do |gem|
32
32
  install_message = <<-EOS
33
33
  #{"*" * 60}
34
34
 
35
+ 3.1.8: 2017/09/30
36
+ ------------------
37
+ #### 仕様変更
38
+ - 3.1.7 でデフォルト設定をオフにした「かぎ括弧内自動連結」ですが、一旦またオン
39
+ に戻しました。二転三転して申し訳ありません
40
+ - コンソール上でのカラー表示時の処理方法を変更しました(Windowsのみ)
41
+ + narou setting の color-parser を変更することで今までの処理方法に戻せます
42
+ + `narou s color-parser=self` 今までの処理方法(独力でカラー処理)
43
+ + `narou s color-parser=system` システムにカラー表示を任せる(デフォルト)
44
+ + 稀に表示時にエラーになってしまう現象への対策です
45
+
46
+
35
47
  3.1.7: 2017/09/28
36
48
  ------------------
37
49
  #### 仕様変更
@@ -42,31 +54,6 @@ Gem::Specification.new do |gem|
42
54
  #### 修正内容
43
55
  - 小説家になろうのSSL化に対応
44
56
 
45
-
46
- 3.1.6: 2017/09/19
47
- ------------------
48
- #### 修正内容
49
- - 小説家になろうのSSL化に対応(先行対応)
50
-
51
-
52
- 3.1.5: 2017/08/27
53
- ------------------
54
- #### 修正内容
55
- - 変換時にエラーになる小説に対応
56
-
57
-
58
- 3.1.4 : 2017/08/22
59
- ------------------
60
- #### 追加機能
61
- - WEB UIにDigest認証の設定を追加しました。設定に server-digest-auth.* 関連の値
62
- が追加されています。詳しくは narou s -a かWEB UIの設定画面(Globalタブ)を参照
63
- して下さい
64
-
65
- #### 修正内容
66
- - 小説家になろうの目次の仕様変更に対応
67
- - 小説家になろうのルビ仕様に追随できていなかった部分(ふりがなに空白を含む場合)
68
- を修正
69
-
70
57
  #{"*" * 60}
71
58
  EOS
72
59
  gem.post_install_message = install_message.gsub("\t", " ")
@@ -78,8 +65,8 @@ Gem::Specification.new do |gem|
78
65
 
79
66
  gem.add_runtime_dependency 'termcolorlight', '~> 1.0', '>= 1.1.1'
80
67
  gem.add_runtime_dependency 'rubyzip', '~> 1.1', '>= 1.1.0'
81
- gem.add_runtime_dependency 'mail', '2.5.4'
82
- gem.add_runtime_dependency 'pony', '~> 1.8'
68
+ gem.add_runtime_dependency 'mail', '~> 2', '>= 2.5.4'
69
+ gem.add_runtime_dependency 'pony', '~> 1', '>= 1.8'
83
70
  gem.add_runtime_dependency 'diff-lcs', '~> 1.2', '>= 1.2.5'
84
71
  gem.add_runtime_dependency 'sinatra', '~> 1.4', '>= 1.4.5'
85
72
  gem.add_runtime_dependency 'sinatra-contrib', '~> 1.4', '>= 1.4.2'
data/narou.rb CHANGED
@@ -36,8 +36,9 @@ $display_backtrace = ARGV.delete("--backtrace")
36
36
  $display_backtrace ||= $debug
37
37
  $disable_color = ARGV.delete("--no-color")
38
38
  $disable_color ||= global["no-color"]
39
+ $color_parser ||= global["color-parser"] || "system"
39
40
 
40
- require_relative "lib/logger"
41
+ require_relative "lib/narou_logger"
41
42
  require_relative "lib/version"
42
43
  require_relative "lib/commandline"
43
44
 
@@ -33,7 +33,7 @@ subtitles: |-
33
33
  is_narou: true
34
34
  tcode: <li><a href="\\k<top_url>/txtdownload/top/ncode/(?<tcode>\d+?)/" onclick
35
35
  txtdownload_url: \\k<top_url>/txtdownload/dlstart/ncode/\\k<tcode>/?no=\\k<index>
36
- narou_api_url: http://api.syosetu.com/novel18api/api/
36
+ narou_api_url: https://api.syosetu.com/novel18api/api/
37
37
 
38
38
  # ------------------------------------------------------------
39
39
  # 小説情報からパースするための設定
@@ -34,7 +34,7 @@ subtitles: |-
34
34
  is_narou: true
35
35
  tcode: <li><a href="\\k<https_top_url>/txtdownload/top/ncode/(?<tcode>\d+?)/" onclick
36
36
  txtdownload_url: \\k<https_top_url>/txtdownload/dlstart/ncode/\\k<tcode>/?no=\\k<index>
37
- narou_api_url: http://api.syosetu.com/novel18api/api/
37
+ narou_api_url: https://api.syosetu.com/novel18api/api/
38
38
 
39
39
  # ------------------------------------------------------------
40
40
  # 小説情報からパースするための設定
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.1.7
4
+ version: 3.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - whiteleaf7
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-28 00:00:00.000000000 Z
11
+ date: 2017-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: termcolorlight
@@ -54,14 +54,20 @@ dependencies:
54
54
  name: mail
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - '='
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '2'
60
+ - - ">="
58
61
  - !ruby/object:Gem::Version
59
62
  version: 2.5.4
60
63
  type: :runtime
61
64
  prerelease: false
62
65
  version_requirements: !ruby/object:Gem::Requirement
63
66
  requirements:
64
- - - '='
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '2'
70
+ - - ">="
65
71
  - !ruby/object:Gem::Version
66
72
  version: 2.5.4
67
73
  - !ruby/object:Gem::Dependency
@@ -69,6 +75,9 @@ dependencies:
69
75
  requirement: !ruby/object:Gem::Requirement
70
76
  requirements:
71
77
  - - "~>"
78
+ - !ruby/object:Gem::Version
79
+ version: '1'
80
+ - - ">="
72
81
  - !ruby/object:Gem::Version
73
82
  version: '1.8'
74
83
  type: :runtime
@@ -76,6 +85,9 @@ dependencies:
76
85
  version_requirements: !ruby/object:Gem::Requirement
77
86
  requirements:
78
87
  - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1'
90
+ - - ">="
79
91
  - !ruby/object:Gem::Version
80
92
  version: '1.8'
81
93
  - !ruby/object:Gem::Dependency
@@ -337,6 +349,7 @@ files:
337
349
  - lib/extension.rb
338
350
  - lib/extensions/jruby.rb
339
351
  - lib/extensions/windows.rb
352
+ - lib/extensions/windows_write_color.rb
340
353
  - lib/helper.rb
341
354
  - lib/html.rb
342
355
  - lib/illustration.rb
@@ -346,10 +359,10 @@ files:
346
359
  - lib/inventory.rb
347
360
  - lib/kindlestrip.rb
348
361
  - lib/loadconverter.rb
349
- - lib/logger.rb
350
362
  - lib/mailer.rb
351
363
  - lib/narou.rb
352
364
  - lib/narou/api.rb
365
+ - lib/narou_logger.rb
353
366
  - lib/novelconverter.rb
354
367
  - lib/novelinfo.rb
355
368
  - lib/novelsetting.rb
@@ -489,6 +502,18 @@ metadata: {}
489
502
  post_install_message: |
490
503
  ************************************************************
491
504
 
505
+ 3.1.8: 2017/09/30
506
+ ------------------
507
+ #### 仕様変更
508
+ - 3.1.7 でデフォルト設定をオフにした「かぎ括弧内自動連結」ですが、一旦またオン
509
+ に戻しました。二転三転して申し訳ありません
510
+ - コンソール上でのカラー表示時の処理方法を変更しました(Windowsのみ)
511
+ + narou setting の color-parser を変更することで今までの処理方法に戻せます
512
+ + `narou s color-parser=self` 今までの処理方法(独力でカラー処理)
513
+ + `narou s color-parser=system` システムにカラー表示を任せる(デフォルト)
514
+ + 稀に表示時にエラーになってしまう現象への対策です
515
+
516
+
492
517
  3.1.7: 2017/09/28
493
518
  ------------------
494
519
  #### 仕様変更
@@ -499,31 +524,6 @@ post_install_message: |
499
524
  #### 修正内容
500
525
  - 小説家になろうのSSL化に対応
501
526
 
502
-
503
- 3.1.6: 2017/09/19
504
- ------------------
505
- #### 修正内容
506
- - 小説家になろうのSSL化に対応(先行対応)
507
-
508
-
509
- 3.1.5: 2017/08/27
510
- ------------------
511
- #### 修正内容
512
- - 変換時にエラーになる小説に対応
513
-
514
-
515
- 3.1.4 : 2017/08/22
516
- ------------------
517
- #### 追加機能
518
- - WEB UIにDigest認証の設定を追加しました。設定に server-digest-auth.* 関連の値
519
- が追加されています。詳しくは narou s -a かWEB UIの設定画面(Globalタブ)を参照
520
- して下さい
521
-
522
- #### 修正内容
523
- - 小説家になろうの目次の仕様変更に対応
524
- - 小説家になろうのルビ仕様に追随できていなかった部分(ふりがなに空白を含む場合)
525
- を修正
526
-
527
527
  ************************************************************
528
528
  rdoc_options: []
529
529
  require_paths: