legitbot 1.11.2 → 1.11.4

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: 6c06ecb8c87510aa1305b7cec2a5d6f9af8c2721a329b84bb451812235e70dbf
4
- data.tar.gz: 180c6092712dbcd93c50448496ca15eec5048baac516090ce2d9de437d41eaea
3
+ metadata.gz: 4eb9d4bfaf5ff78ed62ae79fe7b04df534c90a5f56ddaa37e0dfc3757494aa97
4
+ data.tar.gz: 6a923ad4220650542c6e8fba65c348cc7ab3138f524b3a0a44ebe2078d577844
5
5
  SHA512:
6
- metadata.gz: c5fad7cab01736c65375c1d3ad8988e437ab239d69388ed063c7e89c71c104b347382944ecfd1dfd573a11b0a9179e7ebd3754665ebe0764e8265261d170aacd
7
- data.tar.gz: 5f3708844c6c3c99db8766d4a9e5eaf6e9d46f052fcc9f2656b844ae20d14e5e274d7a7747f1f4a3029498a2bc282a1a2e3453552bfec5d3aa8cd4ee77996e37
6
+ metadata.gz: 50359966f76d4c17b3de6c662a64d88c8e28e38e07963cb03abbf44cb4bb7fb2f84a3a499e7b6314ffbbe0ad03ec5528cc21990dd5ff6029bf1ecb0f2b5d6c61
7
+ data.tar.gz: 78c189b1e114dcd82e0c0c94c5a0eadf898f53256d6ecff67f67505770d751a3930dbb3fc7f2f6a0641942d0feab9f08ab20177998ff8c51c47f97aaec462e33
data/README.md CHANGED
@@ -70,7 +70,6 @@ end
70
70
  the list of IPs is in the
71
71
  [Troubleshooting page](https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/troubleshooting-cards)
72
72
  - [Yandex robots](https://yandex.com/support/webmaster/robot-workings/check-yandex-robots.xml)
73
- - [You.com](https://about.you.com/youbot/)
74
73
 
75
74
  ## License
76
75
 
@@ -42,40 +42,6 @@ module Legitbot # :nodoc:
42
42
  148.113.128.0/24
43
43
  148.113.130.0/24
44
44
  167.114.139.0/24
45
- 168.119.64.245/32
46
- 168.119.64.246/31
47
- 168.119.64.248/30
48
- 168.119.64.252/31
49
- 168.119.64.254/32
50
- 168.119.65.43/32
51
- 168.119.65.44/30
52
- 168.119.65.48/29
53
- 168.119.65.56/30
54
- 168.119.65.60/31
55
- 168.119.65.62/32
56
- 168.119.65.107/32
57
- 168.119.65.108/30
58
- 168.119.65.112/29
59
- 168.119.65.120/30
60
- 168.119.65.124/31
61
- 168.119.65.126/32
62
- 168.119.68.117/32
63
- 168.119.68.118/31
64
- 168.119.68.120/30
65
- 168.119.68.124/31
66
- 168.119.68.126/32
67
- 168.119.68.171/32
68
- 168.119.68.172/30
69
- 168.119.68.176/29
70
- 168.119.68.184/30
71
- 168.119.68.188/31
72
- 168.119.68.190/32
73
- 168.119.68.235/32
74
- 168.119.68.236/30
75
- 168.119.68.240/29
76
- 168.119.68.248/30
77
- 168.119.68.252/31
78
- 168.119.68.254/32
79
45
  176.31.139.0/27
80
46
  195.154.122.0/23
81
47
  195.154.126.0/23
@@ -89,6 +55,12 @@ module Legitbot # :nodoc:
89
55
  198.244.226.0/24
90
56
  198.244.240.0/24
91
57
  198.244.242.0/24
58
+ 202.8.40.0/23
59
+ 202.8.42.0/24
60
+ 202.8.43.0/25
61
+ 202.8.43.128/26
62
+ 202.8.43.192/27
63
+ 202.8.43.224/29
92
64
  202.94.84.110/31
93
65
  202.94.84.112/31
94
66
  ]
@@ -21,6 +21,5 @@ module Legitbot # :nodoc:
21
21
  Storebot-Google
22
22
  Google-Site-Verification
23
23
  Google-InspectionTool
24
- Chrome-Lighthouse
25
24
  ]
26
25
  end
@@ -11,6 +11,7 @@ module Legitbot # :nodoc:
11
11
  20.171.207.0/24
12
12
  52.230.152.0/24
13
13
  52.233.106.0/24
14
+ 172.182.201.192/28
14
15
  ]
15
16
  end
16
17
 
@@ -19,9 +20,11 @@ module Legitbot # :nodoc:
19
20
  # @fetch:url https://openai.com/chatgpt-user.json
20
21
  # @fetch:jsonpath $.prefixes[*].ipv4Prefix
21
22
  ip_ranges %w[
23
+ 4.196.118.112/28
22
24
  13.65.240.240/28
23
25
  20.97.189.96/28
24
26
  20.161.75.208/28
27
+ 20.215.188.192/28
25
28
  23.98.142.176/28
26
29
  23.98.179.16/28
27
30
  40.84.180.64/28
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Legitbot
4
- VERSION = '1.11.2'
4
+ VERSION = '1.11.4'
5
5
  end
data/lib/legitbot.rb CHANGED
@@ -22,4 +22,3 @@ require_relative 'legitbot/petalbot'
22
22
  require_relative 'legitbot/pinterest'
23
23
  require_relative 'legitbot/twitter'
24
24
  require_relative 'legitbot/yandex'
25
- require_relative 'legitbot/you'
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.11.2
4
+ version: 1.11.4
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-11-23 00:00:00.000000000 Z
11
+ date: 2024-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fast_interval_tree
@@ -96,7 +96,6 @@ files:
96
96
  - lib/legitbot/validators/ip_ranges.rb
97
97
  - lib/legitbot/version.rb
98
98
  - lib/legitbot/yandex.rb
99
- - lib/legitbot/you.rb
100
99
  - lib/rubocop/cop/custom.rb
101
100
  - lib/rubocop/cop/custom/ip_ranges.rb
102
101
  - rakelib/bump.rake
@@ -123,7 +122,6 @@ files:
123
122
  - test/pinterest_test.rb
124
123
  - test/test_helper.rb
125
124
  - test/twitter_test.rb
126
- - test/you_test.rb
127
125
  homepage: https://github.com/alaz/legitbot
128
126
  licenses:
129
127
  - Apache-2.0
data/lib/legitbot/you.rb DELETED
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Legitbot # :nodoc:
4
- # https://about.you.com/youbot/
5
- class You < BotMatch
6
- ip_ranges %w[
7
- 20.59.40.22
8
- 52.226.199.170
9
- ]
10
- end
11
-
12
- rule Legitbot::You, %w[YouBot/]
13
- end
data/test/you_test.rb DELETED
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative 'test_helper'
4
-
5
- class YouTest < Minitest::Test
6
- def test_malicious_ip
7
- ip = '20.59.41.22'
8
- match = Legitbot::You.new ip
9
-
10
- refute_predicate match, :valid?
11
- end
12
-
13
- def test_valid_ip
14
- ip = '20.59.40.22'
15
- match = Legitbot::You.new ip
16
-
17
- assert_predicate match, :valid?
18
- end
19
-
20
- def test_malicious_ua
21
- bot = Legitbot.bot(
22
- 'Mozilla/5.0 (compatible; YouBot/1.0; +https://about.you.com/youbot/)',
23
- '20.59.41.22'
24
- )
25
-
26
- assert bot
27
- refute_predicate bot, :valid?
28
- end
29
-
30
- def test_valid_ua
31
- bot = Legitbot.bot(
32
- 'Mozilla/5.0 (compatible; YouBot/1.0; +https://about.you.com/youbot/)',
33
- '20.59.40.22'
34
- )
35
-
36
- assert bot
37
- assert_predicate bot, :valid?
38
- end
39
- end