legitbot 1.12.10 → 1.12.11
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 +4 -4
- data/lib/legitbot/legitbot.rb +1 -1
- data/lib/legitbot/openai.rb +6 -2
- data/lib/legitbot/version.rb +1 -1
- data/test/legitbot_test.rb +4 -0
- 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: 91f8fa53bd35c40ab2eb9c98ef5fad1dda96a869fd474076dde8df0842acf380
|
|
4
|
+
data.tar.gz: 20b7a9bc47fd9eeaed1391797d22c39b3b52a47aa491ab3a9507b61f3535b5cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f102c06a48ccfebbbfeb3d3c8d430979639347ac653f8ce71d345ced341b8a76efafa30f9d0931c3756458727b0c66a019a560b10f5064f16a3c1f8eb3563dc4
|
|
7
|
+
data.tar.gz: 93626c8c0621b88fdf2e5e3f77f06986036e53ecee44966751268111f28aa56fa4f73d095a7784e5cf4414eba668fae324d8966fc43df2daec60aec4b2cce3a1
|
data/lib/legitbot/legitbot.rb
CHANGED
|
@@ -21,7 +21,7 @@ module Legitbot
|
|
|
21
21
|
# rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
|
22
22
|
def self.bot(user_agent, ip)
|
|
23
23
|
bots = @rules
|
|
24
|
-
.select { |rule| rule[:fragments].any? { |f| user_agent
|
|
24
|
+
.select { |rule| rule[:fragments].any? { |f| user_agent&.index f } }
|
|
25
25
|
.map { |rule| rule[:class].new(ip) }
|
|
26
26
|
|
|
27
27
|
selected = bots.select(&:valid?).first if bots.size > 1
|
data/lib/legitbot/openai.rb
CHANGED
|
@@ -51,6 +51,8 @@ module Legitbot # :nodoc:
|
|
|
51
51
|
4.197.64.64/28
|
|
52
52
|
4.197.115.112/28
|
|
53
53
|
4.205.128.176/28
|
|
54
|
+
9.160.163.224/28
|
|
55
|
+
9.160.164.128/28
|
|
54
56
|
13.65.138.96/28
|
|
55
57
|
13.65.138.112/28
|
|
56
58
|
13.67.46.240/28
|
|
@@ -107,6 +109,7 @@ module Legitbot # :nodoc:
|
|
|
107
109
|
20.198.67.96/28
|
|
108
110
|
20.203.245.32/28
|
|
109
111
|
20.204.24.240/28
|
|
112
|
+
20.206.107.192/28
|
|
110
113
|
20.210.154.128/28
|
|
111
114
|
20.210.174.208/28
|
|
112
115
|
20.210.211.192/28
|
|
@@ -126,6 +129,7 @@ module Legitbot # :nodoc:
|
|
|
126
129
|
20.215.220.176/28
|
|
127
130
|
20.215.220.192/28
|
|
128
131
|
20.215.220.208/28
|
|
132
|
+
20.226.32.80/28
|
|
129
133
|
20.227.140.32/28
|
|
130
134
|
20.228.106.176/28
|
|
131
135
|
20.235.75.208/28
|
|
@@ -154,7 +158,6 @@ module Legitbot # :nodoc:
|
|
|
154
158
|
51.8.155.48/28
|
|
155
159
|
51.8.155.64/28
|
|
156
160
|
51.8.155.80/28
|
|
157
|
-
51.8.155.112/28
|
|
158
161
|
51.107.70.192/28
|
|
159
162
|
52.148.129.32/28
|
|
160
163
|
52.154.22.48/28
|
|
@@ -235,7 +238,6 @@ module Legitbot # :nodoc:
|
|
|
235
238
|
135.220.73.240/28
|
|
236
239
|
135.237.131.208/28
|
|
237
240
|
135.237.133.48/28
|
|
238
|
-
135.237.133.112/28
|
|
239
241
|
137.135.183.96/28
|
|
240
242
|
137.135.190.240/28
|
|
241
243
|
137.135.191.32/28
|
|
@@ -248,8 +250,10 @@ module Legitbot # :nodoc:
|
|
|
248
250
|
172.178.141.128/28
|
|
249
251
|
172.183.143.224/28
|
|
250
252
|
172.183.222.128/28
|
|
253
|
+
172.196.40.208/28
|
|
251
254
|
172.202.102.112/28
|
|
252
255
|
172.204.16.64/28
|
|
256
|
+
172.204.27.16/28
|
|
253
257
|
172.212.159.64/28
|
|
254
258
|
172.213.11.144/28
|
|
255
259
|
172.213.12.112/28
|
data/lib/legitbot/version.rb
CHANGED
data/test/legitbot_test.rb
CHANGED
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: 1.12.
|
|
4
|
+
version: 1.12.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Azarov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fast_interval_tree
|