selma 0.1.6-arm64-darwin → 0.2.1-arm64-darwin

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: 0edd315928ab862da1d4a83077b78bc8a575a79b9d3ebad908c6481162e60c1a
4
- data.tar.gz: a7b91a14b1bbd67c5ddbb9a47d75ef98f014fd5851526967a52a0d4b669caf3c
3
+ metadata.gz: 6444582261bb490425e13f8f6f3665b0bed662fd6927c775dc9514ede1e6262f
4
+ data.tar.gz: acee972432d3678dcd9aa3267cd58888621c9258091960bd363a90a3848f868b
5
5
  SHA512:
6
- metadata.gz: d30e85e30eb60cb444a7b43df6261207852be5f285f63cfd1e749a141e20e89126e3d20a42f4025d7eba365c39d3deb3d36b8ba6e50e65f0e19734a88fbf0326
7
- data.tar.gz: dd505e39a17a351a9918e1e39b55c9bab81c631a1866c9935ceddc75864185dc1b2e020dca81a10199aa652e28856143d0dc6b407984300e8334a821b48e80a0
6
+ metadata.gz: 0a2629ec696940dc43002de7b30a55a5d3786150326a4eaff6ac177d6368196e19f4b1894c36e5d113ac15b19e44e9a26c67383e2825ad4adc328c5407ab84f5
7
+ data.tar.gz: 3e1e2572aa81b5c812ddf211bf6ec82cb2b46bb695979a4411d0b4670096c8b27b4cff88b3afb28d122b6721784be71d198fbc5b657c121c663ebc7e48c6ab27
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: arm64-darwin
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