crawler_detect 0.0.3 → 0.1.0

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: 686e43f46d6d5827a8acf9aeebf83c52e599d8acbb2a2908147eb47174a4b821
4
- data.tar.gz: 2f0072fdccaf68b72709e33fe82a90ac48f4221b128ad3591f2af6af6698bd70
3
+ metadata.gz: 8038c9800ef6e20a8dafe329006236d1c8aa2add2fe90f6e0765046abc760c67
4
+ data.tar.gz: dd63a6e574d3407cf497796ce835be49f6e0227b4bea56ceb8cf464a9dee797d
5
5
  SHA512:
6
- metadata.gz: 87982dbaf2771268e2108caaef54166e40591c6db4beb9ca2011ac450b747942a0af0b0f88d7cf3f5f79b8355036e0d46e0ddb0cdd4d25838e8a88a9fc6310d9
7
- data.tar.gz: 3663c17f5b0be1fa942e683f2931622aab737c6a1f67e2d66923b34990b43b5dda9d07f80e98c6ea7180ddf8d9e22f8d8c79e765801c758299bcc473b1051ec0
6
+ metadata.gz: 0ef08e46925421514748cd232751de9e931375899d594a80b556c13bd814665ebe7a297786c1ac8c232ea0aac3e39790f86d588e8a621177e4ab4bb14c2343bc
7
+ data.tar.gz: 012d6a7106a93c7c0503b38bd6eea4a25b9f974c363c7407cc01d99d9dd9ae90e5281912ecff72c6854b9045191082d735ab3c1e6cda98132001897c4c57bcec
@@ -3,7 +3,7 @@
3
3
  module CrawlerDetect
4
4
  class Detector
5
5
  def initialize(user_agent)
6
- @user_agent = user_agent.dup
6
+ @user_agent = user_agent.to_s.dup
7
7
  end
8
8
 
9
9
  def is_crawler?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CrawlerDetect
4
- VERSION = "0.0.3"
4
+ VERSION = "0.1.0"
5
5
  end
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.0.3
4
+ version: 0.1.0
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-09 00:00:00.000000000 Z
11
+ date: 2018-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler