nicoscraper 0.2.11 → 0.2.12

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -9,8 +9,8 @@ NicoScraper
9
9
  **Author:** Masami Yonehara
10
10
  **Copyright:** 2011
11
11
  **License:** MIT License
12
- **Latest Version:** 0.2.10
13
- **Release Date:** Sep 30th 2011
12
+ **Latest Version:** 0.2.12
13
+ **Release Date:** Oct 12th 2011
14
14
 
15
15
 
16
16
  何をするライブラリ?
@@ -142,11 +142,8 @@ NicoScraper
142
142
  Time.at(movie.first_retrieve).to_s
143
143
  }
144
144
 
145
- if terminate
146
- puts "loop terminated."
147
- else
148
- "continue" # "continue"を返すと検索を継続
149
- end
145
+ # "continue"をブロック内で返すと検索を継続
146
+ "continue" unless terminate
150
147
  }
151
148
 
152
149
   この例では、`VOCALOID`というタグの付く動画を、`post_new`=投稿日時が新しい順からさかのぼって取得し、取得した動画の日付が3日前の0時0分を超えるまでそれを続けます。
@@ -337,6 +334,10 @@ GitHubを経由して下さってもいいのですが、まだ慣れていな
337
334
 
338
335
  ###更新履歴
339
336
 
337
+ **v 0.2.11 0.2.12**
338
+
339
+ + Seacherの各メソッドで、取得結果が配列に累積されてしまうバグを修正。
340
+
340
341
  **v 0.2.10**
341
342
 
342
343
  + 例外発生時に終了してしまうバグを修正。
@@ -369,7 +370,7 @@ GitHubを経由して下さってもいいのですが、まだ慣れていな
369
370
 
370
371
  **v 0.2.4**
371
372
 
372
- + ドキュメントの作成。
373
+ + ドキュメントの作成。
373
374
 
374
375
  + Searcherループのバグ修正。
375
376
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.10
1
+ 0.2.12
@@ -172,7 +172,6 @@ module Nicos
172
172
  rescue => e
173
173
  puts e
174
174
  rescue Timeout::Error => e
175
- debugger
176
175
  timeOut
177
176
  res[:order] = :retry
178
177
 
@@ -188,7 +187,6 @@ module Nicos
188
187
  when Net::HTTPNotFound
189
188
  notFound
190
189
  when Net::HTTPServiceUnavailable
191
- debugger
192
190
  serviceUnavailable
193
191
  else
194
192
  unknownError
@@ -57,11 +57,11 @@ module Nicos
57
57
 
58
58
  def loop(tag, sort, method, &block)
59
59
  @page = 1
60
- movieObjAry = []
61
60
  order = ""
62
61
 
63
62
  begin
64
- response = get(
63
+ movieObjAry = []
64
+ response = get(
65
65
  tag,
66
66
  sort,
67
67
  method
data/nicoscraper.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{nicoscraper}
8
- s.version = "0.2.11"
8
+ s.version = "0.2.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Masami Yonehara}]
@@ -200,10 +200,10 @@ describe "When execute 'Nicos::Searcher::ByTag.execute' method " +
200
200
  searcher = Nicos::Searcher::ByTag.new()
201
201
  count = 0
202
202
 
203
- searcher.execute("ゆっくり実況プレイpart1リンク", :post_old:) { |result, status|
203
+ searcher.execute("ゆっくり実況プレイpart1リンク", :post_old) { |result, status|
204
204
  @result = result
205
205
  @status = status
206
- p @status
206
+
207
207
  count += 1
208
208
  "continue" unless count >= 3
209
209
  }
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: nicoscraper
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.11
5
+ version: 0.2.12
6
6
  platform: ruby
7
7
  authors:
8
8
  - Masami Yonehara
@@ -145,7 +145,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
145
  requirements:
146
146
  - - ">="
147
147
  - !ruby/object:Gem::Version
148
- hash: -3296327306900672380
148
+ hash: 1864586061554499888
149
149
  segments:
150
150
  - 0
151
151
  version: "0"