selma 0.4.9-arm64-darwin → 0.4.11-arm64-darwin

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a28e8b38da2d18a0a3b6a3b298b931881cc65065bc7d839da439032958a69b8
4
- data.tar.gz: 0343a85ef070363fd3a12fbbefd4090f29aece021b48175a30a1657cfd96329d
3
+ metadata.gz: ab783da59bf093ab8f8c1ccf8e4890417941cefb07f693d4bb4c8b05f34b6d37
4
+ data.tar.gz: 864b708e5465672e53cba68da63ee82a438f8fd274692504d3d34a1c6dc48172
5
5
  SHA512:
6
- metadata.gz: 182dd6d0df85dc330f25a6a03c83d269a083dca4aefd80b2cd334e366c3552811423400d596a96bc5835f53613bbf3a24e9c31634feee3cdc96616b8425af801
7
- data.tar.gz: 7e7eabd78a14bedd4617764a01f45cbb27b0b87f33894bb8ded85db623cc2bc2c69d8f5bb719b8623d10c3cec9cfd97f6eda8f7678a5e14f5804aeeaec6c2263
6
+ metadata.gz: 8b26e54ed8e7ae7d01dc964e39b2fe3c388c10675fefc1a2836f333fcfc30abf50851d5a18840244f294931337bfc8beb7dab5425c756fc491516742a5ba6d3f
7
+ data.tar.gz: acc76a0ec30c418b0a0b12b558975e5a2877e3bb1b303ff0a563b82bf5eec7cb592b4247dea5ca135c1fc4a5328a90b98d3ddd202cb956be457c0a472ebd290c
data/README.md CHANGED
@@ -134,7 +134,6 @@ The `Selma::Selector` object has three possible kwargs:
134
134
  Here's an example for `handle_text_chunk` which changes strings in various elements which are _not_ `pre` or `code`:
135
135
 
136
136
  ```ruby
137
-
138
137
  class MatchText
139
138
  SELECTOR = Selma::Selector.new(match_text_within: "*", ignore_text_within: ["pre", "code"])
140
139
 
@@ -189,6 +188,7 @@ Selma::Rewriter.new(options: { memory: { max_allowed_memory_usage: 1_000_000 } }
189
188
  ```
190
189
 
191
190
  The structure of the `memory` options looks like this:
