selma 0.1.4-x86_64-linux → 0.2.0-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: d8d9890b96e13663ec9def04ef7efb86178e097006f5064c4576e318d3f44554
4
- data.tar.gz: ec0762c2608e0b8bcb96810b9429f0bddaec7378ed6077c3232dfca092300cbf
3
+ metadata.gz: 74b46abfe18d41f71c18f3820d5f1c007eb1035970c6ac5624a846f843810217
4
+ data.tar.gz: 626375a6cd92025e8a00f91bd65812e94bc8691c20281304d8193f425f050778
5
5
  SHA512:
6
- metadata.gz: 1728a4e887d7599ca03efb7685f1956d07952345c6cc1b140e3698bb53ec7eac8adca75721ab42c8b7290995677b3b72fbd5e7a797229b008fa9d08f9cca045a
7
- data.tar.gz: 550dab19a2a6b34463aa3cc2ef285f2ac9bea2b3798d02a645cb67d1b3b3405a8782d2f45009dc91fefd37beeba34179404d6c1dbf1192a929af8800294662cf
6
+ metadata.gz: 9ed4795a633bd847384018b4f920261c4bf816d72dc95cb2f64b7b1691476f41f7a6b095c163af54415fd26b251530206f2a5f2f4094bcb1cedc1b58099993c4
7
+ data.tar.gz: a11dbccd0be920b55c23492e07c80fe76a4e3d1ffe4282454d7ed49c8fabb5e0db10fbae180752141288c218c65acc0a4d4aad4bab85ad4846ffeaec4a793edb
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.4"
4
+ VERSION = "0.2.0"
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.4
4
+ version: 0.2.0
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