selma 0.4.11-x86_64-linux → 0.4.13-x86_64-linux

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62ecc2fc06b29e07156ef4f168a657ac63c1ac7fc9d313a1475297070e1fb6ae
4
- data.tar.gz: 26772a9270986aa7e38fbf711fe345980d0c26be4f1476dee147d1152d114e04
3
+ metadata.gz: e15d1fd3a14b9c6e75fddf57b737835d18ea3a48af043fe12e6dda7d6c2fec5f
4
+ data.tar.gz: 8d6f63edba0d3f725cdbafb07c68c6a4162f802f53cdd45b5f367bdd8ace285c
5
5
  SHA512:
6
- metadata.gz: 91df293e6e0973e1e682f9d2faa122eb1ee8029bbc8e2a307ab191329c7e683d7d65fe31d12f794539768f7b17ca55638fb7b1a894527dbc29502f4406d81966
7
- data.tar.gz: a796c103510d42088bd9866e6bc2ee75dc9c4817ebcf87af88921be6ee09e289b224241d25ffa1e1aa35eaa408abcee878da1b8c7e5dd4045b39ab9256d6f0d2
6
+ metadata.gz: 2f2666b212f913be347d34bb705584a1bb5f4aa1a82060e17f48ccf7d75710b4fc36a169ec1107f5e7efc4b714af5f747b1f5216e226a206a860e2f9f25fccda
7
+ data.tar.gz: ad7f199d80fe518fde7f4080d2a91612b0f2c6bff8a057220953fcadedabce36ade2ef4df626998cfccadea7766376feef9e4786280bc9b135b31b0583c2d218
data/README.md CHANGED
@@ -95,8 +95,8 @@ whitespace_elements: ["blockquote", "h1", "h2", "h3", "h4", "h5", "h6", ]
95
95
 
96
96
  The real power in Selma comes in its use of handlers. A handler is simply an object with various methods defined:
97
97
 
98
- - `selector`, a method which MUST return instance of `Selma::Selector` which defines the CSS classes to match
99
- - `handle_element`, a method that's call on each matched element
98
+ - `selector`, a method which MUST return an instance of `Selma::Selector`, defining the CSS classes to match
99
+ - `handle_element`, a method that's called on each matched element
100
100
  - `handle_text_chunk`, a method that's called on each matched text node
101
101
 
102
102
  Here's an example which rewrites the `href` attribute on `a` and the `src` attribute on `img` to be `https` rather than `http`.
@@ -142,7 +142,7 @@ class MatchText
142
142
  end
143
143
 
144
144
  def handle_text_chunk(text)
145
- string.sub(/@.+/, "<a href=\"www.yetto.app/#{Regexp.last_match}\">")
145
+ text.replace(text.to_s, text.sub(/@.+/, "<a href=\"www.yetto.app/#{Regexp.last_match}\">"))
146
146
  end
147
147
  end
148
148
 
Binary file
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.11"
4
+ VERSION = "0.4.13"
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.11
4
+ version: 0.4.13
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Garen J. Torikian
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-29 00:00:00.000000000 Z
11
+ date: 2025-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -49,6 +49,7 @@ files:
49
49
  - README.md
50
50
  - lib/selma.rb
51
51
  - lib/selma/3.2/selma.so
52
+ - lib/selma/3.3/selma.so
52
53
  - lib/selma/3.4/selma.so
53
54
  - lib/selma/config.rb
54
55
  - lib/selma/extension.rb