legitbot 1.12.1 → 1.12.3

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: d56f4dd32414017581a905af1e021634e30d22c4e76c4146c7e3a50923277a02
4
- data.tar.gz: 47fe62aa1baf95dee8a3e3cee3e815ec28aa4dc13ec077318b18b67214a6dc5d
3
+ metadata.gz: 9c4f8bea5161d5a93791e83e7fe5e2c79726f9d73cb9512dd83ad8ae19333454
4
+ data.tar.gz: 4ce3d59f639623cf383662cde6e6074f538300bc5618523172963c07c4d29e6c
5
5
  SHA512:
6
- metadata.gz: 2fd237294ef2d18e7c23dcd91c11e0b397d0db982fce65b4e3d2429a0da2dc26e8707b9d4c2aa8f6eac4ffb2c508c70364ea39007551ee6386292e20d32a72f2
7
- data.tar.gz: 4bc856536c0187d2bcebef7959f59becb69398685aa1917fb978bd2888649707e4072dc039a7aca8f88561e75f79686f8307538c733913ba1ca9d0157294728b
6
+ metadata.gz: 861a4997833845489a143270caf346422197d1fbf875f49f66cc7922519e390762ab6b1d7c388fbfa2fd0f7d53ef25d6bf5c82392e9c6870ffdfc33454123e4d
7
+ data.tar.gz: cde7ff9896d5959cdf0a28f8aa92320d9e0d941734ebd767a17e4ae1e3edac0a472255edd54565e47d8addd192dfebd779a33ac5fa95a5529a444a596857710d
@@ -1,4 +1,4 @@
1
- name: autocorrect
1
+ name: Autocorrect
2
2
 
3
3
  on:
4
4
  schedule:
@@ -10,27 +10,12 @@ jobs:
10
10
  lint:
11
11
  runs-on: ubuntu-latest
12
12
 
13
- strategy:
14
- matrix:
15
- ruby: [3.2]
16
-
17
13
  steps:
18
- - uses: actions/checkout@v3
14
+ - uses: actions/checkout@v5
19
15
  - name: Set up Ruby
20
16
  uses: ruby/setup-ruby@v1
21
17
  with:
22
- ruby-version: ${{ matrix.ruby }}
23
- - name: Cache dependencies
24
- uses: actions/cache@v3
25
- with:
26
- path: vendor/bundle
27
- key: ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('**/Gemfile.lock') }}
28
- restore-keys: |
29
- ${{ runner.os }}-${{ matrix.ruby }}-gems-
30
- - name: Install dependencies
31
- run: |
32
- bundle config path vendor/bundle
33
- bundle install --jobs 4 --retry 3
18
+ bundler-cache: true
34
19
  - name: Run tests
35
20
  run: bundle exec rake test
36
21
  - name: Run linter
@@ -1,10 +1,11 @@
1
- name: build
1
+ name: PR Checks
2
2
 
3
3
  on:
4
4
  pull_request:
5
5
 
6
6
  jobs:
7
7
  test:
8
+ name: Tests
8
9
  runs-on: ubuntu-latest
9
10
 
10
11
  strategy:
@@ -13,49 +14,25 @@ jobs:
13
14
  ruby: [jruby, 3.1, 3.2, 3.3, 3.4]
14
15
 
15
16
  steps:
16
- - uses: actions/checkout@v3
17
+ - uses: actions/checkout@v5
17
18
  - name: Set up Ruby
18
19
  uses: ruby/setup-ruby@v1
19
20
  with:
20
21
  ruby-version: ${{ matrix.ruby }}
21
- - name: Cache dependencies
22
- uses: actions/cache@v3
23
- with:
24
- path: vendor/bundle
25
- key: ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('**/Gemfile.lock') }}
26
- restore-keys: |
27
- ${{ runner.os }}-${{ matrix.ruby }}-gems-
28
- - name: Install dependencies
29
- run: |
30
- bundle config path vendor/bundle
31
- bundle install --jobs 4 --retry 3
22
+ bundler-cache: true
32
23
  - name: Run tests
33
24
  run: bundle exec rake test
34
25
 
35
26
  lint:
27
+ name: Lint
36
28
  needs: test
37
29
  runs-on: ubuntu-latest
38
30
 
39
- strategy:
40
- matrix:
41
- ruby: [3.1]
42
-
43
31
  steps:
44
- - uses: actions/checkout@v3
32
+ - uses: actions/checkout@v5
45
33
  - name: Set up Ruby
46
34
  uses: ruby/setup-ruby@v1
47
35
  with:
48
- ruby-version: ${{ matrix.ruby }}
49
- - name: Cache dependencies
50
- uses: actions/cache@v3
51
- with:
52
- path: vendor/bundle
53
- key: ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('**/Gemfile.lock') }}
54
- restore-keys: |
55
- ${{ runner.os }}-${{ matrix.ruby }}-gems-
56
- - name: Install dependencies
57
- run: |
58
- bundle config path vendor/bundle
59
- bundle install --jobs 4 --retry 3
36
+ bundler-cache: true
60
37
  - name: Run linter
61
38
  run: bundle exec rubocop
@@ -0,0 +1,30 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ paths:
8
+ - "lib/legitbot/version.rb"
9
+
10
+ jobs:
11
+ release:
12
+ name: Publish to Rubygems
13
+ runs-on: ubuntu-latest
14
+
15
+ permissions:
16
+ id-token: write
17
+ contents: write
18
+
19
+ steps:
20
+ - uses: actions/checkout@v5
21
+ with:
22
+ persist-credentials: false
23
+ - name: Set up Ruby
24
+ uses: ruby/setup-ruby@v1
25
+ with:
26
+ bundler-cache: true
27
+ - name: Run tests
28
+ run: bundle exec rake test
29
+ - name: Publish
30
+ uses: rubygems/release-gem@v1
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Legitbot # :nodoc:
4
4
  # https://duckduckgo.com/duckduckgo-help-pages/results/duckduckbot
5
- # rubocop:disable Metrics/ClassLength
5
+ # rubocop:disable Metrics/ClassLength, Metrics/CollectionLiteralLength
6
6
  class DuckDuckBot < BotMatch
7
7
  # @fetch:url https://duckduckgo.com/duckduckgo-help-pages/results/duckduckbot
8
8
  # @fetch:selector main > article ul > li > div
@@ -10,12 +10,15 @@ module Legitbot # :nodoc:
10
10
  4.156.136.79
11
11
  4.182.131.108
12
12
  4.195.133.120
13
+ 4.207.220.92
13
14
  4.209.224.56
14
15
  4.213.46.14
15
16
  4.228.76.163
16
17
  13.89.106.77
17
18
  20.3.1.178
19
+ 20.8.252.26
18
20
  20.12.141.99
21
+ 20.13.44.19
19
22
  20.40.133.240
20
23
  20.43.150.85
21
24
  20.43.150.93
@@ -47,9 +50,11 @@ module Legitbot # :nodoc:
47
50
  20.53.91.2
48
51
  20.53.92.211
49
52
  20.53.134.160
53
+ 20.54.224.39
50
54
  20.56.197.58
51
55
  20.56.197.63
52
56
  20.61.34.40
57
+ 20.61.142.192
53
58
  20.62.224.44
54
59
  20.71.12.143
55
60
  20.72.242.93
@@ -64,6 +69,7 @@ module Legitbot # :nodoc:
64
69
  20.99.255.235
65
70
  20.113.3.121
66
71
  20.113.14.159
72
+ 20.166.171.150
67
73
  20.185.79.15
68
74
  20.185.79.47
69
75
  20.191.44.16
@@ -123,6 +129,7 @@ module Legitbot # :nodoc:
123
129
  40.119.232.215
124
130
  40.119.232.218
125
131
  40.119.232.251
132
+ 40.127.154.196
126
133
  51.8.71.117
127
134
  51.8.253.152
128
135
  51.104.146.225
@@ -233,13 +240,17 @@ module Legitbot # :nodoc:
233
240
  52.224.21.61
234
241
  52.242.224.168
235
242
  57.152.72.128
243
+ 68.219.152.220
236
244
  104.43.54.127
237
245
  104.43.55.116
238
246
  104.43.55.117
239
247
  104.43.55.166
240
248
  104.43.55.167
241
249
  108.141.83.74
250
+ 130.107.228.224
251
+ 132.164.209.198
242
252
  172.169.17.165
253
+ 172.199.55.212
243
254
  191.233.3.197
244
255
  191.233.3.202
245
256
  191.234.216.4
@@ -489,6 +500,7 @@ module Legitbot # :nodoc:
489
500
  104.43.55.166
490
501
  104.43.55.167
491
502
  108.141.83.74
503
+ 130.107.228.224
492
504
  172.169.17.165
493
505
  191.233.3.197
494
506
  191.233.3.202
@@ -499,7 +511,7 @@ module Legitbot # :nodoc:
499
511
  191.235.202.48
500
512
  ]
501
513
  end
502
- # rubocop:enable Metrics/ClassLength
514
+ # rubocop:enable Metrics/ClassLength, Metrics/CollectionLiteralLength
503
515
 
504
516
  rule Legitbot::DuckDuckBot, %w[DuckDuckBot]
