legitbot 0.2.4 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd30bde22fd8379ba4f81c816b37dc6b1ba428e65a4d559df5c930cbb464f582
4
- data.tar.gz: f82f9f393980056a5c3a022f63b48a7344183307d7c7fb0fe5b89ad0e12ca135
3
+ metadata.gz: b14d74ce5edae0b0422d2c094d6ad2a90fc27b82437985dea65f627800db95aa
4
+ data.tar.gz: b1834d8450279a73203adf3af6876bda25fc61c2c4f82fc0a9de766918002573
5
5
  SHA512:
6
- metadata.gz: 2964ab88011ea1daac0c1b656d6e4d50ca9a91f927bb7ce8255c6db873f5db193ff797764b81d695df5dcdd11ad3b2785ef9ec746fbb1475300bc68aed0270cc
7
- data.tar.gz: 20efd5d2e5f062ab1f4afd0844aa9713a5bb28afaea3647c299b8ae3bce1e0b89fe4e8450157ff1dc259cc1a6e4e86d9a8028a6dd2a0059ea3ddffd8ccd13186
6
+ metadata.gz: f7b7ca927a817ed0360751954245b3a85f5f2cc00affcf55a1da459ee719d82f910239f37ac0ccfabe7e44d477c340edbf5a6bcba1c01edde4c3e0f17f35345c
7
+ data.tar.gz: 8d87d281b096eeb42675f92080fc3fefbf6c3c8fc980b7f62cb3ae3fad856310a1fde519efd6cb7420644e4408006e4831f8142131b277de548f4de2590d76df
data/.travis.yml CHANGED
@@ -2,4 +2,8 @@ sudo: false
2
2
  language: ruby
3
3
  cache: bundler
4
4
  rvm:
5
+ - 2.5
5
6
  - 2.3
7
+ - jruby
8
+ jdk:
9
+ - openjdk8
data/README.md CHANGED
@@ -62,3 +62,5 @@ Apache 2.0
62
62
  * Article [When (Fake) Googlebots Attack Your Rails App](http://jessewolgamott.com/blog/2015/11/17/when-fake-googlebots-attack-your-rails-app/)
63
63
  * [Voight-Kampff](https://github.com/biola/Voight-Kampff) is a Ruby gem that
64
64
  detects bots by `User-Agent`
65
+ * [crawler_detect](https://github.com/loadkpi/crawler_detect) is a Ruby gem and Rack
66
+ middleware to detect crawlers by few different request headers, including `User-Agent`
data/legitbot.gemspec CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.description = "A library to make sure a Web request has been "\
15
15
  "made by a real search engine, not a fake"
16
16
 
17
- spec.required_ruby_version = '>= 2.0.0'
17
+ spec.required_ruby_version = '>= 2.3.0'
18
18
  spec.add_dependency "irrc", ">= 0.2.1"
19
19
  spec.add_dependency "segment_tree"
20
20
  spec.add_development_dependency "rake"
@@ -1,7 +1,7 @@
1
1
  module Legitbot
2
2
  # https://duckduckgo.com/duckduckbot
3
3
  class DuckDuckGo < BotMatch
4
- ValidIPs = %w(72.94.249.34 72.94.249.35 72.94.249.36 72.94.249.37 72.94.249.38)
4
+ ValidIPs = %w(107.20.237.51 23.21.226.191 107.21.1.8 54.208.102.37)
5
5
 
6
6
  def valid?
7
7
  DuckDuckGo::ValidIPs.include? @ip
@@ -1,3 +1,3 @@
1
1
  module Legitbot
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legitbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Azarov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-29 00:00:00.000000000 Z
11
+ date: 2019-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: irrc
@@ -112,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - ">="
114
114
  - !ruby/object:Gem::Version
115
- version: 2.0.0
115
+ version: 2.3.0
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  requirements:
118
118
  - - ">="
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  requirements: []
122
122
  rubyforge_project:
123
- rubygems_version: 2.7.6
123
+ rubygems_version: 2.7.6.2
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: Validate Web request was made by legitimate search engine