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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Rakefile +2 -0
- data/ext/ldown/ldown.c +8 -0
- data/lib/ldown/version.rb +1 -1
- data/sig/ldown.rbs +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fcf53248fac93676fc1e121dcbb2f678b293c9945ae366632981b9527eebf30f
|
|
4
|
+
data.tar.gz: 609010765ad6de9a4f7b7474e23cdbc9eddbcec8059bbc037ec5175ed822f03e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a81c6e03ef69f71090c1d429a02d04f57f9971e5aeab0354ecdf52e4b21056a2b0977e60259cc9e97ac9143cb146900921249ed7c951febae916350eccefe62e
|
|
7
|
+
data.tar.gz: ef91f5e40c124812655fe593265e8664803a3264fe4e6218e2b9f494e82f334528541c2c40652598eef4e035f99055149d58e862cc832bf7277db2b7999ac773
|
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
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
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:
|