legitbot 1.10.0 → 1.10.1

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: 1a47c532b717bc82e3d7f217bc2d53078e7b3ae4745069cb7e41d68a9931ab46
4
- data.tar.gz: a2d37f6580bac4826f29af4cbe6037108747b21d322c5c19f72a80bd781adc71
3
+ metadata.gz: 96b1e715f79bb22d156a8c5c19d88d8bfa1409dda3f4f57f0220628570c478f4
4
+ data.tar.gz: 37551124bfc97ad12a77c8d90f88053d90d0be99df60ac1ac2c185d5551b38ce
5
5
  SHA512:
6
- metadata.gz: d739b324c2c717bd878015934d17b022f3600b6609308f2dff6f1f9f79c145d324fb3f9d4787da5617ae004a9aa096cfc9dddec650af291921b4707c4796eaa2
7
- data.tar.gz: 57d1f6eacc3e5d4c60543732afa0d23ec2754fac07ae1ee96e6becc777b71540fc39a55022a180edf6aa7bebd80e4e3ef341db4a4b29bc9c3d4b93b18071c43a
6
+ metadata.gz: 66e39c813235f59a102264dd882bb874314c28ad381997522425ad22fcadd979e251d45f6e3cc24aa587718e305439d47db83ed5d58964e39bc0adc7bbd5a426
7
+ data.tar.gz: bcc7f1a8a39942028105cce990ca3d9acee5c14551548bf09414062863554c4b184d7bcb40d9d427ec3bd8d63ce526840eb2325373e6d67c8004636eeff11cba
@@ -4,6 +4,8 @@ on:
4
4
  schedule:
5
5
  - cron: '29 6 * * 6'
6
6
 
7
+ workflow_dispatch:
8
+
7
9
  jobs:
8
10
  lint:
9
11
  runs-on: ubuntu-latest
@@ -32,7 +34,8 @@ jobs:
32
34
  - name: Run tests
33
35
  run: bundle exec rake test
34
36
  - name: Run linter
35
- run: bundle exec rubocop --auto-correct
37
+ run: bundle exec rubocop -A
38
+ continue-on-error: true
36
39
  - name: Create Pull Request
37
40
  uses: peter-evans/create-pull-request@v5
38
41
  with:
@@ -2,18 +2,97 @@
2
2
 
3
3
  module Legitbot # :nodoc:
4
4
  # https://duckduckgo.com/duckduckbot
5
+ # rubocop:disable Metrics/ClassLength
5
6
  class DuckDuckGo < BotMatch
6
7
  # @fetch:url https://duckduckgo.com/duckduckgo-help-pages/results/duckduckbot/
7
8
  # @fetch:selector section.main article.content ul > li
