legitbot 1.10.4 → 1.10.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6f6866d656dda624b8222126873aeb7276886344a3bedcb11b6aeb18cd10e64
4
- data.tar.gz: fcc350098a93804f5dfddcf38d945ad1a75c8dced01405cf4a59a70d570f4196
3
+ metadata.gz: 2ac43bac7745d6e0ef906342c82102e87c8644a6cd8a8af3077831f13ebbd79e
4
+ data.tar.gz: 0eeed734eadee6c380d41a604fa21e83aba8d8431cb8444b27fa2b0ec0cabe2a
5
5
  SHA512:
6
- metadata.gz: 998bca74d492853877cd0775aff8bdea57d94521dd91f829289689e35717a190c94250a490a9033c1edfade19bf5caaeeb15771575c46a9096e811b08e6473a4
7
- data.tar.gz: e491ef1b1e8aa07783989ef2992d7d484c62685ba3ea5147c4b2256880939a644d489a0defa3c59a7b0a5b8cb7ff0b82d4cc5a786ed294d647c19ff40c35b2e0
6
+ metadata.gz: 36b25cf91d14fd4211e31c9dd92f8ec7439155a2e7862329d848615ceaff52f5fd1800b56fb25f0956b01572ed019f4689a81de9ba1b828c696710f451517344
7
+ data.tar.gz: 49fbc215737f0d863c1a5ffdf28f5a41f438d31923987cfdbe58a60dd6056f20bc37985ebf1dca2e218dc30ab0a216ba005a670e2027f780280899e689ea7c0c
@@ -7,7 +7,13 @@ module Legitbot # :nodoc:
7
7
  # @fetch:url https://duckduckgo.com/duckduckgo-help-pages/results/duckduckbot/
8
8
  # @fetch:selector section.main article.content ul > li
9
9
  ip_ranges %w[
10
+ 4.182.131.108
11
+ 4.195.133.120
12
+ 4.209.224.56
13
+ 4.213.46.14
14
+ 4.228.76.163
10
15
  13.89.106.77
16
+ 20.3.1.178
11
17
  20.12.141.99
12
18
  20.40.133.240
13
19
  20.43.150.85
@@ -70,6 +76,7 @@ module Legitbot # :nodoc:
70
76
  20.193.25.197
71
77
  20.193.27.215
72
78
  20.193.45.113
79
+ 20.195.108.47
73
80
  20.197.209.11
74
81
  20.197.209.27
75
82
  20.201.15.208
@@ -114,6 +121,7 @@ module Legitbot # :nodoc:
114
121
  40.119.232.215
115
122
  40.119.232.218
116
123
  40.119.232.251
124
+ 51.8.71.117
117
125
  51.8.253.152
118
126
  51.104.146.225
119
127
  51.104.146.235
@@ -228,6 +236,8 @@ module Legitbot # :nodoc:
228
236
  104.43.55.117
229
237
  104.43.55.166
230
238
  104.43.55.167
239
+ 108.141.83.74
240
+ 172.169.17.165
231
241
  191.233.3.197
232
242
  191.233.3.202
233
243
  191.234.216.4
@@ -3,8 +3,23 @@
3
3
  module Legitbot # :nodoc:
4
4
  # https://www.marginalia.nu/marginalia-search/for-webmasters/
5
5
  class Marginalia < BotMatch
6
+ # https://x.com/MarginaliaNu/status/1824172354081263991
7
+ # @fetch:url https://search.marginalia.nu/crawler-ips.txt
6
8
  ip_ranges %w[
7
- 81.170.128.21/32
9
+ 81.170.128.52
10
+ 193.183.0.162
11
+ 193.183.0.163
12
+ 193.183.0.164
13
+ 193.183.0.165
14
+ 193.183.0.166
15
+ 193.183.0.167
16
+ 193.183.0.168
17
+ 193.183.0.169
18
+ 193.183.0.170
19
+ 193.183.0.171
20
+ 193.183.0.172
21
+ 193.183.0.173
22
+ 193.183.0.174
8
23
  ]
9
24
  end
10
25
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Legitbot
4
- VERSION = '1.10.4'
4
+ VERSION = '1.10.5'
5
5
  end
@@ -75,7 +75,7 @@ module RuboCop
75
75
  end
76
76
 
77
77
  def normalise_list(ips)
78
- ips.sort_by(&IPAddr.method(:new))
78
+ ips.uniq.sort_by(&IPAddr.method(:new))
79
79
  end
80
80
 
81
81
  def register_offense(node, new_ips, **params)
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.10.4
4
+ version: 1.10.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: 2024-07-13 00:00:00.000000000 Z
11
+ date: 2024-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fast_interval_tree