selma 0.1.4-x86_64-darwin → 0.2.0-x86_64-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: 1b3817b28ede63107eca5c5e779513ad335cd7b88c9e020b13a7f5d12c3eeff8
4
- data.tar.gz: 530c7b944dc82d8da9de472f24b070d84fe4d6bde89070c1d123379367f1200c
3
+ metadata.gz: 4f8c2accc8a399c9ed508a9513cdff24c4a9b586e53dfe0efafd726281c7cbb1
4
+ data.tar.gz: 7059b9b861a7b909d3a2450e2600e161a263383ea3bfc06fe9b91ee39c459dc0
5
5
  SHA512:
6
- metadata.gz: 5210868ff72e6d38c284375df5c3b57e561cc4d23130d8be51bcaaa8e6f1e7b635e2265e65fb65c8f0d457ac35a8f58bc3145916d6765b09fa2ac70f39faec39
7
- data.tar.gz: 5136ee1660efeee107e841b842fd6e8f5911e3f92d470e19d4265d8eabb16d830dfbf95011e00349631d61dc412436c538b5f04d151890374ca08731bf3b5736
6
+ metadata.gz: 18b2db22ad9322e9662388b2a052fc585bfafa8952576bddcca6dc255ab05c2ce9d03b9babc5115e80cfee5647b7b6b6ec5bc13045ada303e24e8f8ae86d9394
7
+ data.tar.gz: ee5c867b719bcda5340e7722dafd1337f2a2bc871fef20d1fe82f17c8d1bca6387e03aab239802f50791751284ce6f1dadbf587ed69e19122680126afc00a1f4
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-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