selma 0.1.6-x86_64-linux → 0.2.1-x86_64-linux

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: 64004b38f89e51db73d1f87f6be1ccf9ae1b4f113b74dbf98ab14af3c09aa1b0
4
- data.tar.gz: 147b46938e7ce34956da41cac74aa9fad5eba4cea97c6642dd49b478dbb13c0a
3
+ metadata.gz: 5ffaec9ae9ad921df07df0052317b8637d67783c32f7f4f0789226cf263cb2f3
4
+ data.tar.gz: e852341a45b7d2087af8d59ddb2ec59b679fb1661a3710b99f4996894a8aef14
5
5
  SHA512:
6
- metadata.gz: dd5d2885d3033a70472fa200010892ecff9b515218bc5bcc6c9e2f23ee878d62b53f67395ca11d08890a22d65b09b6d8b8cd7d95fccb690a88b40272cf9eb4cd
7
- data.tar.gz: 8a32e2cd2fe2e1e73e3f741d941ba2d184e0756879c64776d20d32b65a9ee5ff490a5e3e375df4ba96daae8269a5b14bc737afa6e703f4ec9e35889c9f487331
6
+ metadata.gz: d14451350066799d51fa457485b8724245773f7e95f2c3a31e1bfb1d671b627f530319a4629fb57f78407e0104a12e2f5e67b5eb21a972557385d9b98eeb1712
7
+ data.tar.gz: 6bf45eb1abe9c58d359f9372b4f539c809f4efe789059af986218fae07b33b34ec1b34f6943c9750696e0bc1bc0492a3cd56d01ad848ba242aac0fcf430b6eab
data/README.md CHANGED
@@ -164,6 +164,9 @@ The `element` argument in `handle_element` has the following methods:
164
164
  - `prepend(content, as: content_type)`: prepends `content` to the element's inner content, i.e. inserts content right after the element's start tag. `content_type` is either `:text` or `:html` and determines how the content will be applied.
165
165
  - `append(content, as: content_type)`: appends `content` to the element's inner content, i.e. inserts content right before the element's end tag. `content_type` is either `:text` or `:html` and determines how the content will be applied.
166
166
  - `set_inner_content`: Replaces inner content of the element with `content`. `content_type` is either `:text` or `:html` and determines how the content will be applied.
167
+ - `remove`: Removes the element and its inner content.
168
+ - `remove_and_keep_content`: Removes the element, but keeps its content. I.e. remove start and end tags of the element.
169
+ - `removed?`: A bool which identifies if the element has been removed or replaced with some content.
167
170
 
168
171
  #### `text_chunk` methods
169
172
 
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.1.6"
4
+ VERSION = "0.2.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.1.6
4
+ version: 0.2.1
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: 2023-06-05 00:00:00.000000000 Z
11
+ date: 2023-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake