woothee 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/woothee/crawler.rb +4 -0
- data/lib/woothee/dataset.rb +4 -1
- data/lib/woothee/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21b96b5d04362a693958c23564f0873de45656f2
|
4
|
+
data.tar.gz: a044248d037573d4d00b684f3bc761ec39599296
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 325663ea1ced610e66491a82628a77e71046993540c436861ccd3676ea442a2ce3f5bdab35e5360863f08183a340786ddf6121f54944363095cc889672af1807
|
7
|
+
data.tar.gz: 520b5db8c95e5fe77b6c4cad7c2f941416bf4f4e7e12dd557d7aed4e7b6b3d4343d37d5af92b9bfaafb92b7253a67b17adb4a28f309695b7e7be4b878053603a
|
data/lib/woothee/crawler.rb
CHANGED
@@ -77,6 +77,10 @@ module Woothee::Crawler
|
|
77
77
|
return true
|
78
78
|
end
|
79
79
|
end
|
80
|
+
if ua.index('BingPreview')
|
81
|
+
update_map(result, Woothee::DataSet.get('BingPreview'))
|
82
|
+
return true
|
83
|
+
end
|
80
84
|
if ua.index('Baidu')
|
81
85
|
if ua.index('compatible; Baiduspider') or ua.index('Baiduspider+') or ua.index('Baiduspider-image+')
|
82
86
|
update_map(result, Woothee::DataSet.get('Baiduspider'))
|
data/lib/woothee/dataset.rb
CHANGED
@@ -35,7 +35,7 @@ end
|
|
35
35
|
|
36
36
|
module Woothee::DataSet
|
37
37
|
DATASET = {}
|
38
|
-
# GENERATED from dataset.yaml at
|
38
|
+
# GENERATED from dataset.yaml at Mon Aug 15 16:50:36 JST 2016 by taise
|
39
39
|
obj = {:label => 'MSIE', :name => 'Internet Explorer', :type => :browser}
|
40
40
|
obj[:vendor] = 'Microsoft'
|
41
41
|
DATASET[obj[:label]] = obj
|
@@ -288,6 +288,9 @@ module Woothee::DataSet
|
|
288
288
|
obj = {:label => 'bingbot', :name => 'bingbot', :type => :full}
|
289
289
|
obj[:category] = :crawler
|
290
290
|
DATASET[obj[:label]] = obj
|
291
|
+
obj = {:label => 'BingPreview', :name => 'BingPreview', :type => :full}
|
292
|
+
obj[:category] = :crawler
|
293
|
+
DATASET[obj[:label]] = obj
|
291
294
|
obj = {:label => 'Yeti', :name => 'Naver Yeti', :type => :full}
|
292
295
|
obj[:category] = :crawler
|
293
296
|
DATASET[obj[:label]] = obj
|
data/lib/woothee/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: woothee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TAGOMORI Satoshi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|