legitbot 1.14.4 → 1.14.5
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/.github/workflows/autocorrect.yml +1 -1
- data/.github/workflows/pr.yml +2 -2
- data/.github/workflows/release.yml +1 -1
- data/lib/legitbot/openai.rb +131 -1
- data/lib/legitbot/perplexity.rb +8 -0
- data/lib/legitbot/version.rb +1 -1
- 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: d6d6649d7fbe9690b0f4b86d4dad40064aeb62526b50221dabdd7b8f7dd1f96b
|
|
4
|
+
data.tar.gz: 4aa638676080ab9e11fb3736f9d45c86078faa5f66efecafe6d88eb644bae442
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 82a89e969d25c7b8ff616670f167e2bf8d357df103a5581b9d15d0e9ae0a4de1056818144b4c24cf2b6754b745d3c9441b4959f78ecb36161fb2907d415ba2a7
|
|
7
|
+
data.tar.gz: ea70d831a243045340e765135ba8f6f80aff6038f729a324dab99ce2b880e129f3e3c842ba040b0b281fa098d41a5d55e7ed787ed20f7a08acde2d2ffe8995c4
|
|
@@ -18,7 +18,7 @@ jobs:
|
|
|
18
18
|
with:
|
|
19
19
|
persist-credentials: false
|
|
20
20
|
- name: Set up Ruby
|
|
21
|
-
uses: ruby/setup-ruby@
|
|
21
|
+
uses: ruby/setup-ruby@b3aaceaef7e0ee231b499e7b5f49c03fc1d32199 # v1.338.0
|
|
22
22
|
with:
|
|
23
23
|
bundler-cache: true
|
|
24
24
|
- name: Run linter
|
data/.github/workflows/pr.yml
CHANGED
|
@@ -19,7 +19,7 @@ jobs:
|
|
|
19
19
|
with:
|
|
20
20
|
persist-credentials: false
|
|
21
21
|
- name: Set up Ruby
|
|
22
|
-
uses: ruby/setup-ruby@
|
|
22
|
+
uses: ruby/setup-ruby@b3aaceaef7e0ee231b499e7b5f49c03fc1d32199 # v1.338.0
|
|
23
23
|
with:
|
|
24
24
|
ruby-version: ${{ matrix.ruby }}
|
|
25
25
|
bundler-cache: true
|
|
@@ -37,7 +37,7 @@ jobs:
|
|
|
37
37
|
with:
|
|
38
38
|
persist-credentials: false
|
|
39
39
|
- name: Set up Ruby
|
|
40
|
-
uses: ruby/setup-ruby@
|
|
40
|
+
uses: ruby/setup-ruby@b3aaceaef7e0ee231b499e7b5f49c03fc1d32199 # v1.338.0
|
|
41
41
|
with:
|
|
42
42
|
bundler-cache: true
|
|
43
43
|
- name: Run linter
|
|
@@ -21,7 +21,7 @@ jobs:
|
|
|
21
21
|
with:
|
|
22
22
|
persist-credentials: false
|
|
23
23
|
- name: Set up Ruby
|
|
24
|
-
uses: ruby/setup-ruby@
|
|
24
|
+
uses: ruby/setup-ruby@b3aaceaef7e0ee231b499e7b5f49c03fc1d32199 # v1.338.0
|
|
25
25
|
with:
|
|
26
26
|
bundler-cache: false
|
|
27
27
|
- run: bundle install
|
data/lib/legitbot/openai.rb
CHANGED
|
@@ -28,30 +28,44 @@ module Legitbot # :nodoc:
|
|
|
28
28
|
end
|
|
29
29
|
|
|
30
30
|
# https://platform.openai.com/docs/bots
|
|
31
|
-
# rubocop:disable-next Metrics/ClassLength
|
|
31
|
+
# rubocop:disable-next Metrics/ClassLength, Metrics/CollectionLiteralLength
|
|
32
32
|
class OpenAIChat < BotMatch
|
|
33
33
|
# @fetch:url https://openai.com/chatgpt-user.json
|
|
34
34
|
# @fetch:jsonpath $.prefixes[*].ipv4Prefix
|
|
35
35
|
ip_ranges %w[
|
|
36
36
|
4.151.71.176/28
|
|
37
37
|
4.151.119.48/28
|
|
38
|
+
4.184.61.192/28
|
|
38
39
|
4.189.118.208/28
|
|
39
40
|
4.189.119.48/28
|
|
41
|
+
4.193.45.192/28
|
|
40
42
|
4.197.22.112/28
|
|
41
43
|
4.197.64.0/28
|
|
42
44
|
4.197.64.16/28
|
|
43
45
|
4.197.64.48/28
|
|
44
46
|
4.197.64.64/28
|
|
45
47
|
4.197.115.112/28
|
|
48
|
+
4.201.52.48/28
|
|
49
|
+
4.201.58.144/28
|
|
50
|
+
4.201.67.32/28
|
|
51
|
+
4.201.67.144/28
|
|
52
|
+
4.201.102.32/28
|
|
53
|
+
4.201.102.48/28
|
|
54
|
+
4.201.102.96/28
|
|
46
55
|
4.201.232.64/28
|
|
56
|
+
4.205.27.128/28
|
|
47
57
|
4.205.128.176/28
|
|
48
58
|
4.218.24.64/28
|
|
49
59
|
4.226.200.16/28
|
|
50
60
|
4.226.226.32/28
|
|
61
|
+
4.228.101.112/28
|
|
62
|
+
4.232.94.208/28
|
|
51
63
|
9.129.0.0/16
|
|
52
64
|
9.160.34.144/28
|
|
53
65
|
9.160.36.16/28
|
|
54
66
|
9.160.96.16/28
|
|
67
|
+
9.160.107.48/28
|
|
68
|
+
9.160.107.112/28
|
|
55
69
|
9.160.128.16/28
|
|
56
70
|
9.160.128.64/28
|
|
57
71
|
9.160.163.128/28
|
|
@@ -62,6 +76,10 @@ module Legitbot # :nodoc:
|
|
|
62
76
|
9.205.30.128/28
|
|
63
77
|
9.205.30.144/28
|
|
64
78
|
9.205.30.176/28
|
|
79
|
+
9.205.93.224/28
|
|
80
|
+
9.205.93.240/28
|
|
81
|
+
9.205.94.0/28
|
|
82
|
+
9.205.94.144/28
|
|
65
83
|
9.205.128.32/28
|
|
66
84
|
9.205.128.48/28
|
|
67
85
|
9.223.181.208/28
|
|
@@ -72,22 +90,46 @@ module Legitbot # :nodoc:
|
|
|
72
90
|
13.71.2.208/28
|
|
73
91
|
13.76.32.208/28
|
|
74
92
|
13.76.116.80/28
|
|
93
|
+
13.78.76.112/28
|
|
75
94
|
13.83.167.128/28
|
|
76
95
|
13.83.237.176/28
|
|
96
|
+
20.15.237.208/28
|
|
97
|
+
20.17.108.192/28
|
|
98
|
+
20.24.18.144/28
|
|
99
|
+
20.24.189.176/28
|
|
100
|
+
20.41.226.160/28
|
|
77
101
|
20.45.178.144/28
|
|
102
|
+
20.52.118.0/28
|
|
78
103
|
20.55.229.144/28
|
|
104
|
+
20.56.38.160/28
|
|
79
105
|
20.57.199.192/28
|
|
106
|
+
20.59.229.32/28
|
|
80
107
|
20.63.180.96/28
|
|
81
108
|
20.63.221.64/28
|
|
109
|
+
20.65.156.80/28
|
|
110
|
+
20.65.170.144/28
|
|
111
|
+
20.68.151.224/28
|
|
112
|
+
20.70.48.32/28
|
|
113
|
+
20.78.100.240/28
|
|
82
114
|
20.78.130.48/28
|
|
115
|
+
20.78.132.48/28
|
|
116
|
+
20.78.197.96/28
|
|
117
|
+
20.80.77.144/28
|
|
118
|
+
20.83.39.160/28
|
|
83
119
|
20.83.243.176/28
|
|
120
|
+
20.89.220.64/28
|
|
84
121
|
20.98.18.80/28
|
|
85
122
|
20.102.212.144/28
|
|
86
123
|
20.113.211.112/28
|
|
87
124
|
20.113.225.112/28
|
|
125
|
+
20.118.254.192/28
|
|
126
|
+
20.118.254.208/28
|
|
127
|
+
20.118.254.224/28
|
|
128
|
+
20.118.254.240/28
|
|
88
129
|
20.125.112.224/28
|
|
89
130
|
20.125.144.144/28
|
|
90
131
|
20.161.75.208/28
|
|
132
|
+
20.165.109.32/28
|
|
91
133
|
20.168.7.192/28
|
|
92
134
|
20.169.73.32/28
|
|
93
135
|
20.169.73.64/28
|
|
@@ -98,16 +140,30 @@ module Legitbot # :nodoc:
|
|
|
98
140
|
20.169.78.192/28
|
|
99
141
|
20.169.86.224/28
|
|
100
142
|
20.169.86.240/28
|
|
143
|
+
20.169.118.16/28
|
|
101
144
|
20.170.184.16/28
|
|
102
145
|
20.170.184.32/28
|
|
103
146
|
20.170.184.48/28
|
|
104
147
|
20.170.184.64/28
|
|
105
148
|
20.170.184.80/28
|
|
106
149
|
20.172.29.32/28
|
|
150
|
+
20.189.206.112/28
|
|
151
|
+
20.192.5.176/28
|
|
152
|
+
20.194.1.0/28
|
|
153
|
+
20.195.206.224/28
|
|
154
|
+
20.195.206.240/28
|
|
155
|
+
20.196.92.176/28
|
|
156
|
+
20.196.213.160/28
|
|
157
|
+
20.197.251.144/28
|
|
107
158
|
20.199.211.160/28
|
|
108
159
|
20.199.242.0/28
|
|
160
|
+
20.199.243.192/28
|
|
109
161
|
20.200.212.240/28
|
|
162
|
+
20.203.190.208/28
|
|
163
|
+
20.204.112.64/28
|
|
110
164
|
20.206.101.192/28
|
|
165
|
+
20.206.103.80/28
|
|
166
|
+
20.208.196.80/28
|
|
111
167
|
20.210.211.192/28
|
|
112
168
|
20.212.62.208/28
|
|
113
169
|
20.215.187.208/28
|
|
@@ -115,13 +171,25 @@ module Legitbot # :nodoc:
|
|
|
115
171
|
20.215.219.160/28
|
|
116
172
|
20.215.219.208/28
|
|
117
173
|
20.218.30.240/28
|
|
174
|
+
20.218.31.128/28
|
|
175
|
+
20.218.47.192/28
|
|
176
|
+
20.218.47.208/28
|
|
177
|
+
20.218.47.224/28
|
|
178
|
+
20.218.47.240/28
|
|
179
|
+
20.219.29.208/28
|
|
180
|
+
20.219.30.112/28
|
|
118
181
|
20.219.71.192/28
|
|
119
182
|
20.219.161.192/28
|
|
120
183
|
20.219.184.96/28
|
|
184
|
+
20.221.78.80/28
|
|
185
|
+
20.222.28.96/28
|
|
121
186
|
20.222.36.192/28
|
|
187
|
+
20.222.59.224/28
|
|
188
|
+
20.226.108.176/28
|
|
122
189
|
20.227.140.32/28
|
|
123
190
|
20.228.106.176/28
|
|
124
191
|
20.235.87.224/28
|
|
192
|
+
20.235.167.48/28
|
|
125
193
|
20.249.63.208/28
|
|
126
194
|
20.250.6.128/28
|
|
127
195
|
20.250.136.64/28
|
|
@@ -134,14 +202,27 @@ module Legitbot # :nodoc:
|
|
|
134
202
|
23.101.217.176/28
|
|
135
203
|
23.102.140.144/28
|
|
136
204
|
23.102.141.32/28
|
|
205
|
+
40.67.164.144/28
|
|
137
206
|
40.74.200.208/28
|
|
207
|
+
40.74.202.80/28
|
|
138
208
|
40.81.67.96/28
|
|
139
209
|
40.81.234.144/28
|
|
140
210
|
40.84.221.208/28
|
|
141
211
|
40.84.221.224/28
|
|
142
212
|
40.116.73.208/28
|
|
143
213
|
40.119.36.240/28
|
|
214
|
+
40.124.155.160/28
|
|
144
215
|
40.124.161.0/28
|
|
216
|
+
40.124.164.32/28
|
|
217
|
+
40.124.218.208/28
|
|
218
|
+
40.124.218.224/28
|
|
219
|
+
40.124.227.208/28
|
|
220
|
+
40.124.234.176/28
|
|
221
|
+
40.124.249.160/28
|
|
222
|
+
40.124.249.176/28
|
|
223
|
+
48.210.238.0/28
|
|
224
|
+
48.215.128.176/28
|
|
225
|
+
48.215.128.192/28
|
|
145
226
|
48.221.40.176/28
|
|
146
227
|
48.221.184.80/28
|
|
147
228
|
48.221.184.96/28
|
|
@@ -150,11 +231,22 @@ module Legitbot # :nodoc:
|
|
|
150
231
|
51.57.0.96/28
|
|
151
232
|
51.57.158.96/28
|
|
152
233
|
51.57.158.112/28
|
|
234
|
+
51.57.158.128/28
|
|
235
|
+
51.57.158.144/28
|
|
236
|
+
51.57.163.16/28
|
|
237
|
+
51.57.163.32/28
|
|
153
238
|
51.59.24.64/28
|
|
154
239
|
51.59.24.80/28
|
|
155
240
|
51.59.48.80/28
|
|
241
|
+
51.107.73.176/28
|
|
156
242
|
51.116.2.80/28
|
|
157
243
|
51.116.221.96/28
|
|
244
|
+
51.142.84.16/28
|
|
245
|
+
52.141.1.0/28
|
|
246
|
+
52.141.1.208/28
|
|
247
|
+
52.141.20.16/28
|
|
248
|
+
52.147.52.144/28
|
|
249
|
+
52.148.4.16/28
|
|
158
250
|
52.148.129.32/28
|
|
159
251
|
52.156.77.144/28
|
|
160
252
|
52.159.227.32/28
|
|
@@ -169,6 +261,8 @@ module Legitbot # :nodoc:
|
|
|
169
261
|
52.173.221.208/28
|
|
170
262
|
52.173.234.16/28
|
|
171
263
|
52.173.234.80/28
|
|
264
|
+
52.173.235.0/28
|
|
265
|
+
52.176.139.64/28
|
|
172
266
|
52.183.217.240/28
|
|
173
267
|
52.190.137.16/28
|
|
174
268
|
52.190.137.144/28
|
|
@@ -185,16 +279,21 @@ module Legitbot # :nodoc:
|
|
|
185
279
|
52.241.146.208/28
|
|
186
280
|
52.242.132.224/28
|
|
187
281
|
52.242.132.240/28
|
|
282
|
+
52.248.46.224/28
|
|
283
|
+
52.253.140.64/28
|
|
188
284
|
52.255.109.80/28
|
|
189
285
|
52.255.109.96/28
|
|
190
286
|
52.255.109.144/28
|
|
191
287
|
52.255.111.0/28
|
|
192
288
|
52.255.111.80/28
|
|
289
|
+
57.153.213.64/28
|
|
193
290
|
57.154.174.112/28
|
|
194
291
|
57.154.175.0/28
|
|
195
292
|
57.154.187.32/28
|
|
196
293
|
68.154.28.96/28
|
|
197
294
|
68.220.57.64/28
|
|
295
|
+
68.221.77.176/28
|
|
296
|
+
68.221.180.96/28
|
|
198
297
|
70.153.32.16/28
|
|
199
298
|
70.153.32.32/28
|
|
200
299
|
70.153.87.224/28
|
|
@@ -205,15 +304,28 @@ module Legitbot # :nodoc:
|
|
|
205
304
|
74.7.36.64/28
|
|
206
305
|
74.7.36.80/28
|
|
207
306
|
74.7.36.96/28
|
|
307
|
+
74.7.36.128/28
|
|
308
|
+
74.7.36.144/28
|
|
309
|
+
74.7.36.224/28
|
|
310
|
+
74.7.104.240/28
|
|
311
|
+
74.7.108.96/28
|
|
312
|
+
74.152.51.224/28
|
|
313
|
+
74.152.65.144/28
|
|
314
|
+
74.152.67.176/28
|
|
315
|
+
74.159.8.16/28
|
|
316
|
+
74.159.51.96/28
|
|
317
|
+
74.159.127.128/28
|
|
208
318
|
74.161.200.96/28
|
|
209
319
|
74.224.217.64/28
|
|
210
320
|
74.226.253.160/28
|
|
211
321
|
74.248.37.160/28
|
|
212
322
|
85.211.128.16/28
|
|
213
323
|
85.211.128.32/28
|
|
324
|
+
104.44.128.240/28
|
|
214
325
|
104.208.184.192/28
|
|
215
326
|
104.210.139.192/28
|
|
216
327
|
104.210.139.224/28
|
|
328
|
+
104.210.140.16/28
|
|
217
329
|
128.85.198.32/28
|
|
218
330
|
132.196.82.48/28
|
|
219
331
|
134.33.102.192/28
|
|
@@ -227,17 +339,25 @@ module Legitbot # :nodoc:
|
|
|
227
339
|
134.138.58.32/28
|
|
228
340
|
134.149.233.80/28
|
|
229
341
|
135.13.64.240/28
|
|
342
|
+
135.116.84.112/28
|
|
230
343
|
135.116.136.160/28
|
|
344
|
+
135.119.98.112/28
|
|
231
345
|
135.220.73.208/28
|
|
232
346
|
135.220.73.240/28
|
|
233
347
|
135.222.99.32/28
|
|
348
|
+
135.233.181.16/28
|
|
234
349
|
135.237.131.208/28
|
|
235
350
|
135.237.133.48/28
|
|
236
351
|
137.135.191.176/28
|
|
237
352
|
138.91.46.96/28
|
|
238
353
|
145.132.136.96/28
|
|
239
354
|
158.158.5.32/28
|
|
355
|
+
158.158.7.32/28
|
|
356
|
+
158.158.103.32/28
|
|
240
357
|
168.63.252.240/28
|
|
358
|
+
172.132.67.96/28
|
|
359
|
+
172.134.248.0/28
|
|
360
|
+
172.134.248.16/28
|
|
241
361
|
172.162.248.64/28
|
|
242
362
|
172.170.1.80/28
|
|
243
363
|
172.170.225.0/28
|
|
@@ -251,18 +371,28 @@ module Legitbot # :nodoc:
|
|
|
251
371
|
172.183.222.128/28
|
|
252
372
|
172.192.112.208/28
|
|
253
373
|
172.197.160.192/28
|
|
374
|
+
172.197.163.32/28
|
|
375
|
+
172.197.202.176/28
|
|
254
376
|
172.197.203.16/28
|
|
377
|
+
172.198.52.224/28
|
|
378
|
+
172.198.52.240/28
|
|
255
379
|
172.198.58.176/28
|
|
256
380
|
172.198.78.192/28
|
|
257
381
|
172.198.79.112/28
|
|
258
382
|
172.198.161.128/28
|
|
259
383
|
172.199.137.80/28
|
|
384
|
+
172.202.52.96/28
|
|
385
|
+
172.204.18.48/28
|
|
260
386
|
172.204.28.224/28
|
|
387
|
+
172.204.29.176/28
|
|
388
|
+
172.204.29.192/28
|
|
261
389
|
172.204.96.80/28
|
|
262
390
|
172.205.189.192/28
|
|
263
391
|
172.206.38.240/28
|
|
264
392
|
172.207.1.32/28
|
|
265
393
|
172.212.172.160/28
|
|
394
|
+
172.212.231.96/28
|
|
395
|
+
172.212.231.112/28
|
|
266
396
|
172.215.215.32/28
|
|
267
397
|
191.232.238.96/28
|
|
268
398
|
191.233.197.0/28
|
data/lib/legitbot/perplexity.rb
CHANGED
|
@@ -6,6 +6,14 @@ module Legitbot # :nodoc:
|
|
|
6
6
|
# @fetch:url https://www.perplexity.ai/perplexitybot.json
|
|
7
7
|
# @fetch:jsonpath $.prefixes[*].ipv4Prefix
|
|
8
8
|
ip_ranges %w[
|
|
9
|
+
3.41.218.160/32
|
|
10
|
+
3.41.218.161/32
|
|
11
|
+
3.41.218.162/32
|
|
12
|
+
3.41.218.163/32
|
|
13
|
+
3.41.218.164/32
|
|
14
|
+
3.41.218.165/32
|
|
15
|
+
3.41.218.166/32
|
|
16
|
+
3.41.218.167/32
|
|
9
17
|
3.222.232.239/32
|
|
10
18
|
3.224.62.45/32
|
|
11
19
|
18.97.1.228/32
|
data/lib/legitbot/version.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.14.
|
|
4
|
+
version: 1.14.5
|
|
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-11-
|
|
11
|
+
date: 2026-11-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fast_interval_tree
|