ldown 0.0.1 → 0.0.2

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: a23085a6709792130a5fc184ef5ff94e7e9ae355023c18f67e437c79158c6df4
4
- data.tar.gz: 16e61b860f41912b3a9a464e576a2033b186b69b0d3ae525793b2bc85ba98915
3
+ metadata.gz: fcf53248fac93676fc1e121dcbb2f678b293c9945ae366632981b9527eebf30f
4
+ data.tar.gz: 609010765ad6de9a4f7b7474e23cdbc9eddbcec8059bbc037ec5175ed822f03e
5
5
  SHA512:
6
- metadata.gz: 0fc3700cdb07960a10380b86ad747f8ae4aa4e112316688ce54cae318f3cb63be773de7cb24e5930e28580e8ec0cea0d685f8544702183f2422bd23594342d6b
7
- data.tar.gz: 16a1c10212a0da4f7872825e1f6cd055e2e01fce8c57c42fe9a5d518841f518bf25ac21ce436e19a98c59693d950a8f4bc7093682dabb816b6891e664d6fc48b
6
+ metadata.gz: a81c6e03ef69f71090c1d429a02d04f57f9971e5aeab0354ecdf52e4b21056a2b0977e60259cc9e97ac9143cb146900921249ed7c951febae916350eccefe62e
7
+ data.tar.gz: ef91f5e40c124812655fe593265e8664803a3264fe4e6218e2b9f494e82f334528541c2c40652598eef4e035f99055149d58e862cc832bf7277db2b7999ac773
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.0.2 - 2026-12-02
6
+
7
+ - Add `Ldown::Node#id`.
8
+
5
9
  ## 0.0.1 - 2026-11-06
6
10
 
7
11
  - Initial release
data/Rakefile CHANGED
@@ -19,4 +19,6 @@ Rake::ExtensionTask.new("ldown", GEMSPEC) do |ext|
19
19
  ext.lib_dir = "lib/ldown"
20
20
  end
21
21
 
22
+ task :test => :compile
23
+
22
24
  task default: %i[clobber compile test]
data/ext/ldown/ldown.c CHANGED
@@ -713,6 +713,13 @@ rbl_cNode_alloc (VALUE klass)
713
713
  return rb_data_typed_object_wrap (rbl_cNode, NULL, &rbl_cNode_type);
714
714
  }
715
715
 
716
+ static VALUE
717
+ rbl_cNode_m_id (VALUE self)
718
+ {
719
+ struct lowdown_node *node = rb_check_typeddata (self, &rbl_cNode_type);
720
+ return RB_SIZE2NUM (node->id);
721
+ }
722
+
716
723
  static VALUE
717
724
  rbl_cNode_m_tree (int argc, VALUE *argv, VALUE self)
718
725
  {
@@ -813,6 +820,7 @@ Init_ldown (void)
813
820
 
814
821
  rbl_cNode = rb_define_class_under (rb_mLdown, "Node", rb_cObject);
815
822
  rb_define_alloc_func (rbl_cNode, rbl_cNode_alloc);
823
+ rb_define_method (rbl_cNode, "id", rbl_cNode_m_id, 0);
816
824
  rb_define_method (rbl_cNode, "tree", rbl_cNode_m_tree, -1);
817
825
  rb_define_method (rbl_cNode, "diff_from", rbl_cNode_m_diff_from, 1);
818
826
 
data/lib/ldown/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ldown
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
data/sig/ldown.rbs CHANGED
@@ -2,6 +2,7 @@ module Ldown
2
2
  VERSION: String
3
3
 
4
4
  def self.into_fodt: (
5
+ input: String,
5
6
  # feat:
6
7
  attrs: bool, autolink: bool, callouts: bool, commonmark: bool, deflist: bool, fenced: bool, footnotes: bool, hilite: bool, mantitle: bool, math: bool, metadata: bool, no_code_indented: bool, no_intra_emph: bool, strike: bool, super: bool, super_short: bool, tables: bool, tasklist: bool,
7
8
  # oflags/general:
@@ -10,6 +11,7 @@ module Ldown
10
11
  maxdepth: Integer) -> String
11
12
 
12
13
  def self.into_gemini: (
14
+ input: String,
13
15
  # feat:
14
16
  attrs: bool, autolink: bool, callouts: bool, commonmark: bool, deflist: bool, fenced: bool, footnotes: bool, hilite: bool, mantitle: bool, math: bool, metadata: bool, no_code_indented: bool, no_intra_emph: bool, strike: bool, super: bool, super_short: bool, tables: bool, tasklist: bool,
15
17
  # oflags/general:
@@ -20,6 +22,7 @@ module Ldown
20
22
  maxdepth: Integer) -> String
21
23
 
22
24
  def self.into_html: (
25
+ input: String,
23
26
  # feat:
24
27
  attrs: bool, autolink: bool, callouts: bool, commonmark: bool, deflist: bool, fenced: bool, footnotes: bool, hilite: bool, mantitle: bool, math: bool, metadata: bool, no_code_indented: bool, no_intra_emph: bool, strike: bool, super: bool, super_short: bool, tables: bool, tasklist: bool,
25
28
  # oflags/general:
@@ -30,6 +33,7 @@ module Ldown
30
33
  maxdepth: Integer) -> String
31
34
 
32
35
  def self.into_latex: (
36
+ input: String,
33
37
  # feat:
34
38
  attrs: bool, autolink: bool, callouts: bool, commonmark: bool, deflist: bool, fenced: bool, footnotes: bool, hilite: bool, mantitle: bool, math: bool, metadata: bool, no_code_indented: bool, no_intra_emph: bool, strike: bool, super: bool, super_short: bool, tables: bool, tasklist: bool,
35
39
  # oflags/general:
@@ -40,6 +44,7 @@ module Ldown
40
44
  maxdepth: Integer) -> String
41
45
 
42
46
  def self.into_man: (
47
+ input: String,
43
48
  # feat:
44
49
  attrs: bool, autolink: bool, callouts: bool, commonmark: bool, deflist: bool, fenced: bool, footnotes: bool, hilite: bool, mantitle: bool, math: bool, metadata: bool, no_code_indented: bool, no_intra_emph: bool, strike: bool, super: bool, super_short: bool, tables: bool, tasklist: bool,
45
50
  # oflags/general:
@@ -50,6 +55,7 @@ module Ldown
50
55
  maxdepth: Integer) -> String
51
56
 
52
57
  def self.into_mdoc: (
58
+ input: String,
53
59
  # feat:
54
60
  attrs: bool, autolink: bool, callouts: bool, commonmark: bool, deflist: bool, fenced: bool, footnotes: bool, hilite: bool, mantitle: bool, math: bool, metadata: bool, no_code_indented: bool, no_intra_emph: bool, strike: bool, super: bool, super_short: bool, tables: bool, tasklist: bool,
55
61
  # oflags/general:
@@ -60,6 +66,7 @@ module Ldown
60
66
  maxdepth: Integer) -> String
61
67
 
62
68
  def self.into_ms: (
69
+ input: String,
63
70
  # feat:
64
71
  attrs: bool, autolink: bool, callouts: bool, commonmark: bool, deflist: bool, fenced: bool, footnotes: bool, hilite: bool, mantitle: bool, math: bool, metadata: bool, no_code_indented: bool, no_intra_emph: bool, strike: bool, super: bool, super_short: bool, tables: bool, tasklist: bool,
65
72
  # oflags/general:
@@ -70,6 +77,7 @@ module Ldown
70
77
  maxdepth: Integer) -> String
71
78
 
72
79
  def self.into_term: (
80
+ input: String,
73
81
  # feat:
74
82
  attrs: bool, autolink: bool, callouts: bool, commonmark: bool, deflist: bool, fenced: bool, footnotes: bool, hilite: bool, mantitle: bool, math: bool, metadata: bool, no_code_indented: bool, no_intra_emph: bool, strike: bool, super: bool, super_short: bool, tables: bool, tasklist: bool,
75
83
  # oflags/general:
@@ -80,6 +88,7 @@ module Ldown
80
88
  maxdepth: Integer) -> String
81
89
 
82
90
  def self.into_tree: (
91
+ input: String,
83
92
  # feat:
84
93
  attrs: bool, autolink: bool, callouts: bool, commonmark: bool, deflist: bool, fenced: bool, footnotes: bool, hilite: bool, mantitle: bool, math: bool, metadata: bool, no_code_indented: bool, no_intra_emph: bool, strike: bool, super: bool, super_short: bool, tables: bool, tasklist: bool,
85
94
  # oflags/general:
@@ -116,6 +125,7 @@ module Ldown
116
125
  end
117
126
 
118
127
  class Node
128
+ def id: -> Integer
119
129
  def diff_from: (Ldown::Node) -> Ldown::Node
120
130
  def tree: (
121
131
  # feat:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ldown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - gemmaro