selma 0.4.5 → 0.4.6.1

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: aef17ad0cd3cc5b7d66af208adc138aa4734c76744d051f88889c9e145bd2373
4
+ data.tar.gz: 9b50370bff0ce06af4613c474c3a5f376b5cb1b73c6845c6e3133a56f37f56dc
5
5
  SHA512:
6
- metadata.gz: 0c93fb4e4b203f1d8aaeb992b12130910309525fdfc1a38ac8fed82d6b3e591d1c3c8cbd54f0a1ae4f9d7447389bc6613ed1b4e3cd9ea503d70b1c519ea75d0c
7
- data.tar.gz: dd6f76b860ed68b353834eaf4f534296a3435703f78125f6845aeb6fdca553b22cbe76c24eec02f905b63a69712562bba16735945700e11ebfd2daf3a2757160
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.19"
429
+ version = "0.2.20"
430
430
  source = "registry+https://github.com/rust-lang/crates.io-index"
431
- checksum = "2288c0e17cc8d342c712bb43a257a80ebffce59cdb33d5000d8348f3ec02528b"
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.99"
519
+ version = "0.9.100"
521
520
  source = "registry+https://github.com/rust-lang/crates.io-index"
522
- checksum = "d83151cfea2b67db2444f68c53b119ff77cff235ad711c765072e4daf8f3185b"
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.99"
528
+ version = "0.9.100"
530
529
  source = "registry+https://github.com/rust-lang/crates.io-index"
531
- checksum = "32d038214c118ad4a75db555ccb78672e17e1c5c10f344456cd129008dbaa7de"
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.5"
549
+ version = "1.10.6"
551
550
  source = "registry+https://github.com/rust-lang/crates.io-index"
552
- checksum = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f"
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<(), 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.1"
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.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-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