narou 1.5.5 → 1.5.5.1

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: 50572a4a8e1c0e7cf8a43059fc1371246d637483
4
- data.tar.gz: a62cb7cbbdb66f36ad5763fbc169be707f5e1cf8
3
+ metadata.gz: 11847f586ba963c8af17b2c7eae2c60ba683b8b6
4
+ data.tar.gz: f22c78d4cb69332af11c2fc3ab3607b0a119e899
5
5
  SHA512:
6
- metadata.gz: c7d026ff79fbf41237c6cb996f189b2a9917d1d95990dd3973026f51b561905a247e8abee775967effc20a7f48908c31fa2e3038e4ba0c57a9624100a7602131
7
- data.tar.gz: 066a4ef468749301998532f0eb8993e045cd81220725c27a56dc520eb6105cf6795b97b4f3943e6b9196bef78077f121538a0e2e09839ad2bb6ff2ecaa5d0ccf
6
+ metadata.gz: 9e7d3cc4645334706e464ff7eb15f44a96d8b1bdd6a9ebb741746ce759d5eca7316dd69bf29d8c96c416e0ce3a529633d36bf5f9b2a305d31ff6a219008ea39a
7
+ data.tar.gz: aab5e7cfa0728ef33b43138ef3484a06cc4ad1325d1b6e273c5f73716a02858d83da75b6a44f21f05690e9aaf146e6dcf9d46ef1c72c69a0a69b514e1b46979f
data/ChangeLog.md CHANGED
@@ -2,6 +2,10 @@
2
2
  更新履歴 - ChangeLog
3
3
  --------------------
4
4
 
5
+ 2014/05/15 : **1.5.5.1**
6
+ * Bug Fix
7
+ - 暁の小説で一部正常にDLできないものがあったので修正
8
+
5
9
  2014/05/15 : **1.5.5**
6
10
  * 追加機能もしくは仕様変更
7
11
  - 小説投稿サイト **[暁](http://www.akatsuki-novels.com/)** に対応しました
data/README.md CHANGED
@@ -24,6 +24,10 @@ Narou.rb ― 「小説家になろう」「小説を読もう!」ダウンロ
24
24
  更新履歴 - ChangeLog
25
25
  --------------------
26
26
 
27
+ 2014/05/15 : **1.5.5.1**
28
+ * Bug Fix
29
+ - 暁の小説で一部正常にDLできないものがあったので修正
30
+
27
31
  2014/05/15 : **1.5.5**
28
32
  * 追加機能もしくは仕様変更
29
33
  - 小説投稿サイト **[暁](http://www.akatsuki-novels.com/)** に対応しました
data/lib/downloader.rb CHANGED
@@ -604,7 +604,7 @@ class Downloader
604
604
  "index" => @setting["index"],
605
605
  "href" => @setting["href"],
606
606
  "chapter" => @setting["chapter"],
607
- "subtitle" => @setting["subtitle"],
607
+ "subtitle" => @setting["subtitle"].gsub("\n", ""),
608
608
  "file_subtitle" => Helper.replace_filename_special_chars(@setting["subtitle"]),
609
609
  "subdate" => @setting["subdate"],
610
610
  "subupdate" => @setting["subupdate"]
@@ -665,11 +665,14 @@ class Downloader
665
665
  puts "#{chapter}"
666
666
  end
667
667
  if get_novel_type == NOVEL_TYPE_SERIES
668
- print "第#{index}部分"
668
+ if index.to_s.length < 4
669
+ # indexの数字がでかいと見た目がみっともないので3桁までは表示する
670
+ print "第#{index}部分 "
671
+ end
669
672
  else
670
- print "短編"
673
+ print "短編 "
671
674
  end
672
- print " #{subtitle} (#{i+1}/#{max})"
675
+ print "#{subtitle} (#{i+1}/#{max})"
673
676
  section_element = a_section_download(subtitle_info)
674
677
  info = subtitle_info.dup
675
678
  info["element"] = section_element
data/lib/helper.rb CHANGED
@@ -95,7 +95,7 @@ module Helper
95
95
  end
96
96
 
97
97
  def replace_filename_special_chars(str, invalid_replace = false)
98
- result = str.tr("/:*?\"<>|.", "/:*?”〈〉|.").gsub("\\", "¥").gsub("\t", "")
98
+ result = str.tr("/:*?\"<>|.", "/:*?”〈〉|.").gsub("\\", "¥").gsub("\t", "").gsub("\n", "")
99
99
  if invalid_replace
100
100
  org_encoding = result.encoding
101
101
  result = result.encode(Encoding::Windows_31J, invalid: :replace, undef: :replace, replace: "_")
data/lib/version.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  # Copyright 2013 whiteleaf. All rights reserved.
4
4
  #
5
5
 
6
- Version = "1.5.5"
6
+ Version = "1.5.5.1"
7
7
 
8
8
  cv_path = File.expand_path(File.join(File.dirname(__FILE__), "../commitversion"))
9
9
  if File.exists?(cv_path)
data/narou.gemspec CHANGED
@@ -52,6 +52,10 @@ narou コマンドのインストール or アップデートが完了しまし
52
52
  * Bug Fix
53
53
  - タイトルに " が含まれている場合に正常に変換できない問題を修正
54
54
 
55
+ 2014/05/15 : **1.5.5.1**
56
+ * Bug Fix
57
+ - 暁の小説で一部正常にDLできないものがあったので修正
58
+
55
59
  #{"*" * 79}
56
60
  EOS
57
61
  gem.post_install_message = install_message.gsub("\t", " ")
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: 1.5.5
4
+ version: 1.5.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - whiteleaf7
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-15 00:00:00.000000000 Z
11
+ date: 2014-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: termcolor
@@ -196,6 +196,10 @@ post_install_message: |
196
196
  * Bug Fix
197
197
  - タイトルに " が含まれている場合に正常に変換できない問題を修正
198
198
 
199
+ 2014/05/15 : **1.5.5.1**
200
+ * Bug Fix
201
+ - 暁の小説で一部正常にDLできないものがあったので修正
202
+
199
203
  *******************************************************************************
200
204
  rdoc_options: []
201
205
  require_paths: