source2md 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/doc/0110_code_small.rb +4 -2
- data/examples/type_partial_code.rb +5 -4
- data/lib/source2md/formatter/type_partial_code.rb +1 -1
- data/lib/source2md/version.rb +1 -1
- data/lib/source2md.rb +1 -1
- data/spec/formatter/type_partial_code_spec.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3477e280893742563cabf28b242a48d0efdc0943294c902a0fd7085950213b6a
|
4
|
+
data.tar.gz: 6a0c6f3b324fe3cd6b6d6e9fd1c038fba91dcbaf3aff742cf8f80ef2129c49a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be3fb7b9ef5f24186a2b613fd10d42d5d0bbad7781d99b9ac72251dda336b13d50737febd993f6d5ecfc0dfe83fb87930c317b3dc21475afe593e1fecea5173b
|
7
|
+
data.tar.gz: 0e68f783920b8abb32a1e405cecc4f0f881cf9bc71f4b3b2f13fff444b8272b8361d37389f10c4085b55be51c67a439d6ddbc5061bda776a4255797a9ecf1cd3
|
data/README.md
CHANGED
data/doc/0110_code_small.rb
CHANGED
@@ -11,6 +11,7 @@ puts Source2MD::Section.new(<<~EOS).to_md
|
|
11
11
|
"Hello, world!"
|
12
12
|
}
|
13
13
|
|
14
|
+
#+code_block_name: (name)
|
14
15
|
hello.call
|
15
16
|
EOS
|
16
17
|
#+END_SRC
|
@@ -21,9 +22,10 @@ EOS
|
|
21
22
|
# > }
|
22
23
|
# > ```
|
23
24
|
|
24
|
-
# > ```ruby
|
25
|
+
# > ```ruby:(name)
|
25
26
|
# > hello.call
|
26
27
|
# > ```
|
28
|
+
|
27
29
|
# >> ```ruby
|
28
30
|
# >> hello = -> {
|
29
31
|
# >> "Hello, world!"
|
@@ -31,6 +33,6 @@ EOS
|
|
31
33
|
# >> ```
|
32
34
|
# >>
|
33
35
|
# >>
|
34
|
-
# >> ```ruby
|
36
|
+
# >> ```ruby:(name)
|
35
37
|
# >> hello.call
|
36
38
|
# >> ```
|
@@ -4,13 +4,14 @@ require "./setup"
|
|
4
4
|
Source2MD.data_block_exclude = true
|
5
5
|
|
6
6
|
puts Source2MD::Element.new(<<~EOS).to_md
|
7
|
+
#+code_block_name: foo
|
7
8
|
a
|
8
9
|
b
|
9
10
|
c
|
10
11
|
__END__
|
11
12
|
foo
|
12
13
|
EOS
|
13
|
-
# >> head: {}
|
14
|
+
# >> head: {"code_block_name"=>"foo"}
|
14
15
|
# >> body: "a\n b\nc\n__END__\nfoo\n"
|
15
16
|
# >> Source2MD::Formatter::TypeHidden => false
|
16
17
|
# >> Source2MD::Formatter::TypeCodeInclude =>
|
@@ -25,7 +26,7 @@ EOS
|
|
25
26
|
# >> Source2MD::Formatter::TypeText => false
|
26
27
|
# >> Source2MD::Formatter::TypePartialCode => true
|
27
28
|
# >> > -------------------------------------------------------------------------------- Source2MD::Formatter::TypePartialCode
|
28
|
-
# >> > {}
|
29
|
+
# >> > {"code_block_name"=>"foo"}
|
29
30
|
# >> > ------------------------------------------------------------ in
|
30
31
|
# >> > a
|
31
32
|
# >> > b
|
@@ -35,14 +36,14 @@ EOS
|
|
35
36
|
# >> >
|
36
37
|
# >> >
|
37
38
|
# >> > ------------------------------------------------------------ out
|
38
|
-
# >> > ```ruby
|
39
|
+
# >> > ```ruby:foo
|
39
40
|
# >> > a
|
40
41
|
# >> > b
|
41
42
|
# >> > c
|
42
43
|
# >> > ```
|
43
44
|
# >> >
|
44
45
|
# >> > ------------------------------------------------------------
|
45
|
-
# >> ```ruby
|
46
|
+
# >> ```ruby:foo
|
46
47
|
# >> a
|
47
48
|
# >> b
|
48
49
|
# >> c
|
data/lib/source2md/version.rb
CHANGED
data/lib/source2md.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: source2md
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akira Ikeda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -250,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
250
250
|
- !ruby/object:Gem::Version
|
251
251
|
version: '0'
|
252
252
|
requirements: []
|
253
|
-
rubygems_version: 3.4.
|
253
|
+
rubygems_version: 3.4.20
|
254
254
|
signing_key:
|
255
255
|
specification_version: 4
|
256
256
|
summary: Markdown generator from source code
|