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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8038c9800ef6e20a8dafe329006236d1c8aa2add2fe90f6e0765046abc760c67
4
- data.tar.gz: dd63a6e574d3407cf497796ce835be49f6e0227b4bea56ceb8cf464a9dee797d
3
+ metadata.gz: 6efb4076f275c3de6f291fb363841397d4d3693c11455f4709d793f4fddc6a93
4
+ data.tar.gz: 4c9aab98e6633602e4a39d9e121ce9240d2baef5ea2f20c5e52c5d1246c92f8c
5
5
  SHA512:
6
- metadata.gz: 0ef08e46925421514748cd232751de9e931375899d594a80b556c13bd814665ebe7a297786c1ac8c232ea0aac3e39790f86d588e8a621177e4ab4bb14c2343bc
7
- data.tar.gz: 012d6a7106a93c7c0503b38bd6eea4a25b9f974c363c7407cc01d99d9dd9ae90e5281912ecff72c6854b9045191082d735ab3c1e6cda98132001897c4c57bcec
6
+ metadata.gz: 5adfafab4b45fed2db6bc3ad6e9a931512cfc43bb97eba8a5320ee8ca7718dcf605f12071c79edace5b80e7aad3a9969737d6d0a8fcb3c73a84cf0430cd7b08d
7
+ data.tar.gz: 7290cb5a14fd8afcf12c6cc60683ef8dd8023f101442a06b7319c6c828fe4f662600221ab0dca2aae9982950e2872008e7f47863a922d56cef89293ba3b9a416
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CrawlerDetect
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
@@ -33,11 +33,9 @@ module Rack
33
33
  end
34
34
 
35
35
  def user_agent
36
- @user_agent ||= begin
37
- user_agent_headers.map do |header|
38
- @env[header]
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.0
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-13 00:00:00.000000000 Z
11
+ date: 2018-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler