narou 1.5.7 → 1.5.7.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: fdbb128a4a37a80990e9badca7319f0499a35147
4
- data.tar.gz: 93863a3fa4c2cd1508151f195c6d6a7859942ffc
3
+ metadata.gz: 4a37a9a0e7f080d2188276f3d0c83637c3ee8d93
4
+ data.tar.gz: 55c02bdfee9aec77725aa454b229b761f058483b
5
5
  SHA512:
6
- metadata.gz: 8c8a2578fad632ea5512fc6e4aa648e247d3947fb8a61beea3c062cc7e67fa9bea07ff44fcfc68bb6dc28633a95d15ef58f164ad29ecd278d4ccbf20d2d39dcf
7
- data.tar.gz: a055888e8b7b01d71ca5ee45b8eb584853d4bb82c7d7ddecd5b354acc2d2e13635fad230852a22a2b40c3a3322548d172800e6511748053cfd658b117d63bd9d
6
+ metadata.gz: a33c77001db971888407e430a5e3010d178df4567253e5cbc41d951353f0d62430559292b96b90c600b56ebd52f4adc8bc1cb9a397f21ec476bce58828cd8898
7
+ data.tar.gz: 230d016af1e5cebb0bb4e9cc598a23ee6c3d74d725304514415326b8e333c85577c23d97b837a852d8c096e31fe5da606c966c7e6c62960d12ba4fb17cb32f99
@@ -1,6 +1,10 @@
1
1
  
2
2
  更新履歴 - ChangeLog
3
3
  --------------------
4
+ 2014/06/15 : **1.5.7.1**
5
+ * 追加機能もしくは仕様変更
6
+ - 10話ごとの制限が復活していたので、1.5.7で外したウェイトを復活させました
7
+
4
8
  2014/06/14 : **1.5.7**
5
9
  * 追加機能もしくは仕様変更
6
10
  - 小説家になろうにおいて、10話ごとにかけていたウェイトを削除
data/README.md CHANGED
@@ -24,6 +24,10 @@ Narou.rb ― 「小説家になろう」「小説を読もう!」ダウンロ
24
24
  更新履歴 - ChangeLog
25
25
  --------------------
26
26
 
27
+ 2014/06/15 : **1.5.7.1**
28
+ * 追加機能もしくは仕様変更
29
+ - 10話ごとの制限が復活していたので、1.5.7で外したウェイトを復活させました
30
+
27
31
  2014/06/14 : **1.5.7**
28
32
  * 追加機能もしくは仕様変更
29
33
  - 小説家になろうにおいて、10話ごとにかけていたウェイトを削除
@@ -634,29 +634,29 @@ class Downloader
634
634
  # subtitles にダウンロードしたいものをまとめた subtitle info を渡す
635
635
  #
636
636
  def sections_download_and_save(subtitles)
637
- #@@__narou_wait_counter ||= 0
638
- #@@__narou_last_download_time ||= Time.now - 20
637
+ @@__narou_wait_counter ||= 0
638
+ @@__narou_last_download_time ||= Time.now - 20
639
639
  max = subtitles.count
640
640
  return if max == 0
641
641
  puts ("<bold><green>" + TermColor.escape("ID:#{@id} #{get_title} のDL開始") + "</green></bold>").termcolor
642
642
  interval_sleep_time = LocalSetting.get["local_setting"]["download.interval"] || 0
643
643
  interval_sleep_time = 0 if interval_sleep_time < 0
644
644
  save_least_one = false
645
- #if Time.now - @@__narou_last_download_time > 5
646
- # @@__narou_wait_counter = 0
647
- #end
645
+ if Time.now - @@__narou_last_download_time > 5
646
+ @@__narou_wait_counter = 0
647
+ end
648
648
  subtitles.each_with_index do |subtitle_info, i|
649
- #if @setting["is_narou"] && (@@__narou_wait_counter % 10 == 0 && @@__narou_wait_counter >= 10)
649
+ if @setting["is_narou"] && (@@__narou_wait_counter % 10 == 0 && @@__narou_wait_counter >= 10)
650
650
  # MEMO:
651
651
  # 小説家になろうは連続DL規制があるため、ウェイトを入れる必要がある。
652
652
  # 10話ごとに規制が入るため、10話ごとにウェイトを挟む。
653
653
  # 1話ごとに1秒待機を10回繰り返そうと、11回目に規制が入るため、ウェイトは必ず必要。
654
- # sleep(5)
655
- #else
656
- sleep(interval_sleep_time)# if @@__narou_wait_counter > 0
657
- #end
658
- #@@__narou_wait_counter += 1
659
- #@@__narou_last_download_time = Time.now
654
+ sleep(5)
655
+ else
656
+ sleep(interval_sleep_time) if @@__narou_wait_counter > 0
657
+ end
658
+ @@__narou_wait_counter += 1
659
+ @@__narou_last_download_time = Time.now
660
660
  index, subtitle, file_subtitle, chapter = %w(index subtitle file_subtitle chapter).map { |k|
661
661
  subtitle_info[k]
662
662
  }
@@ -3,7 +3,7 @@
3
3
  # Copyright 2013 whiteleaf. All rights reserved.
4
4
  #
5
5
 
6
- Version = "1.5.7"
6
+ Version = "1.5.7.1"
7
7
 
8
8
  cv_path = File.expand_path(File.join(File.dirname(__FILE__), "../commitversion"))
9
9
  if File.exists?(cv_path)
@@ -58,6 +58,10 @@ narou コマンドのインストール or アップデートが完了しまし
58
58
  * Bug Fix
59
59
  - &#39; (') のエンティティ変換を追加
60
60
 
61
+ 2014/06/15 : **1.5.7.1**
62
+ * 追加機能もしくは仕様変更
63
+ - 10話ごとの制限が復活していたので、1.5.7で外したウェイトを復活させました
64
+
61
65
  #{"*" * 79}
62
66
  EOS
63
67
  gem.post_install_message = install_message.gsub("\t", " ")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: narou
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.7
4
+ version: 1.5.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - whiteleaf7
@@ -203,6 +203,10 @@ post_install_message: |
203
203
  * Bug Fix
204
204
  - &#39; (') のエンティティ変換を追加
205
205
 
206
+ 2014/06/15 : **1.5.7.1**
207
+ * 追加機能もしくは仕様変更
208
+ - 10話ごとの制限が復活していたので、1.5.7で外したウェイトを復活させました
209
+
206
210
  *******************************************************************************
207
211
  rdoc_options: []
208
212
  require_paths: