daimon_skycrawlers 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/LICENSE.txt +1 -1
- data/daimon_skycrawlers.gemspec +3 -3
- data/lib/daimon_skycrawlers/filter/update_checker.rb +3 -2
- data/lib/daimon_skycrawlers/version.rb +1 -1
- data/sample/spider/config/init.rb +1 -1
- metadata +17 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01cf8887ce71dff448a5130eadb47e702643a042
|
4
|
+
data.tar.gz: 280aca91923bbb0f40af2996074b1d2f32a7e5ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81fe7008849bb2ef7936e2b169671c275669692d77440b2ebada247870fc0a67d08ccad2b9c1c5255c253a90ae22a81c221c163f1dc1b007918f4cc3f90f89fe
|
7
|
+
data.tar.gz: ea67f734ed38fb348d4385ec7b603b88385b2c9f5161ba4765980fa8e355e754b08b680106e2da5e75a4badf4a98287c8f1ecb0b12ce60f140bbeeeb4487bc0f
|
data/.travis.yml
CHANGED
data/LICENSE.txt
CHANGED
data/daimon_skycrawlers.gemspec
CHANGED
@@ -6,8 +6,8 @@ require "daimon_skycrawlers/version"
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "daimon_skycrawlers"
|
8
8
|
spec.version = DaimonSkycrawlers::VERSION
|
9
|
-
spec.authors = ["
|
10
|
-
spec.email = [
|
9
|
+
spec.authors = ["daimon developers"]
|
10
|
+
spec.email = []
|
11
11
|
|
12
12
|
spec.summary = %q{This is a crawler framework.}
|
13
13
|
spec.description = %q{This is a crawler framework.}
|
@@ -18,7 +18,6 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "bundler", "~> 1.11"
|
22
21
|
spec.add_dependency "thor"
|
23
22
|
spec.add_dependency "songkick_queue"
|
24
23
|
spec.add_dependency "faraday"
|
@@ -31,6 +30,7 @@ Gem::Specification.new do |spec|
|
|
31
30
|
spec.add_dependency "typhoeus"
|
32
31
|
spec.add_dependency "webrobots"
|
33
32
|
|
33
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
34
34
|
spec.add_development_dependency "rake", "~> 10.0"
|
35
35
|
spec.add_development_dependency "test-unit"
|
36
36
|
spec.add_development_dependency "test-unit-rr"
|
@@ -28,10 +28,11 @@ module DaimonSkycrawlers
|
|
28
28
|
page = storage.find(url)
|
29
29
|
return true unless page
|
30
30
|
if connection
|
31
|
-
|
31
|
+
response = connection.head(url)
|
32
32
|
else
|
33
|
-
|
33
|
+
response = Faraday.head(url)
|
34
34
|
end
|
35
|
+
headers = response.headers
|
35
36
|
case
|
36
37
|
when headers.key?("etag") && page.etag
|
37
38
|
headers["etag"] != page.etag
|
@@ -4,7 +4,7 @@ require "daimon_skycrawlers/queue"
|
|
4
4
|
|
5
5
|
DaimonSkycrawlers.configure do |config|
|
6
6
|
config.logger = DaimonSkycrawlers::Logger.default
|
7
|
-
config.logger.level =
|
7
|
+
config.logger.level = ::Logger::DEBUG
|
8
8
|
config.crawler_interval = 1
|
9
9
|
config.shutdown_interval = 30
|
10
10
|
end
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daimon_skycrawlers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- daimon developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2016-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.11'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.11'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: thor
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,6 +164,20 @@ dependencies:
|
|
178
164
|
- - ">="
|
179
165
|
- !ruby/object:Gem::Version
|
180
166
|
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: bundler
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '1.11'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '1.11'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: rake
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -291,8 +291,7 @@ dependencies:
|
|
291
291
|
- !ruby/object:Gem::Version
|
292
292
|
version: '0'
|
293
293
|
description: This is a crawler framework.
|
294
|
-
email:
|
295
|
-
- tricknotes.rs@gmail.com
|
294
|
+
email: []
|
296
295
|
executables:
|
297
296
|
- daimon_skycrawlers
|
298
297
|
extensions: []
|