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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b249e3518d3e0785aca5411ae2b06c1edd45d8034bbc94cc3e38b93fe10ea089
4
- data.tar.gz: 23a2d098c40860bddc46f1c8cf9d5b96f06adc372997d7eb68a240a7415cab1a
3
+ metadata.gz: 704b9ef380d21adb07f72fcaf0dda936158514932d9e034f0e5b58ec44ff2e68
4
+ data.tar.gz: 3c7155aef5f4be4a08c9fd517f8ea1223431431e95baefa885851a77e1b129bd
5
5
  SHA512:
6
- metadata.gz: 0c93fb4e4b203f1d8aaeb992b12130910309525fdfc1a38ac8fed82d6b3e591d1c3c8cbd54f0a1ae4f9d7447389bc6613ed1b4e3cd9ea503d70b1c519ea75d0c
7
- data.tar.gz: dd6f76b860ed68b353834eaf4f534296a3435703f78125f6845aeb6fdca553b22cbe76c24eec02f905b63a69712562bba16735945700e11ebfd2daf3a2757160
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<(), Error> {
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<(), Error> {
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<(), Error> {
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Selma
4
- VERSION = "0.4.5"
4
+ VERSION = "0.4.6"
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.5
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-07-31 00:00:00.000000000 Z
11
+ date: 2024-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys