source2md 0.0.2 → 0.0.3

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.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +196 -40
  3. data/Rakefile +26 -0
  4. data/doc/0100_top.rb +17 -0
  5. data/doc/0110_code_small.rb +23 -0
  6. data/doc/0120_code_long.rb +23 -0
  7. data/doc/0130_title.rb +21 -0
  8. data/doc/0140_md_like_title.rb +21 -0
  9. data/doc/0150_table.rb +35 -0
  10. data/doc/0160_method.rb +37 -0
  11. data/doc/0170_alert.rb +25 -0
  12. data/doc/0180_text.rb +15 -0
  13. data/doc/0190_raw.rb +19 -0
  14. data/doc/setup.rb +4 -0
  15. data/examples/element_alert.rb +22 -0
  16. data/examples/element_deep_comment.rb +12 -16
  17. data/examples/element_include.rb +20 -0
  18. data/examples/element_md_header.rb +4 -4
  19. data/examples/element_md_title.rb +14 -0
  20. data/examples/element_method.rb +3 -3
  21. data/examples/{element_pre.rb → element_partial_code.rb} +5 -5
  22. data/examples/element_source_block.rb +28 -0
  23. data/examples/element_table.rb +17 -25
  24. data/examples/element_text.rb +1 -1
  25. data/examples/{element_title2.rb → element_title.rb} +12 -8
  26. data/examples/element_warn.rb +22 -0
  27. data/examples/input.rb +11 -7
  28. data/examples/input.yml +3 -0
  29. data/examples/output.md +7 -22
  30. data/examples/scanner.rb +24 -0
  31. data/examples/setup.rb +1 -1
  32. data/lib/source2md/cli.rb +8 -1
  33. data/lib/source2md/code_block.rb +21 -2
  34. data/lib/source2md/element.rb +36 -13
  35. data/lib/source2md/generator.rb +4 -4
  36. data/lib/source2md/scanner.rb +34 -0
  37. data/lib/source2md/{file_block.rb → section.rb} +4 -5
  38. data/lib/source2md/text_helper.rb +1 -1
  39. data/lib/source2md/type/base.rb +4 -19
  40. data/lib/source2md/type/element_alert.rb +17 -0
  41. data/lib/source2md/type/element_else.rb +18 -0
  42. data/lib/source2md/type/element_include.rb +45 -0
  43. data/lib/source2md/type/element_md_title.rb +13 -0
  44. data/lib/source2md/type/element_method.rb +1 -1
  45. data/lib/source2md/type/{element_pre.rb → element_partial_code.rb} +2 -2
  46. data/lib/source2md/type/element_source_block.rb +25 -0
  47. data/lib/source2md/type/element_table.rb +4 -4
  48. data/lib/source2md/type/element_title.rb +35 -0
  49. data/lib/source2md/type/element_uncomment.rb +24 -0
  50. data/lib/source2md/type/element_warn.rb +19 -0
  51. data/lib/source2md/version.rb +1 -1
  52. data/lib/source2md.rb +2 -0
  53. data/source2md.gemspec +4 -3
  54. data/spec/code_block_spec.rb +1 -1
  55. data/spec/scanner_spec.rb +26 -0
  56. data/spec/spec_helper.rb +1 -0
  57. data/spec/text_helper_spec.rb +15 -0
  58. data/spec/type/element_alert_spec.rb +16 -0
  59. data/spec/type/element_include_spec.rb +40 -0
  60. data/spec/type/element_md_header_spec.rb +1 -17
  61. data/spec/type/{element_title2_spec.rb → element_md_title_spec.rb} +3 -3
  62. data/spec/type/element_method_spec.rb +5 -5
  63. data/spec/type/{element_pre_spec.rb → element_partial_code_spec.rb} +3 -3
  64. data/spec/type/element_reject_spec.rb +1 -1
  65. data/spec/type/element_source_block_spec.rb +31 -0
  66. data/spec/type/element_table_spec.rb +14 -1
  67. data/spec/type/element_text_spec.rb +1 -1
  68. data/spec/type/{element_deep_comment_spec.rb → element_title_spec.rb} +3 -5
  69. data/spec/type/element_warn_spec.rb +16 -0
  70. data/spec/type/sample.yml +1 -0
  71. metadata +70 -17
  72. data/lib/source2md/type/element_text.rb +0 -26
  73. data/lib/source2md/type/element_title2.rb +0 -14
@@ -0,0 +1,25 @@
1
+ module Source2MD
2
+ module Type
3
+ class ElementSourceBlock < Base
4
+ def self.accept?(element)
5
+ element.body.start_with?("#+BEGIN_SRC")
6
+ end
7
+
8
+ def to_md
9
+ CodeBlock.new(body, desc: code_block_desc).to_md
10
+ end
11
+
12
+ private
13
+
14
+ def body
15
+ element.body.match(/#\+BEGIN_SRC.*?\R(.*)#\+END_SRC/m).captures.first.strip
16
+ end
17
+
18
+ def code_block_desc
19
+ if md = element.body.match(/#\+BEGIN_SRC(.+)/)
20
+ md.captures.first.strip
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -2,14 +2,14 @@ module Source2MD
2
2
  module Type
3
3
  class ElementTable < Base
4
4
  def self.accept?(element)
5
- element.body.lines.all? { |e| e.match?(/^# \|.*\|$/) }
5
+ !element.body.empty? && element.body.lines.all? { |e| e.match?(/^# \|.*\|$/) }
6
6
  end
7
7
 
8
8
  def to_md
9
9
  element.body
10
- .gsub(/^# /, "")
11
- .sub(/\A\|.*?\|\R?/, "")
12
- .sub(/^\|.*?\|\z/, "")
10
+ .remove(/^# /)
11
+ .remove(/\A\|-.*?-\|\R?/)
12
+ .remove(/^\|-.*?-\|\z/)
13
13
  .gsub(/-\+-/, "-|-").strip
14
14
  end
15
15
  end
@@ -0,0 +1,35 @@
1
+ module Source2MD
2
+ module Type
3
+ class ElementTitle < Base
4
+ REGEXP = /\Atitle(\d+)\z/
5
+
6
+ def self.accept?(element)
7
+ element.head.keys.any? { |e| e.match?(REGEXP) }
8
+ end
9
+
10
+ def to_md
11
+ s = [prefix, body, prefix] * " "
12
+ Source2MD.logger.warn { s }
13
+ s
14
+ end
15
+
16
+ private
17
+
18
+ def body
19
+ element.head[key]
20
+ end
21
+
22
+ def level
23
+ key.to_s.remove(/\D+/).to_i
24
+ end
25
+
26
+ def prefix
27
+ "#" * level
28
+ end
29
+
30
+ def key
31
+ @key ||= element.head.keys.find { |e| e.match?(REGEXP) }
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,24 @@
1
+ module Source2MD
2
+ module Type
3
+ class ElementUncomment < Base
4
+ REGEXP = /^#( |$)/
5
+
6
+ def self.accept?(element)
7
+ if element.head.empty?
8
+ # "# xxx\n" or "#\n"
9
+ element.body.lines.all? { |e| e.match?(REGEXP) }
10
+ end
11
+ end
12
+
13
+ def to_md
14
+ body
15
+ end
16
+
17
+ private
18
+
19
+ def body
20
+ element.body.remove(REGEXP)
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,19 @@
1
+ module Source2MD
2
+ module Type
3
+ class ElementWarn < Base
4
+ def self.accept?(element)
5
+ if element.body.empty?
6
+ element.head[:warn]
7
+ end
8
+ end
9
+
10
+ def to_md
11
+ [
12
+ ":::message",
13
+ element.head[:warn],
14
+ ":::",
15
+ ] * "\n"
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,3 +1,3 @@
1
1
  module Source2MD
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/source2md.rb CHANGED
@@ -8,10 +8,12 @@ require "active_support/configurable"
8
8
 
9
9
  require "pathname"
10
10
  require "thor"
11
+ require "table_format"
11
12
 
12
13
  module Source2MD
13
14
  include ActiveSupport::Configurable
14
15
  config_accessor(:debug) { false }
16
+ config_accessor(:xmp_out_exclude) { false }
15
17
  end
16
18
 
17
19
  require "zeitwerk"
data/source2md.gemspec CHANGED
@@ -1,6 +1,6 @@
1
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path("../lib", __FILE__)
2
2
  $LOAD_PATH.unshift(lib) if !$LOAD_PATH.include?(lib)
3
- require 'source2md/version'
3
+ require "source2md/version"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "source2md"
@@ -18,10 +18,11 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "zeitwerk"
22
21
  spec.add_dependency "activesupport"
23
22
  spec.add_dependency "pathname"
23
+ spec.add_dependency "table_format"
24
24
  spec.add_dependency "thor"
25
+ spec.add_dependency "zeitwerk"
25
26
 
26
27
  spec.add_development_dependency "bundler"
27
28
  spec.add_development_dependency "rake"
@@ -9,7 +9,7 @@ module Source2MD
9
9
  bb # => 2
10
10
  cccc
11
11
  EOS
12
- assert { s == <<~EOS.strip }
12
+ s.should == <<~EOS.strip
13
13
  ```ruby
14
14
  a # => 1
15
15
 
@@ -0,0 +1,26 @@
1
+ require "spec_helper"
2
+
3
+ module Source2MD
4
+ describe Scanner do
5
+ it "works" do
6
+ ary = Scanner.new(<<~EOS).to_a
7
+ foo
8
+
9
+ #+BEGIN_SRC
10
+
11
+ foo
12
+
13
+ #+END_SRC
14
+
15
+ foo
16
+
17
+ #+BEGIN_SRC
18
+ foo
19
+ #+END_SRC
20
+ foo
21
+ EOS
22
+
23
+ assert { ary == ["foo", "#+BEGIN_SRC\n\nfoo\n\n#+END_SRC", "foo", "#+BEGIN_SRC\nfoo\n#+END_SRC", "foo"] }
24
+ end
25
+ end
26
+ end
data/spec/spec_helper.rb CHANGED
@@ -9,6 +9,7 @@ Pathname.glob("#{__dir__}/support/**/*.rb") { |e| require e.to_s }
9
9
  Zeitwerk::Loader.eager_load_all
10
10
 
11
11
  Source2MD.logger.level = :error
12
+ Source2MD.xmp_out_exclude = true
12
13
 
13
14
  RSpec.configure do |config|
14
15
  config.expect_with :rspec do |c|
@@ -0,0 +1,15 @@
1
+ require "spec_helper"
2
+
3
+ module Source2MD
4
+ describe TextHelper do
5
+ it "blank_lines_squish" do
6
+ assert { TextHelper.blank_lines_squish("A\nB\n\nC\n\n\nD") == "A\nB\n\nC\n\nD" }
7
+ end
8
+
9
+ it "add_newline_at_end_of_text" do
10
+ assert { TextHelper.add_newline_at_end_of_text("A") == "A\n" }
11
+ assert { TextHelper.add_newline_at_end_of_text("A\n") == "A\n" }
12
+ assert { TextHelper.add_newline_at_end_of_text("A\n\n") == "A\n" }
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,16 @@
1
+ require "spec_helper"
2
+
3
+ module Source2MD
4
+ describe do
5
+ it "works" do
6
+ actual = Element.new(<<~EOS).to_md
7
+ #+alert: (foo)
8
+ EOS
9
+ actual.should == <<~EOS.strip
10
+ :::message alert
11
+ (foo)
12
+ :::
13
+ EOS
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,40 @@
1
+ require "spec_helper"
2
+
3
+ module Source2MD
4
+ describe do
5
+ it "works" do
6
+ actual = Element.new(<<~EOS).to_md
7
+ #+include: #{__dir__}/sample.yml
8
+ EOS
9
+ actual.should == <<~EOS.strip
10
+ ```yml:sample.yml
11
+ yaml content
12
+ ```
13
+ EOS
14
+ end
15
+
16
+ it "works" do
17
+ actual = Element.new(<<~EOS).to_md
18
+ #+include: #{__dir__}/sample.yml
19
+ #+lang: (lang)
20
+ #+name: (name)
21
+ EOS
22
+ actual.should == <<~EOS.strip
23
+ ```(lang):(name)
24
+ yaml content
25
+ ```
26
+ EOS
27
+ end
28
+
29
+ it "works" do
30
+ actual = Element.new(<<~EOS).to_md
31
+ #+include: #{__dir__}/sample.yml yaml:filename
32
+ EOS
33
+ actual.should == <<~EOS.strip
34
+ ```yaml:filename
35
+ yaml content
36
+ ```
37
+ EOS
38
+ end
39
+ end
40
+ end
@@ -8,7 +8,7 @@ module Source2MD
8
8
  foo: 1
9
9
  ---
10
10
  EOS
11
- assert { actual == <<~EOS.strip }
11
+ actual.should == <<~EOS.strip
12
12
  ---
13
13
  foo: 1
14
14
  ---
@@ -16,19 +16,3 @@ foo: 1
16
16
  end
17
17
  end
18
18
  end
19
- # >> F
20
- # >>
21
- # >> Failures:
22
- # >>
23
- # >> 1) works
24
- # >> Failure/Error: Unable to find - to read failed line
25
- # >> Test::Unit::AssertionFailedError:
26
- # >> # -:14:in `block (2 levels) in <module:Source2MD>'
27
- # >>
28
- # >> Finished in 0.0113 seconds (files took 0.26182 seconds to load)
29
- # >> 1 example, 1 failure
30
- # >>
31
- # >> Failed examples:
32
- # >>
33
- # >> rspec -:5 # works
34
- # >>
@@ -4,10 +4,10 @@ module Source2MD
4
4
  describe do
5
5
  it "works" do
6
6
  actual = Element.new(<<~EOS).to_md
7
- # title2: foo
7
+ ## foo ##
8
8
  EOS
9
- assert { actual == <<~EOS.strip }
10
- ## foo
9
+ actual.should == <<~EOS.strip
10
+ ## foo ##
11
11
  EOS
12
12
  end
13
13
  end
@@ -4,15 +4,15 @@ module Source2MD
4
4
  describe do
5
5
  it "works" do
6
6
  actual = Element.new(<<~EOS).to_md
7
- # name: (name)
8
- # desc: (desc)
9
- # comment: (comment)
7
+ #+name: (name)
8
+ #+desc: (desc)
9
+ #+comment: (comment)
10
10
  (code1)
11
11
  #
12
12
  (code2)
13
13
  EOS
14
- assert { actual == <<~EOS.strip }
15
- ### (name)
14
+ actual.should == <<~EOS.strip
15
+ ### (name) ###
16
16
 
17
17
  (desc)
18
18
 
@@ -4,11 +4,11 @@ module Source2MD
4
4
  describe do
5
5
  it "works" do
6
6
  actual = Element.new(<<~EOS).to_md
7
- code
7
+ (foo)
8
8
  EOS
9
- assert { actual == <<~EOS.strip }
9
+ actual.should == <<~EOS.strip
10
10
  ```ruby
11
- code
11
+ (foo)
12
12
  ```
13
13
  EOS
14
14
  end
@@ -6,7 +6,7 @@ module Source2MD
6
6
  actual = Element.new(<<~EOS).to_md
7
7
  require "./setup"
8
8
  EOS
9
- assert { actual.blank? }
9
+ assert { actual.nil? }
10
10
  end
11
11
  end
12
12
  end
@@ -0,0 +1,31 @@
1
+ require "spec_helper"
2
+
3
+ module Source2MD
4
+ describe do
5
+ it "works" do
6
+ actual = Element.new(<<~EOS).to_md
7
+ #+BEGIN_SRC
8
+ (foo)
9
+ #+END_SRC
10
+ EOS
11
+ actual.should == <<~EOS.strip
12
+ ```ruby
13
+ (foo)
14
+ ```
15
+ EOS
16
+ end
17
+
18
+ it "works" do
19
+ actual = Element.new(<<~EOS).to_md
20
+ #+BEGIN_SRC diff xxx:yyy
21
+ (foo)
22
+ #+END_SRC
23
+ EOS
24
+ actual.should == <<~EOS.strip
25
+ ```diff xxx:yyy
26
+ (foo)
27
+ ```
28
+ EOS
29
+ end
30
+ end
31
+ end
@@ -11,11 +11,24 @@ module Source2MD
11
11
  # | d | d | d |
12
12
  # |---+---+---|
13
13
  EOS
14
- assert { actual == <<~EOS.strip }
14
+ actual.should == <<~EOS.strip
15
15
  | h | h | h |
16
16
  |---|---|---|
17
17
  | d | d | d |
18
18
  | d | d | d |
19
+ EOS
20
+ end
21
+
22
+ it "works" do
23
+ actual = Element.new(<<~EOS).to_md
24
+ # | h | h | h |
25
+ # |---+---+---|
26
+ # | d | d | d |
27
+ EOS
28
+ actual.should == <<~EOS.strip
29
+ | h | h | h |
30
+ |---|---|---|
31
+ | d | d | d |
19
32
  EOS
20
33
  end
21
34
  end
@@ -8,7 +8,7 @@ module Source2MD
8
8
  # http://example.com/
9
9
  # - bar: http://example.com/
10
10
  EOS
11
- assert { actual == <<~EOS.strip }
11
+ actual.should == <<~EOS.strip
12
12
  - foo
13
13
  http://example.com/
14
14
  - bar: http://example.com/
@@ -4,12 +4,10 @@ module Source2MD
4
4
  describe do
5
5
  it "works" do
6
6
  actual = Element.new(<<~EOS).to_md
7
- ## foo
7
+ #+title2: (foo)
8
8
  EOS
9
- assert { actual == <<~EOS.strip }
10
- ```ruby
11
- # foo
12
- ```
9
+ actual.should == <<~EOS.strip
10
+ ## (foo) ##
13
11
  EOS
14
12
  end
15
13
  end
@@ -0,0 +1,16 @@
1
+ require "spec_helper"
2
+
3
+ module Source2MD
4
+ describe do
5
+ it "works" do
6
+ actual = Element.new(<<~EOS).to_md
7
+ #+warn: (foo)
8
+ EOS
9
+ actual.should == <<~EOS.strip
10
+ :::message
11
+ (foo)
12
+ :::
13
+ EOS
14
+ end
15
+ end
16
+ end
@@ -0,0 +1 @@
1
+ yaml content
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: source2md
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
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-07-13 00:00:00.000000000 Z
11
+ date: 2023-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: zeitwerk
14
+ name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: activesupport
28
+ name: pathname
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: pathname
42
+ name: table_format
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: zeitwerk
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: bundler
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -134,49 +148,81 @@ files:
134
148
  - README.md
135
149
  - Rakefile
136
150
  - bin/source2md
151
+ - doc/0100_top.rb
152
+ - doc/0110_code_small.rb
153
+ - doc/0120_code_long.rb
154
+ - doc/0130_title.rb
155
+ - doc/0140_md_like_title.rb
156
+ - doc/0150_table.rb
157
+ - doc/0160_method.rb
158
+ - doc/0170_alert.rb
159
+ - doc/0180_text.rb
160
+ - doc/0190_raw.rb
161
+ - doc/setup.rb
137
162
  - examples/cli.rb
163
+ - examples/element_alert.rb
138
164
  - examples/element_deep_comment.rb
165
+ - examples/element_include.rb
139
166
  - examples/element_md_header.rb
167
+ - examples/element_md_title.rb
140
168
  - examples/element_method.rb
141
- - examples/element_pre.rb
169
+ - examples/element_partial_code.rb
142
170
  - examples/element_reject.rb
171
+ - examples/element_source_block.rb
143
172
  - examples/element_table.rb
144
173
  - examples/element_text.rb
145
- - examples/element_title2.rb
174
+ - examples/element_title.rb
175
+ - examples/element_warn.rb
146
176
  - examples/input.rb
177
+ - examples/input.yml
147
178
  - examples/output.md
179
+ - examples/scanner.rb
148
180
  - examples/setup.rb
149
181
  - lib/source2md.rb
150
182
  - lib/source2md/cli.rb
151
183
  - lib/source2md/code_block.rb
152
184
  - lib/source2md/element.rb
153
- - lib/source2md/file_block.rb
154
185
  - lib/source2md/generator.rb
155
186
  - lib/source2md/logger.rb
187
+ - lib/source2md/scanner.rb
188
+ - lib/source2md/section.rb
156
189
  - lib/source2md/tasks/about.rake
157
190
  - lib/source2md/tasks/test.rake
158
191
  - lib/source2md/text_helper.rb
159
192
  - lib/source2md/type/base.rb
193
+ - lib/source2md/type/element_alert.rb
160
194
  - lib/source2md/type/element_deep_comment.rb
195
+ - lib/source2md/type/element_else.rb
196
+ - lib/source2md/type/element_include.rb
161
197
  - lib/source2md/type/element_md_header.rb
198
+ - lib/source2md/type/element_md_title.rb
162
199
  - lib/source2md/type/element_method.rb
163
- - lib/source2md/type/element_pre.rb
200
+ - lib/source2md/type/element_partial_code.rb
164
201
  - lib/source2md/type/element_reject.rb
202
+ - lib/source2md/type/element_source_block.rb
165
203
  - lib/source2md/type/element_table.rb
166
- - lib/source2md/type/element_text.rb
167
- - lib/source2md/type/element_title2.rb
204
+ - lib/source2md/type/element_title.rb
205
+ - lib/source2md/type/element_uncomment.rb
206
+ - lib/source2md/type/element_warn.rb
168
207
  - lib/source2md/version.rb
169
208
  - source2md.gemspec
170
209
  - spec/code_block_spec.rb
210
+ - spec/scanner_spec.rb
171
211
  - spec/spec_helper.rb
172
- - spec/type/element_deep_comment_spec.rb
212
+ - spec/text_helper_spec.rb
213
+ - spec/type/element_alert_spec.rb
214
+ - spec/type/element_include_spec.rb
173
215
  - spec/type/element_md_header_spec.rb
216
+ - spec/type/element_md_title_spec.rb
174
217
  - spec/type/element_method_spec.rb
175
- - spec/type/element_pre_spec.rb
218
+ - spec/type/element_partial_code_spec.rb
176
219
  - spec/type/element_reject_spec.rb
220
+ - spec/type/element_source_block_spec.rb
177
221
  - spec/type/element_table_spec.rb
178
222
  - spec/type/element_text_spec.rb
179
- - spec/type/element_title2_spec.rb
223
+ - spec/type/element_title_spec.rb
224
+ - spec/type/element_warn_spec.rb
225
+ - spec/type/sample.yml
180
226
  homepage: https://github.com/akicho8/source2md
181
227
  licenses:
182
228
  - MIT
@@ -202,12 +248,19 @@ specification_version: 4
202
248
  summary: Markdown generator from source code
203
249
  test_files:
204
250
  - spec/code_block_spec.rb
251
+ - spec/scanner_spec.rb
205
252
  - spec/spec_helper.rb
206
- - spec/type/element_deep_comment_spec.rb
253
+ - spec/text_helper_spec.rb
254
+ - spec/type/element_alert_spec.rb
255
+ - spec/type/element_include_spec.rb
207
256
  - spec/type/element_md_header_spec.rb
257
+ - spec/type/element_md_title_spec.rb
208
258
  - spec/type/element_method_spec.rb
209
- - spec/type/element_pre_spec.rb
259
+ - spec/type/element_partial_code_spec.rb
210
260
  - spec/type/element_reject_spec.rb
261
+ - spec/type/element_source_block_spec.rb
211
262
  - spec/type/element_table_spec.rb
212
263
  - spec/type/element_text_spec.rb
213
- - spec/type/element_title2_spec.rb
264
+ - spec/type/element_title_spec.rb
265
+ - spec/type/element_warn_spec.rb
266
+ - spec/type/sample.yml