505
517
  rule Legitbot::DuckAssistBot, %w[DuckAssistBot]
@@ -11,7 +11,14 @@ module Legitbot # :nodoc:
11
11
  20.171.206.0/24
12
12
  20.171.207.0/24
13
13
  52.230.152.0/24
14
+ 74.7.227.0/25
15
+ 74.7.227.128/25
16
+ 74.7.228.0/25
17
+ 74.7.230.0/25
18
+ 132.196.86.0/24
19
+ 172.182.202.0/25
14
20
  172.182.204.0/24
21
+ 172.182.207.0/25
15
22
  172.182.214.0/24
16
23
  172.182.215.0/24
17
24
  ]
@@ -26,21 +33,31 @@ module Legitbot # :nodoc:
26
33
  4.151.71.176/28
27
34
  4.151.119.48/28
28
35
  4.151.241.240/28
36
+ 4.185.216.109/32
29
37
  4.196.118.112/28
30
38
  4.196.198.80/28
31
39
  4.197.19.176/28
32
40
  4.197.22.112/28
41
+ 4.197.64.0/28
42
+ 4.197.64.16/28
43
+ 4.197.64.48/28
44
+ 4.197.64.64/28
33
45
  4.197.115.112/28
34
46
  4.205.128.176/28
35
47
  4.234.83.96/28
48
+ 12.129.184.64/26
36
49
  13.65.138.96/28
37
50
  13.65.138.112/28
51
+ 13.67.72.16/28
38
52
  13.70.107.160/28
53
+ 13.71.2.208/28
39
54
  13.76.32.208/28
40
55
  13.76.116.80/28
41
56
  13.83.167.128/28
42
57
  13.83.237.176/28
43
58
  20.0.53.96/28
59
+ 20.27.94.128/28
60
+ 20.45.178.144/28
44
61
  20.55.229.144/28
45
62
  20.63.221.64/28
46
63
  20.77.178.240/28
@@ -49,16 +66,21 @@ module Legitbot # :nodoc:
49
66
  20.102.212.144/28
50
67
  20.117.22.224/28
51
68
  20.161.75.208/28
69
+ 20.171.137.175/32
52
70
  20.193.50.32/28
53
71
  20.194.0.208/28
54
72
  20.194.1.0/28
55
73
  20.194.157.176/28
74
+ 20.198.67.96/28
75
+ 20.204.24.240/28
56
76
  20.210.154.128/28
77
+ 20.210.174.208/28
57
78
  20.215.188.192/28
58
79
  20.215.214.16/28
59
80
  20.228.106.176/28
60
81
  20.235.75.208/28
61
82
  20.235.87.224/28
83
+ 20.241.32.36/32
62
84
  20.249.63.208/28
63
85
  23.97.109.224/28
64
86
  23.98.142.176/28
@@ -73,11 +95,20 @@ module Legitbot # :nodoc:
73
95
  40.84.181.32/28
74
96
  40.84.221.208/28
75
97
  40.84.221.224/28
98
+ 40.88.27.77/32
76
99
  40.116.73.208/28
100
+ 40.122.118.93/32
101
+ 40.122.118.119/32
102
+ 40.122.118.202/32
103
+ 48.218.181.198/32
104
+ 50.145.17.210/32
105
+ 50.235.235.77/32
106
+ 50.235.235.78/32
77
107
  51.8.155.48/28
78
108
  51.8.155.64/28
79
109
  51.8.155.80/28
80
110
  51.8.155.112/28
111
+ 52.119.123.85/32
81
112
  52.148.129.32/28
82
113
  52.154.22.48/28
83
114
  52.156.77.144/28
@@ -99,6 +130,10 @@ module Legitbot # :nodoc:
99
130
  52.225.75.208/28
100
131
  52.230.163.32/28
101
132
  52.230.164.176/28
133
+ 52.231.30.48/28
134
+ 52.231.34.176/28
135
+ 52.231.39.144/28
136
+ 52.231.50.64/28
102
137
  52.236.94.144/28
103
138
  52.242.132.224/28
104
139
  52.242.132.240/28
@@ -118,6 +153,8 @@ module Legitbot # :nodoc:
118
153
  57.154.174.112/28
119
154
  57.154.175.0/28
120
155
  57.154.187.32/28
156
+ 64.124.21.196/32
157
+ 66.193.99.66/32
121
158
  68.154.28.96/28
122
159
  68.218.30.112/28
123
160
  68.220.57.64/28
@@ -134,20 +171,32 @@ module Legitbot # :nodoc:
134
171
  74.249.86.176/28
135
172
  104.210.139.192/28
136
173
  104.210.139.224/28
174
+ 130.33.24.99/32
137
175
  132.196.82.48/28
138
176
  135.119.134.128/28
139
177
  135.119.134.192/28
178
+ 135.220.208.92/32
179
+ 135.234.27.89/32
140
180
  135.237.131.208/28
141
181
  135.237.133.48/28
142
182
  135.237.133.112/28
143
183
  137.135.191.176/28
144
184
  138.91.30.48/28
145
185
  138.91.46.96/28
186
+ 148.76.185.195/32
187
+ 148.76.185.196/32
188
+ 148.76.185.197/32
189
+ 168.63.252.240/28
190
+ 172.167.32.228/32
191
+ 172.167.161.96/32
192
+ 172.171.234.186/32
146
193
  172.178.140.144/28
147
194
  172.178.141.112/28
148
195
  172.178.141.128/28
149
196
  172.183.143.224/28
150
197
  172.183.222.128/28
198
+ 172.191.70.179/32
199
+ 172.191.238.68/32
151
200
  172.204.16.64/28
152
201
  172.212.159.64/28
153
202
  172.213.11.144/28
@@ -162,6 +211,13 @@ module Legitbot # :nodoc:
162
211
  191.235.98.144/28
163
212
  191.235.99.80/28
164
213
  191.239.245.16/28
214
+ 208.52.97.119/32
215
+ 208.80.35.35/32
216
+ 208.80.35.36/32
217
+ 208.80.35.37/32
218
+ 208.80.35.40/32
219
+ 209.249.37.128/26
220
+ 216.64.170.234/32
165
221
  ]
166
222
  end
167
223
  # rubocop:enable Metrics/ClassLength
@@ -171,15 +227,23 @@ module Legitbot # :nodoc:
171
227
  # @fetch:url https://openai.com/searchbot.json
172
228
  # @fetch:jsonpath $.prefixes[*].ipv4Prefix
173
229
  ip_ranges %w[
230
+ 4.227.36.0/25
174
231
  20.14.99.96/28
175
232
  20.25.151.224/28
176
233
  20.42.10.176/28
177
234
  20.168.18.32/28
178
235
  20.169.6.224/28
179
236
  20.169.7.48/28
237
+ 20.169.77.0/25
180
238
  20.171.53.224/28
181
239
  20.171.123.64/28
240
+ 40.67.175.0/25
182
241
  51.8.102.0/24
242
+ 74.7.228.0/25
243
+ 74.7.228.128/25
244
+ 74.7.229.0/25
245
+ 74.7.229.128/25
246
+ 74.7.230.0/25
183
247
  104.210.140.128/28
184
248
  135.234.64.0/24
185
249
  172.182.193.80/28
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Legitbot
4
- VERSION = '1.12.1'
4
+ VERSION = '1.12.3'
5
5
  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: 1.12.1
4
+ version: 1.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Azarov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-30 00:00:00.000000000 Z
11
+ date: 2025-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fast_interval_tree
@@ -59,8 +59,8 @@ extra_rdoc_files: []
59
59
  files:
60
60
  - ".editorconfig"
61
61
  - ".github/workflows/autocorrect.yml"
62
- - ".github/workflows/codecov.yml"
63
62
  - ".github/workflows/pr.yml"
63
+ - ".github/workflows/release.yml"
64
64
  - ".gitignore"
65
65
  - ".rubocop.yml"
66
66
  - ".ruby-version"
@@ -1,41 +0,0 @@
1
- name: autocorrect
2
-
3
- on:
4
- pull_request:
5
-
6
- push:
7
- branches:
8
- - "master"
9
-
10
- jobs:
11
- codecov:
12
- runs-on: ubuntu-latest
13
-
14
- strategy:
15
- matrix:
16
- ruby: [3.1]
17
-
18
- steps:
19
- - uses: actions/checkout@v3
20
- - name: Set up Ruby
21
- uses: ruby/setup-ruby@v1
22
- with:
23
- ruby-version: ${{ matrix.ruby }}
24
- - name: Cache dependencies
25
- uses: actions/cache@v3
26
- with:
27
- path: vendor/bundle
28
- key: ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('**/Gemfile.lock') }}
29
- restore-keys: |
30
- ${{ runner.os }}-${{ matrix.ruby }}-gems-
31
- - name: Install dependencies
32
- run: |
33
- bundle config path vendor/bundle
34
- bundle install --jobs 4 --retry 3
35
- - name: Run tests
36
- run: bundle exec rake test
37
- - name: Upload coverage
38
- uses: codecov/codecov-action@v4
39
- with:
40
- files: coverage/coverage.xml
41
- token: ${{ secrets.CODECOV_TOKEN }}