8
9
  ip_ranges %w[
10
+ 13.89.106.77
9
11
  20.12.141.99
10
12
  20.40.133.240
13
+ 20.43.150.85
14
+ 20.43.150.93
15
+ 20.43.172.120
16
+ 20.44.222.1
11
17
  20.49.136.28
18
+ 20.50.48.159
19
+ 20.50.48.192
20
+ 20.50.49.0
21
+ 20.50.49.25
22
+ 20.50.49.40
23
+ 20.50.49.55
24
+ 20.50.49.237
25
+ 20.50.50.46
26
+ 20.50.50.118
27
+ 20.50.50.121
28
+ 20.50.50.123
29
+ 20.50.50.130
30
+ 20.50.50.134
31
+ 20.50.50.145
32
+ 20.50.50.146
33
+ 20.50.50.163
12
34
  20.50.168.91
35
+ 20.53.78.106
36
+ 20.53.78.123
37
+ 20.53.78.138
38
+ 20.53.78.144
39
+ 20.53.78.236
40
+ 20.53.91.2
41
+ 20.53.92.211
42
+ 20.53.134.160
43
+ 20.56.197.58
44
+ 20.56.197.63
45
+ 20.61.34.40
46
+ 20.62.224.44
47
+ 20.71.12.143
48
+ 20.72.242.93
49
+ 20.73.132.240
50
+ 20.73.202.147
51
+ 20.75.144.152
52
+ 20.79.226.26
53
+ 20.79.238.198
54
+ 20.79.239.66
55
+ 20.80.129.80
56
+ 20.93.28.24
57
+ 20.99.255.235
58
+ 20.113.3.121
59
+ 20.113.14.159
13
60
  20.185.79.15
14
61
  20.185.79.47
62
+ 20.191.44.16
63
+ 20.191.44.22
64
+ 20.191.44.119
65
+ 20.191.44.234
15
66
  20.191.45.212
67
+ 20.193.12.126
68
+ 20.193.24.10
69
+ 20.193.24.251
70
+ 20.193.25.197
71
+ 20.193.27.215
16
72
  20.193.45.113
73
+ 20.197.209.11
74
+ 20.197.209.27
75
+ 20.201.15.208
76
+ 20.204.240.172
77
+ 20.204.241.148
78
+ 20.204.242.19
79
+ 20.204.242.101
80
+ 20.204.243.55
81
+ 20.204.246.81
82
+ 20.204.246.254
83
+ 20.207.72.11
84
+ 20.207.72.21
85
+ 20.207.72.110
86
+ 20.207.72.113
87
+ 20.207.97.190
88
+ 20.207.99.197
89
+ 20.207.107.181
90
+ 20.219.43.246
91
+ 20.219.45.67
92
+ 20.219.45.190
93
+ 20.226.133.105
94
+ 40.64.105.247
95
+ 40.64.106.11
17
96
  40.76.162.191
18
97
  40.76.162.208
19
98
  40.76.162.247
@@ -21,14 +100,142 @@ module Legitbot # :nodoc:
21
100
  40.76.163.23
22
101
  40.76.173.151
23
102
  40.80.242.63
103
+ 40.81.250.205
24
104
  40.88.21.235
105
+ 40.89.243.175
106
+ 40.114.182.45
107
+ 40.114.182.153
108
+ 40.114.182.172
109
+ 40.114.183.88
110
+ 40.114.183.196
111
+ 40.114.183.251
112
+ 40.119.232.50
113
+ 40.119.232.146
114
+ 40.119.232.215
115
+ 40.119.232.218
116
+ 40.119.232.251
117
+ 51.104.146.225
118
+ 51.104.146.235
119
+ 51.104.160.167
120
+ 51.104.160.177
121
+ 51.104.161.32
122
+ 51.104.162.149
123
+ 51.104.163.250
124
+ 51.104.164.109
125
+ 51.104.164.147
126
+ 51.104.164.189
127
+ 51.104.164.215
128
+ 51.104.166.111
129
+ 51.104.167.19
130
+ 51.104.167.52
131
+ 51.104.167.54
132
+ 51.104.167.61
133
+ 51.104.167.71
134
+ 51.104.167.87
135
+ 51.104.167.88
136
+ 51.104.167.95
137
+ 51.104.167.96
138
+ 51.104.167.104
139
+ 51.104.167.110
140
+ 51.104.180.26
141
+ 51.104.180.47
142
+ 51.104.180.53
25
143
  51.107.40.209
26
144
  51.116.131.221
27
145
  51.120.48.122
146
+ 51.138.90.161
147
+ 51.138.90.206
148
+ 51.138.90.233
28
149
  52.142.24.149
29
150
  52.142.26.175
151
+ 52.143.95.162
152
+ 52.143.95.204
153
+ 52.143.241.111
154
+ 52.143.242.6
155
+ 52.143.243.117
156
+ 52.143.244.81
157
+ 52.143.247.235
158
+ 52.146.58.236
159
+ 52.146.59.12
160
+ 52.146.59.154
161
+ 52.146.59.156
162
+ 52.146.63.80
163
+ 52.148.161.87
164
+ 52.148.165.38
165
+ 52.149.25.43
166
+ 52.149.28.18
167
+ 52.149.28.83
168
+ 52.149.30.45
169
+ 52.149.56.151
170
+ 52.149.58.27
171
+ 52.149.58.69
172
+ 52.149.58.139
173
+ 52.149.58.173
174
+ 52.149.60.38
175
+ 52.149.61.51
176
+ 52.154.60.82
177
+ 52.154.169.50
178
+ 52.154.169.200
179
+ 52.154.170.26
180
+ 52.154.170.28
181
+ 52.154.170.88
182
+ 52.154.170.96
183
+ 52.154.170.113
184
+ 52.154.170.117
185
+ 52.154.170.122
186
+ 52.154.170.209
187
+ 52.154.170.229
188
+ 52.154.170.243
189
+ 52.154.171.0
190
+ 52.154.171.44
191
+ 52.154.171.70
192
+ 52.154.171.87
193
+ 52.154.171.150
194
+ 52.154.171.196
195
+ 52.154.171.205
196
+ 52.154.171.235
197
+ 52.154.171.250
198
+ 52.154.172.2
199
+ 52.190.37.160
200
+ 52.224.16.221
201
+ 52.224.16.229
202
+ 52.224.19.152
203
+ 52.224.20.174
204
+ 52.224.20.181
205
+ 52.224.20.186
206
+ 52.224.20.190
207
+ 52.224.20.193
208
+ 52.224.20.203
209
+ 52.224.20.204
210
+ 52.224.20.223
211
+ 52.224.20.227
212
+ 52.224.20.249
213
+ 52.224.21.4
214
+ 52.224.21.19
215
+ 52.224.21.20
216
+ 52.224.21.23
217
+ 52.224.21.27
218
+ 52.224.21.49
219
+ 52.224.21.51
220
+ 52.224.21.53
221
+ 52.224.21.55
222
+ 52.224.21.61
223
+ 52.242.224.168
224
+ 104.43.54.127
225
+ 104.43.55.116
226
+ 104.43.55.117
227
+ 104.43.55.166
228
+ 104.43.55.167
229
+ 191.233.3.197
230
+ 191.233.3.202
231
+ 191.234.216.4
232
+ 191.234.216.178
233
+ 191.235.201.214
234
+ 191.235.202.38
235
+ 191.235.202.48
30
236
  ]
31
237
  end
238
+ # rubocop:enable Metrics/ClassLength
32
239
 
33
240
  rule Legitbot::DuckDuckGo, %w[DuckDuckBot]
34
241
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Legitbot
4
- VERSION = '1.10.0'
4
+ VERSION = '1.10.1'
5
5
  end
@@ -14,7 +14,7 @@ module RuboCop
14
14
  extend AutoCorrector
15
15
 
16
16
  MSG = 'Outdated list of IP ranges compared to %<url>s'
17
- REGEXP = /^\s*#\s*@fetch:(?<param>[a-z0-9_]+)\s+(?<arg>.*)?/
17
+ REGEXP = /^\s*#\s*@fetch:(?<param>[a-z0-9_]+)\s+(?<arg>.*)?/.freeze
18
18
 
19
19
  def_node_matcher :on_ip_ranges, <<~PATTERN
20
20
  (send nil? :ip_ranges $(array str+))
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.0
4
+ version: 1.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Azarov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-02 00:00:00.000000000 Z
11
+ date: 2024-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fast_interval_tree