191
+
192
192
  ```ruby
193
193
  {
194
194
  memory: {
@@ -215,43 +215,44 @@ input size = 25309 bytes, 0.03 MB
215
215
 
216
216
  ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
217
217
  Warming up --------------------------------------
218
- sanitize-sm 15.000 i/100ms
219
- selma-sm 127.000 i/100ms
218
+ sanitize-sm 15.000 i/100ms
219
+ selma-sm 127.000 i/100ms
220
220
  Calculating -------------------------------------
221
- sanitize-sm 157.643 (± 1.9%) i/s - 4.740k in 30.077172s
222
- selma-sm 1.278k (± 1.5%) i/s - 38.354k in 30.019722s
221
+ sanitize-sm 157.643 (± 1.9%) i/s - 4.740k in 30.077172s
222
+ selma-sm 1.278k (± 1.5%) i/s - 38.354k in 30.019722s
223
223
 
224
224
  Comparison:
225
- selma-sm: 1277.9 i/s
226
- sanitize-sm: 157.6 i/s - 8.11x slower
225
+ selma-sm: 1277.9 i/s
226
+ sanitize-sm: 157.6 i/s - 8.11x slower
227
227
 
228
228
  input size = 86686 bytes, 0.09 MB
229
229
 
230
230
  ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
231
231
  Warming up --------------------------------------
232
- sanitize-md 4.000 i/100ms
233
- selma-md 33.000 i/100ms
232
+ sanitize-md 4.000 i/100ms
233
+ selma-md 33.000 i/100ms
234
234
  Calculating -------------------------------------
235
- sanitize-md 40.034 (± 5.0%) i/s - 1.200k in 30.043322s
236
- selma-md 332.959 (± 2.1%) i/s - 9.999k in 30.045733s
235
+ sanitize-md 40.034 (± 5.0%) i/s - 1.200k in 30.043322s
236
+ selma-md 332.959 (± 2.1%) i/s - 9.999k in 30.045733s
237
237
 
238
238
  Comparison:
239
- selma-md: 333.0 i/s
240
- sanitize-md: 40.0 i/s - 8.32x slower
239
+ selma-md: 333.0 i/s
240
+ sanitize-md: 40.0 i/s - 8.32x slower
241
241
 
242
242
  input size = 7172510 bytes, 7.17 MB
243
243
 
244
244
  ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
245
245
  Warming up --------------------------------------
246
- sanitize-lg 1.000 i/100ms
247
- selma-lg 1.000 i/100ms
246
+ sanitize-lg 1.000 i/100ms
247
+ selma-lg 1.000 i/100ms
248
248
  Calculating -------------------------------------
249
- sanitize-lg 0.141 (± 0.0%) i/s - 5.000 in 35.426127s
250
- selma-lg 3.963 (± 0.0%) i/s - 119.000 in 30.037386s
249
+ sanitize-lg 0.141 (± 0.0%) i/s - 5.000 in 35.426127s
250
+ selma-lg 3.963 (± 0.0%) i/s - 119.000 in 30.037386s
251
251
 
252
252
  Comparison:
253
- selma-lg: 4.0 i/s
254
- sanitize-lg: 0.1 i/s - 28.03x slower
253
+ selma-lg: 4.0 i/s
254
+ sanitize-lg: 0.1 i/s - 28.03x slower
255
+
255
256
  </pre>
256
257
  </details>
257
258
  <!-- prettier-ignore-end -->
@@ -267,52 +268,53 @@ input size = 25309 bytes, 0.03 MB
267
268
 
268
269
  ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
269
270
  Warming up --------------------------------------
270
- nokogiri-sm 79.000 i/100ms
271
- nokolexbor-sm 295.000 i/100ms
272
- selma-sm 237.000 i/100ms
271
+ nokogiri-sm 79.000 i/100ms
272
+ nokolexbor-sm 295.000 i/100ms
273
+ selma-sm 237.000 i/100ms
273
274
  Calculating -------------------------------------
274
- nokogiri-sm 800.531 (± 2.2%) i/s - 24.016k in 30.016056s
275
- nokolexbor-sm 3.033k (± 3.6%) i/s - 91.155k in 30.094884s
276
- selma-sm 2.386k (± 1.6%) i/s - 71.574k in 30.001701s
275
+ nokogiri-sm 800.531 (± 2.2%) i/s - 24.016k in 30.016056s
276
+ nokolexbor-sm 3.033k (± 3.6%) i/s - 91.155k in 30.094884s
277
+ selma-sm 2.386k (± 1.6%) i/s - 71.574k in 30.001701s
277
278
 
278
279
  Comparison:
279
- nokolexbor-sm: 3033.1 i/s
280
- selma-sm: 2386.3 i/s - 1.27x slower
281
- nokogiri-sm: 800.5 i/s - 3.79x slower
280
+ nokolexbor-sm: 3033.1 i/s
281
+ selma-sm: 2386.3 i/s - 1.27x slower
282
+ nokogiri-sm: 800.5 i/s - 3.79x slower
282
283
 
283
284
  input size = 86686 bytes, 0.09 MB
284
285
 
285
286
  ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
286
287
  Warming up --------------------------------------
287
- nokogiri-md 8.000 i/100ms
288
- nokolexbor-md 43.000 i/100ms
289
- selma-md 38.000 i/100ms
288
+ nokogiri-md 8.000 i/100ms
289
+ nokolexbor-md 43.000 i/100ms
290
+ selma-md 38.000 i/100ms
290
291
  Calculating -------------------------------------
291
- nokogiri-md 85.013 (± 8.2%) i/s - 2.024k in 52.257472s
292
- nokolexbor-md 416.074 (±11.1%) i/s - 12.341k in 30.111613s
293
- selma-md 361.471 (± 4.7%) i/s - 10.830k in 30.033997s
292
+ nokogiri-md 85.013 (± 8.2%) i/s - 2.024k in 52.257472s
293
+ nokolexbor-md 416.074 (±11.1%) i/s - 12.341k in 30.111613s
294
+ selma-md 361.471 (± 4.7%) i/s - 10.830k in 30.033997s
294
295
 
295
296
  Comparison:
296
- nokolexbor-md: 416.1 i/s
297
- selma-md: 361.5 i/s - same-ish: difference falls within error
298
- nokogiri-md: 85.0 i/s - 4.89x slower
297
+ nokolexbor-md: 416.1 i/s
298
+ selma-md: 361.5 i/s - same-ish: difference falls within error
299
+ nokogiri-md: 85.0 i/s - 4.89x slower
299
300
 
300
301
  input size = 7172510 bytes, 7.17 MB
301
302
 
302
303
  ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
303
304
  Warming up --------------------------------------
304
- nokogiri-lg 1.000 i/100ms
305
- nokolexbor-lg 1.000 i/100ms
306
- selma-lg 1.000 i/100ms
305
+ nokogiri-lg 1.000 i/100ms
306
+ nokolexbor-lg 1.000 i/100ms
307
+ selma-lg 1.000 i/100ms
307
308
  Calculating -------------------------------------
308
- nokogiri-lg 0.805 (± 0.0%) i/s - 25.000 in 31.148730s
309
- nokolexbor-lg 2.194 (± 0.0%) i/s - 66.000 in 30.278108s
310
- selma-lg 5.541 (± 0.0%) i/s - 166.000 in 30.037197s
309
+ nokogiri-lg 0.805 (± 0.0%) i/s - 25.000 in 31.148730s
310
+ nokolexbor-lg 2.194 (± 0.0%) i/s - 66.000 in 30.278108s
311
+ selma-lg 5.541 (± 0.0%) i/s - 166.000 in 30.037197s
311
312
 
312
313
  Comparison:
313
- selma-lg: 5.5 i/s
314
- nokolexbor-lg: 2.2 i/s - 2.53x slower
315
- nokogiri-lg: 0.8 i/s - 6.88x slower
314
+ selma-lg: 5.5 i/s
315
+ nokolexbor-lg: 2.2 i/s - 2.53x slower
316
+ nokogiri-lg: 0.8 i/s - 6.88x slower
317
+
316
318
  </pre>
317
319
  </details>
318
320
  <!-- prettier-ignore-end -->
Binary file
Binary file
data/lib/selma/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Selma
4
- VERSION = "0.4.9"
4
+ VERSION = "0.4.11"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.4.11
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Garen J. Torikian
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-09 00:00:00.000000000 Z
11
+ date: 2024-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -48,9 +48,8 @@ files:
48
48
  - LICENSE.txt
49
49
  - README.md
50
50
  - lib/selma.rb
51
- - lib/selma/3.1/selma.bundle
52
51
  - lib/selma/3.2/selma.bundle
53
- - lib/selma/3.3/selma.bundle
52
+ - lib/selma/3.4/selma.bundle
54
53
  - lib/selma/config.rb
55
54
  - lib/selma/extension.rb
56
55
  - lib/selma/html.rb
@@ -80,17 +79,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
80
79
  requirements:
81
80
  - - ">="
82
81
  - !ruby/object:Gem::Version
83
- version: '3.1'
82
+ version: '3.2'
84
83
  - - "<"
85
84
  - !ruby/object:Gem::Version
86
- version: 3.4.dev
85
+ version: 3.5.dev
87
86
  required_rubygems_version: !ruby/object:Gem::Requirement
88
87
  requirements:
89
- - - ">="
88
+ - - "~>"
90
89
  - !ruby/object:Gem::Version
91
- version: 3.3.22
90
+ version: '3.4'
92
91
  requirements: []
93
- rubygems_version: 3.4.4
92
+ rubygems_version: 3.5.23
94
93
  signing_key:
95
94
  specification_version: 4
96
95
  summary: Selma selects and matches HTML nodes using CSS rules. Backed by Rust's lol_html
Binary file
Binary file