selma 0.4.10-x86_64-darwin → 0.4.12-x86_64-darwin
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/README.md +2 -2
- data/lib/selma/3.2/selma.bundle +0 -0
- data/lib/selma/3.3/selma.bundle +0 -0
- data/lib/selma/3.4/selma.bundle +0 -0
- data/lib/selma/version.rb +1 -1
- metadata +8 -8
- data/lib/selma/3.1/selma.bundle +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14e47649e7f09d3b0869111b1926fe1fe8d5ab367d8f652890aab1db306a6e88
|
4
|
+
data.tar.gz: f3baa17790fc4769815025462fcccf53861fa42442d0dbfa6b308c53f7e02a6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 741a298a71d081afa7ced7acd773572084a4e27cf2d7720e24cc0c6557433b789ef1f92eb726e7de8905bed629426d3a409b95ec8518681448999b8602bba8fd
|
7
|
+
data.tar.gz: 3bea996ebf65c5ea56bc29e514921c26ed28b1bb0b9ad1a160706df507ba653369ddc0148d89dbe77df3233694e6ac6ab82fc2b51bb9af9da7abc3e74945199b
|
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
|
99
|
-
- `handle_element`, a method that's
|
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`.
|
data/lib/selma/3.2/selma.bundle
CHANGED
Binary file
|
data/lib/selma/3.3/selma.bundle
CHANGED
Binary file
|
Binary file
|
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.12
|
5
5
|
platform: x86_64-darwin
|
6
6
|
authors:
|
7
7
|
- Garen J. Torikian
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -48,9 +48,9 @@ files:
|
|
48
48
|
- LICENSE.txt
|
49
49
|
- README.md
|
50
50
|
- lib/selma.rb
|
51
|
-
- lib/selma/3.1/selma.bundle
|
52
51
|
- lib/selma/3.2/selma.bundle
|
53
52
|
- lib/selma/3.3/selma.bundle
|
53
|
+
- lib/selma/3.4/selma.bundle
|
54
54
|
- lib/selma/config.rb
|
55
55
|
- lib/selma/extension.rb
|
56
56
|
- lib/selma/html.rb
|
@@ -80,17 +80,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
80
80
|
requirements:
|
81
81
|
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '3.
|
83
|
+
version: '3.2'
|
84
84
|
- - "<"
|
85
85
|
- !ruby/object:Gem::Version
|
86
|
-
version: 3.
|
86
|
+
version: 3.5.dev
|
87
87
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
|
-
- - "
|
89
|
+
- - "~>"
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version: 3.
|
91
|
+
version: '3.4'
|
92
92
|
requirements: []
|
93
|
-
rubygems_version: 3.
|
93
|
+
rubygems_version: 3.5.23
|
94
94
|
signing_key:
|
95
95
|
specification_version: 4
|
96
96
|
summary: Selma selects and matches HTML nodes using CSS rules. Backed by Rust's lol_html
|
data/lib/selma/3.1/selma.bundle
DELETED
Binary file
|