selma 0.1.4-arm64-darwin → 0.2.0-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: 46076b0309da52369c281333e2b6bd848eaf424f0c2b7b52d5aba1140e85a621
4
- data.tar.gz: c88f4ed93add9aef190c1dfcc9d39453a84d8c8dc34a058a4921bb1251366f7b
3
+ metadata.gz: 8e5ed874979fc9b59a0f8bd9279fbaaddcb642ec6b4cc45921bdcbb668945fcd
4
+ data.tar.gz: 70c471ca21eb61aaa3ac9128bfd848897eada7bb92070e66be8d794db483d491
5
5
  SHA512:
6
- metadata.gz: d11a1fb99a8514b3e84d00cbb377699390f55ecf375ee3521faf56deb3c4c39ab2d6c6f6e41c13028e80fae75ab2b8aa9f6f963b5990ec242588ed9a2a793b87
7
- data.tar.gz: 165d2a39b2d75b12a6ac9b01b7fae7b472f52edf9fe2e1d85a4d1c5f33b1e1ad815cc11c3d1996333333d19e8b995340d6d06587a5c300900a8b992508ef4865
6
+ metadata.gz: 49521d0ec3f24449988accd47eb93d7703ea025c2896ee109d502798b1e67538979f369ef8c15b493f56740d7e54523973b5fd1559762190ac6d142875066dbb
7
+ data.tar.gz: dc49cab0f89016b4f49fb75177fffe0e97edc3ea17139b6d563a3b60424095af297c7b4e59854ddc60ed2ee2e6ecde0ee3030d7a0b749053ab2472e0350f36f7
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: 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