legitbot 1.12.1 → 1.12.2
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 +3 -18
- data/.github/workflows/pr.yml +7 -30
- data/.github/workflows/release.yml +30 -0
- data/lib/legitbot/duckduckgo.rb +12 -0
- data/lib/legitbot/openai.rb +44 -0
- data/lib/legitbot/version.rb +1 -1
- metadata +3 -3
- data/.github/workflows/codecov.yml +0 -41
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cd493bb820b4e1075d81fe65b994148647e353333f137a4aba346089c712ca0d
|
|
4
|
+
data.tar.gz: 21711fdf1f6045ffbd0404b4e9b9e27148433170c3770d3afda4489b5d0337f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cdf2002de0fd6f84a90533872bdafe960ac8d8595835e6f347c26e6e0d966a0797bf5ebdca3d393d3cddfcb771335ab1116a29557948bf8dc79d6bea50667310
|
|
7
|
+
data.tar.gz: 1fbfb29ec0669f5aced846fb137068aa44cbf6689e3670328906c719798208f6d4efa66c6e01d6f18076bc96887c36ed1686c156c37e985bf2b7ec66a74b692f
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
name:
|
|
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@
|
|
14
|
+
- uses: actions/checkout@v5
|
|
19
15
|
- name: Set up Ruby
|
|
20
16
|
uses: ruby/setup-ruby@v1
|
|
21
17
|
with:
|
|
22
|
-
|
|
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
|
data/.github/workflows/pr.yml
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
name:
|
|
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@
|
|
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
|
-
|
|
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@
|
|
32
|
+
- uses: actions/checkout@v5
|
|
45
33
|
- name: Set up Ruby
|
|
46
34
|
uses: ruby/setup-ruby@v1
|
|
47
35
|
with:
|
|
48
|
-
|
|
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
|
data/lib/legitbot/duckduckgo.rb
CHANGED
|
@@ -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
|
data/lib/legitbot/openai.rb
CHANGED
|
@@ -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
|
]
|
|
@@ -33,14 +40,18 @@ module Legitbot # :nodoc:
|
|
|
33
40
|
4.197.115.112/28
|
|
34
41
|
4.205.128.176/28
|
|
35
42
|
4.234.83.96/28
|
|
43
|
+
12.129.184.64/26
|
|
36
44
|
13.65.138.96/28
|
|
37
45
|
13.65.138.112/28
|
|
38
46
|
13.70.107.160/28
|
|
47
|
+
13.71.2.208/28
|
|
39
48
|
13.76.32.208/28
|
|
40
49
|
13.76.116.80/28
|
|
41
50
|
13.83.167.128/28
|
|
42
51
|
13.83.237.176/28
|
|
43
52
|
20.0.53.96/28
|
|
53
|
+
20.27.94.128/28
|
|
54
|
+
20.45.178.144/28
|
|
44
55
|
20.55.229.144/28
|
|
45
56
|
20.63.221.64/28
|
|
46
57
|
20.77.178.240/28
|
|
@@ -53,12 +64,16 @@ module Legitbot # :nodoc:
|
|
|
53
64
|
20.194.0.208/28
|
|
54
65
|
20.194.1.0/28
|
|
55
66
|
20.194.157.176/28
|
|
67
|
+
20.198.67.96/28
|
|
68
|
+
20.204.24.240/28
|
|
56
69
|
20.210.154.128/28
|
|
70
|
+
20.210.174.208/28
|
|
57
71
|
20.215.188.192/28
|
|
58
72
|
20.215.214.16/28
|
|
59
73
|
20.228.106.176/28
|
|
60
74
|
20.235.75.208/28
|
|
61
75
|
20.235.87.224/28
|
|
76
|
+
20.241.32.36/32
|
|
62
77
|
20.249.63.208/28
|
|
63
78
|
23.97.109.224/28
|
|
64
79
|
23.98.142.176/28
|
|
@@ -74,10 +89,18 @@ module Legitbot # :nodoc:
|
|
|
74
89
|
40.84.221.208/28
|
|
75
90
|
40.84.221.224/28
|
|
76
91
|
40.116.73.208/28
|
|
92
|
+
40.122.118.93/32
|
|
93
|
+
40.122.118.119/32
|
|
94
|
+
40.122.118.202/32
|
|
95
|
+
48.218.181.198/32
|
|
96
|
+
50.145.17.210/32
|
|
97
|
+
50.235.235.77/32
|
|
98
|
+
50.235.235.78/32
|
|
77
99
|
51.8.155.48/28
|
|
78
100
|
51.8.155.64/28
|
|
79
101
|
51.8.155.80/28
|
|
80
102
|
51.8.155.112/28
|
|
103
|
+
52.119.123.85/32
|
|
81
104
|
52.148.129.32/28
|
|
82
105
|
52.154.22.48/28
|
|
83
106
|
52.156.77.144/28
|
|
@@ -118,6 +141,8 @@ module Legitbot # :nodoc:
|
|
|
118
141
|
57.154.174.112/28
|
|
119
142
|
57.154.175.0/28
|
|
120
143
|
57.154.187.32/28
|
|
144
|
+
64.124.21.196/32
|
|
145
|
+
66.193.99.66/32
|
|
121
146
|
68.154.28.96/28
|
|
122
147
|
68.218.30.112/28
|
|
123
148
|
68.220.57.64/28
|
|
@@ -134,6 +159,7 @@ module Legitbot # :nodoc:
|
|
|
134
159
|
74.249.86.176/28
|
|
135
160
|
104.210.139.192/28
|
|
136
161
|
104.210.139.224/28
|
|
162
|
+
130.33.24.99/32
|
|
137
163
|
132.196.82.48/28
|
|
138
164
|
135.119.134.128/28
|
|
139
165
|
135.119.134.192/28
|
|
@@ -143,6 +169,9 @@ module Legitbot # :nodoc:
|
|
|
143
169
|
137.135.191.176/28
|
|
144
170
|
138.91.30.48/28
|
|
145
171
|
138.91.46.96/28
|
|
172
|
+
148.76.185.195/32
|
|
173
|
+
148.76.185.196/32
|
|
174
|
+
148.76.185.197/32
|
|
146
175
|
172.178.140.144/28
|
|
147
176
|
172.178.141.112/28
|
|
148
177
|
172.178.141.128/28
|
|
@@ -162,6 +191,13 @@ module Legitbot # :nodoc:
|
|
|
162
191
|
191.235.98.144/28
|
|
163
192
|
191.235.99.80/28
|
|
164
193
|
191.239.245.16/28
|
|
194
|
+
208.52.97.119/32
|
|
195
|
+
208.80.35.35/32
|
|
196
|
+
208.80.35.36/32
|
|
197
|
+
208.80.35.37/32
|
|
198
|
+
208.80.35.40/32
|
|
199
|
+
209.249.37.128/26
|
|
200
|
+
216.64.170.234/32
|
|
165
201
|
]
|
|
166
202
|
end
|
|
167
203
|
# rubocop:enable Metrics/ClassLength
|
|
@@ -171,15 +207,23 @@ module Legitbot # :nodoc:
|
|
|
171
207
|
# @fetch:url https://openai.com/searchbot.json
|
|
172
208
|
# @fetch:jsonpath $.prefixes[*].ipv4Prefix
|
|
173
209
|
ip_ranges %w[
|
|
210
|
+
4.227.36.0/25
|
|
174
211
|
20.14.99.96/28
|
|
175
212
|
20.25.151.224/28
|
|
176
213
|
20.42.10.176/28
|
|
177
214
|
20.168.18.32/28
|
|
178
215
|
20.169.6.224/28
|
|
179
216
|
20.169.7.48/28
|
|
217
|
+
20.169.77.0/25
|
|
180
218
|
20.171.53.224/28
|
|
181
219
|
20.171.123.64/28
|
|
220
|
+
40.67.175.0/25
|
|
182
221
|
51.8.102.0/24
|
|
222
|
+
74.7.228.0/25
|
|
223
|
+
74.7.228.128/25
|
|
224
|
+
74.7.229.0/25
|
|
225
|
+
74.7.229.128/25
|
|
226
|
+
74.7.230.0/25
|
|
183
227
|
104.210.140.128/28
|
|
184
228
|
135.234.64.0/24
|
|
185
229
|
172.182.193.80/28
|
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.12.
|
|
4
|
+
version: 1.12.2
|
|
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-
|
|
11
|
+
date: 2025-10-28 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 }}
|