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 +9 -8
- data/VERSION +1 -1
- data/lib/classes/connector.rb +0 -2
- data/lib/classes/searcher.rb +2 -2
- data/nicoscraper.gemspec +1 -1
- data/test/searcher_spec.rb +2 -2
- metadata +2 -2
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.
|
13
|
-
**Release Date:**
|
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
|
-
|
146
|
-
|
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.
|
1
|
+
0.2.12
|
data/lib/classes/connector.rb
CHANGED
@@ -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
|
data/lib/classes/searcher.rb
CHANGED
data/nicoscraper.gemspec
CHANGED
data/test/searcher_spec.rb
CHANGED
@@ -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
|
203
|
+
searcher.execute("ゆっくり実況プレイpart1リンク", :post_old) { |result, status|
|
204
204
|
@result = result
|
205
205
|
@status = status
|
206
|
-
|
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.
|
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:
|
148
|
+
hash: 1864586061554499888
|
149
149
|
segments:
|
150
150
|
- 0
|
151
151
|
version: "0"
|