selma 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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: 704b9ef380d21adb07f72fcaf0dda936158514932d9e034f0e5b58ec44ff2e68
|
4
|
+
data.tar.gz: 3c7155aef5f4be4a08c9fd517f8ea1223431431e95baefa885851a77e1b129bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '01719b4c1679e91655fc3b29c8923b2bfcbc64e1633867a11bf53242849b75f5013068feaf59affc5c0cd7aee9d799bc6e4b44fd40eadfe0b301ba7607069fae'
|
7
|
+
data.tar.gz: 986c81e769ff2aa1a648e1d428c139d9f5dee1e716ca9b67764ca7ec7cba12846bf1fa2df0e22d573263d053e34a0e707bf2bca0f35c4e8ad173a829d6036b5b
|
@@ -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
|
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
|