crawler_detect 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/crawler_detect/version.rb +1 -1
- data/lib/rack/crawler_detect.rb +3 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6efb4076f275c3de6f291fb363841397d4d3693c11455f4709d793f4fddc6a93
|
4
|
+
data.tar.gz: 4c9aab98e6633602e4a39d9e121ce9240d2baef5ea2f20c5e52c5d1246c92f8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5adfafab4b45fed2db6bc3ad6e9a931512cfc43bb97eba8a5320ee8ca7718dcf605f12071c79edace5b80e7aad3a9969737d6d0a8fcb3c73a84cf0430cd7b08d
|
7
|
+
data.tar.gz: 7290cb5a14fd8afcf12c6cc60683ef8dd8023f101442a06b7319c6c828fe4f662600221ab0dca2aae9982950e2872008e7f47863a922d56cef89293ba3b9a416
|
data/lib/rack/crawler_detect.rb
CHANGED
@@ -33,11 +33,9 @@ module Rack
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def user_agent
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
end.compact.join(" ")
|
40
|
-
end
|
36
|
+
user_agent_headers.map do |header|
|
37
|
+
@env[header]
|
38
|
+
end.compact.join(" ")
|
41
39
|
end
|
42
40
|
|
43
41
|
def user_agent_headers
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crawler_detect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kozlov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|