selma 0.4.5 → 0.4.6.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 +4 -4
- data/Cargo.lock +8 -9
- data/ext/selma/src/html/text_chunk.rs +6 -6
- data/lib/selma/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aef17ad0cd3cc5b7d66af208adc138aa4734c76744d051f88889c9e145bd2373
|
4
|
+
data.tar.gz: 9b50370bff0ce06af4613c474c3a5f376b5cb1b73c6845c6e3133a56f37f56dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c45623b754d466caef138dfc09c091d4c9fb4dbee8d1b1d606cd9275cecc3c05d8a320cee984227dda691182b7790f41ff62f8e11dd2600ca0af31c469972923
|
7
|
+
data.tar.gz: 2304b49efa07fe47d225c557c5c6d1c1d7d14cb4ab2553700f3ab74af9babc639cb5b52fd20d84c6d74e47d506c9649b8c44f0ba0c5f26853e8eda9e085d6c63
|
data/Cargo.lock
CHANGED
@@ -426,12 +426,11 @@ dependencies = [
|
|
426
426
|
|
427
427
|
[[package]]
|
428
428
|
name = "ppv-lite86"
|
429
|
-
version = "0.2.
|
429
|
+
version = "0.2.20"
|
430
430
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
431
|
-
checksum = "
|
431
|
+
checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04"
|
432
432
|
dependencies = [
|
433
433
|
"zerocopy",
|
434
|
-
"zerocopy-derive",
|
435
434
|
]
|
436
435
|
|
437
436
|
[[package]]
|
@@ -517,18 +516,18 @@ dependencies = [
|
|
517
516
|
|
518
517
|
[[package]]
|
519
518
|
name = "rb-sys"
|
520
|
-
version = "0.9.
|
519
|
+
version = "0.9.100"
|
521
520
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
522
|
-
checksum = "
|
521
|
+
checksum = "87f2ba20be84b32fad6b0ce397764bcdd0f2dca4431cf7035f6a6721e5747565"
|
523
522
|
dependencies = [
|
524
523
|
"rb-sys-build",
|
525
524
|
]
|
526
525
|
|
527
526
|
[[package]]
|
528
527
|
name = "rb-sys-build"
|
529
|
-
version = "0.9.
|
528
|
+
version = "0.9.100"
|
530
529
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
531
|
-
checksum = "
|
530
|
+
checksum = "7ecae2bdcb118ee721d9a3929f89e8578237fade298dfcf8c928609aa88abc48"
|
532
531
|
dependencies = [
|
533
532
|
"bindgen",
|
534
533
|
"lazy_static",
|
@@ -547,9 +546,9 @@ checksum = "a35802679f07360454b418a5d1735c89716bde01d35b1560fc953c1415a0b3bb"
|
|
547
546
|
|
548
547
|
[[package]]
|
549
548
|
name = "regex"
|
550
|
-
version = "1.10.
|
549
|
+
version = "1.10.6"
|
551
550
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
552
|
-
checksum = "
|
551
|
+
checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619"
|
553
552
|
dependencies = [
|
554
553
|
"aho-corasick",
|
555
554
|
"memchr",
|
@@ -66,7 +66,7 @@ impl SelmaHTMLTextChunk {
|
|
66
66
|
}
|
67
67
|
}
|
68
68
|
|
69
|
-
fn before(&self, args: &[Value]) -> Result<
|
69
|
+
fn before(&self, args: &[Value]) -> Result<String, Error> {
|
70
70
|
let mut binding = self.0.borrow_mut();
|
71
71
|
let text_chunk = binding.text_chunk.get_mut().unwrap();
|
72
72
|
|
@@ -77,10 +77,10 @@ impl SelmaHTMLTextChunk {
|
|
77
77
|
|
78
78
|
text_chunk.before(&text_str, content_type);
|
79
79
|
|
80
|
-
Ok(())
|
80
|
+
Ok(text_chunk.as_str().to_string())
|
81
81
|
}
|
82
82
|
|
83
|
-
fn after(&self, args: &[Value]) -> Result<
|
83
|
+
fn after(&self, args: &[Value]) -> Result<String, Error> {
|
84
84
|
let mut binding = self.0.borrow_mut();
|
85
85
|
let text_chunk = binding.text_chunk.get_mut().unwrap();
|
86
86
|
|
@@ -91,10 +91,10 @@ impl SelmaHTMLTextChunk {
|
|
91
91
|
|
92
92
|
text_chunk.after(&text_str, content_type);
|
93
93
|
|
94
|
-
Ok(())
|
94
|
+
Ok(text_chunk.as_str().to_string())
|
95
95
|
}
|
96
96
|
|
97
|
-
fn replace(&self, args: &[Value]) -> Result<
|
97
|
+
fn replace(&self, args: &[Value]) -> Result<String, Error> {
|
98
98
|
let mut binding = self.0.borrow_mut();
|
99
99
|
let text_chunk = binding.text_chunk.get_mut().unwrap();
|
100
100
|
|
@@ -105,7 +105,7 @@ impl SelmaHTMLTextChunk {
|
|
105
105
|
|
106
106
|
text_chunk.replace(&text_str, content_type);
|
107
107
|
|
108
|
-
Ok(())
|
108
|
+
Ok(text_chunk.as_str().to_string())
|
109
109
|
}
|
110
110
|
}
|
111
111
|
|
data/lib/selma/version.rb
CHANGED
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.
|
4
|
+
version: 0.4.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen J. Torikian
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rb_sys
|