selma 0.1.6-x86_64-darwin → 0.2.1-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: 2fc8379c0562d5124f2380ac1ba2507323a7ba6a64d5247777326d5119e59ade
4
- data.tar.gz: 40480183ce529bb8d52c186040b91815567bb9b4f9aecb5c072d47d387753383
3
+ metadata.gz: 43be53d6570c24a0584a75cb2ae7517ae00500abab3674068928f1b6508d353b
4
+ data.tar.gz: 433d915b2640530dfe4c04aa051dab410c264100eb2f4f289c4f82760da289e1
5
5
  SHA512:
6
- metadata.gz: 59b46c5d129fbd56e5e0a06bf8980f23c9f9e3f1378d8b1b5a9698d13f844f719af4d875ca84201ea562d2efeecec90ee5d91413e05f375fe10481a430f5ae1c
7
- data.tar.gz: 4f15bc0634ebe6f8805afba1deb9182c23c0ec196835b29c10848c2249c745eed146b5b8d1ffb94549497c3e55a58d34878ed8d25907fda583764e472c14ec9c
6
+ metadata.gz: f3fed5b974bd41edc7897150bbe386197fb6bc90ce56d7554d29b9c5a774f1b9787c1f15926ba615dd77901e05cec1bf14f9db4e097082c93f3190de9b402ce7
7
+ data.tar.gz: c3e2558d6218361edf31c1ad1c83fb811fe233f1db29afb7d2e968d3342efdc63ba765eaa804524b36a4baff897b1262a7c5c3b410512133b097a4f0dbdea88c
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-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