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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10bfbc0d0b9e7a59c63a71543cc1e9d3793476d2
4
- data.tar.gz: 2804d5c706f194fc6532df004652e4c73d6a8edf
3
+ metadata.gz: 01cf8887ce71dff448a5130eadb47e702643a042
4
+ data.tar.gz: 280aca91923bbb0f40af2996074b1d2f32a7e5ed
5
5
  SHA512:
6
- metadata.gz: 4df3795d85674a75f52c5881a7b395851b0d95ea8773b0ae7358348e31c6591432eeafe3970f128265d643e5b30d97ea477ddd40d6d7aa35a5bfad541b1b7728
7
- data.tar.gz: ab0cc9c39f18e0af8a5e2e462e4406e4b70a34ce156f84ef90260cca13ac26d72fc4a00856019f9a206ca9ba4d495117c879837684833e5560fde2387789c5e5
6
+ metadata.gz: 81fe7008849bb2ef7936e2b169671c275669692d77440b2ebada247870fc0a67d08ccad2b9c1c5255c253a90ae22a81c221c163f1dc1b007918f4cc3f90f89fe
7
+ data.tar.gz: ea67f734ed38fb348d4385ec7b603b88385b2c9f5161ba4765980fa8e355e754b08b680106e2da5e75a4badf4a98287c8f1ecb0b12ce60f140bbeeeb4487bc0f
data/.travis.yml CHANGED
@@ -5,7 +5,7 @@ rvm:
5
5
  - 2.2.5
6
6
  - 2.3.1
7
7
 
8
- before_install: gem install bundler -v 1.11.2
8
+ before_install: gem update bundler
9
9
 
10
10
  services:
11
11
  - rabbitmq
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2016 Ryunosuke SATO
3
+ Copyright (c) 2016 daimon developers
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -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 = ["Ryunosuke SATO"]
10
- spec.email = ["tricknotes.rs@gmail.com"]
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
- headers = connection.head(url)
31
+ response = connection.head(url)
32
32
  else
33
- headers = Faraday.head(url)
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
@@ -1,3 +1,3 @@
1
1
  module DaimonSkycrawlers
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
@@ -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 = :debug
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.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
- - Ryunosuke SATO
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: []