markly 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43375fea8b85dacafc8695a8f8546d0455e700e3892df323885d1bc79ad52b33
4
- data.tar.gz: a28cc4103041dc495b4688ab322869f2b5ecba86d8fc2e270dfc1daa280a78bb
3
+ metadata.gz: 3cd94abddc41f15067801a6e539bc8f9e9243625ad4896c75a226b8d9001fbd8
4
+ data.tar.gz: 24eef0d17ac2f066e68689fa6a1dfcae0ac106d5219d5a0df7d41502333a39d2
5
5
  SHA512:
6
- metadata.gz: 26ef4ee817faa860607cc631b891502070d200c63563c5f929c888f86d1c529741dc4f350ff7333748f427482e61f572aa4c73cf440ddf6ef70273f056d6eaf3
7
- data.tar.gz: a28eafe5dbc4b175efbac7ee04c16f9b29b90002f14e4ff3b1c8fa646d807b603fd4f0ab6db75ea9f2489942bb17c6547ffd4a3c6aff3baefba6412fdc9fcdba
6
+ metadata.gz: c74742176f3f3514e96af7f78d0128ae14ac1b116e3aaccfee37eea6441de208347d2a370509c71782d15147d0414e7940d7e839aa5967561e7df53225eeada0
7
+ data.tar.gz: 05ee9e27830fc92fa13c7cc909e0a1fba8221c3b563bcb0c31ec0ece271673cdc402293e382464af529b4e110e46e0a440888d19d9d907f13b299ad88c23ea73
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/markly/node.rb CHANGED
@@ -13,7 +13,13 @@ module Markly
13
13
  class Node
14
14
  include Enumerable
15
15
  include Inspect
16
-
16
+
17
+ # Duplicate the current node and all children.
18
+ def dup
19
+ # This is a bit crazy, but it's the best I can come up with right now:
20
+ Markly.parse(self.to_markdown)
21
+ end
22
+
17
23
  # Public: An iterator that "walks the tree," descending into children recursively.
18
24
  #
19
25
  # blk - A {Proc} representing the action to take for each child
@@ -7,5 +7,5 @@
7
7
  # Copyright, 2020-2023, by Samuel Williams.
8
8
 
9
9
  module Markly
10
- VERSION = '0.11.0'
10
+ VERSION = '0.12.0'
11
11
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
metadata.gz.sig CHANGED
Binary file