reverse_adoc 0.2.8 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.editorconfig +15 -0
- data/.github/workflows/rake.yml +32 -0
- data/.github/workflows/release.yml +45 -0
- data/.gitignore +10 -0
- data/.hound.yml +3 -1
- data/.rubocop.yml +7 -7
- data/Gemfile +1 -1
- data/README.adoc +6 -33
- data/Rakefile +1 -1
- data/exe/reverse_adoc +70 -0
- data/{bin → exe}/w2a +15 -15
- data/lib/reverse_adoc.rb +27 -0
- data/lib/{reverse_asciidoctor → reverse_adoc}/cleaner.rb +28 -27
- data/lib/{reverse_asciidoctor → reverse_adoc}/config.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters.rb +6 -6
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/a.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/aside.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/audio.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/base.rb +5 -3
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/blockquote.rb +2 -2
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/br.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/bypass.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/code.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/div.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/drop.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/em.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/figure.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/h.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/head.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/hr.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/ignore.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/img.rb +9 -9
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/li.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/mark.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/math.rb +3 -3
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/ol.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/p.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/pass_through.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/pre.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/q.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/strong.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/sub.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/sup.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/table.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/td.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/text.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/th.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/tr.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/converters/video.rb +1 -1
- data/lib/{reverse_asciidoctor → reverse_adoc}/errors.rb +1 -1
- data/lib/reverse_adoc/html_converter.rb +56 -0
- data/lib/reverse_adoc/version.rb +3 -0
- data/reverse_adoc.gemspec +18 -15
- data/spec/assets/escapables.html +2 -0
- data/spec/bin/reverse_adoc_spec.rb +2 -2
- data/spec/bin/w2a_spec.rb +7 -7
- data/spec/components/anchors_spec.rb +2 -2
- data/spec/components/basic_spec.rb +3 -3
- data/spec/components/code_spec.rb +4 -5
- data/spec/components/escapables_spec.rb +10 -2
- data/spec/components/from_the_wild_spec.rb +2 -2
- data/spec/components/html_fragment_spec.rb +2 -3
- data/spec/components/lists_spec.rb +2 -2
- data/spec/components/paragraphs_spec.rb +2 -2
- data/spec/components/quotation_spec.rb +2 -2
- data/spec/components/tables_spec.rb +2 -2
- data/spec/components/unknown_tags_spec.rb +9 -10
- data/spec/lib/{reverse_asciidoctor_spec.rb → reverse_adoc.rb} +17 -17
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/cleaner_spec.rb +4 -4
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/config_spec.rb +5 -5
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters/aside_spec.rb +2 -2
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters/audio_spec.rb +2 -3
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters/blockquote_spec.rb +2 -2
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters/br_spec.rb +2 -2
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters/code_spec.rb +2 -3
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters/div_spec.rb +2 -3
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters/figure_spec.rb +2 -3
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters/img_spec.rb +2 -3
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters/li_spec.rb +2 -2
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters/mark_spec.rb +2 -2
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters/p_spec.rb +2 -3
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters/pre_spec.rb +2 -3
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters/q_spec.rb +2 -2
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters/strong_spec.rb +2 -2
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters/text_spec.rb +2 -2
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters/video_spec.rb +2 -3
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters_spec.rb +5 -5
- data/spec/spec_helper.rb +3 -3
- metadata +123 -125
- data/.github/workflows/macos.yml +0 -31
- data/.github/workflows/ubuntu.yml +0 -33
- data/.github/workflows/windows.yml +0 -37
- data/Gemfile.lock +0 -84
- data/bin/reverse_adoc +0 -74
- data/lib/reverse_asciidoctor.rb +0 -30
- data/lib/reverse_asciidoctor/converters/example.rb +0 -17
- data/lib/reverse_asciidoctor/converters/express_ref.rb +0 -12
- data/lib/reverse_asciidoctor/converters/ext_description.rb +0 -16
- data/lib/reverse_asciidoctor/converters/ext_descriptions.rb +0 -12
- data/lib/reverse_asciidoctor/converters/note.rb +0 -17
- data/lib/reverse_asciidoctor/html_converter.rb +0 -56
- data/lib/reverse_asciidoctor/smrl_description_converter.rb +0 -45
- data/lib/reverse_asciidoctor/version.rb +0 -3
- data/spec/lib/reverse_asciidoctor/converters/example_spec.rb +0 -22
- data/spec/lib/reverse_asciidoctor/converters/express_ref_spec.rb +0 -14
- data/spec/lib/reverse_asciidoctor/converters/ext_description_spec.rb +0 -20
- data/spec/lib/reverse_asciidoctor/converters/ext_descriptions_spec.rb +0 -13
- data/spec/lib/reverse_asciidoctor/converters/note_spec.rb +0 -22
@@ -1,12 +1,12 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe ReverseAdoc::Config do
|
4
4
|
describe '#with' do
|
5
|
-
let(:config) {
|
5
|
+
let(:config) { ReverseAdoc.config }
|
6
6
|
|
7
7
|
it 'takes additional options into account' do
|
8
8
|
config.with(tag_border: :foobar) do
|
9
|
-
expect(
|
9
|
+
expect(ReverseAdoc.config.tag_border).to eq :foobar
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
@@ -17,9 +17,9 @@ describe ReverseAsciidoctor::Config do
|
|
17
17
|
it 'resets to original settings afterwards' do
|
18
18
|
config.tag_border = :foo
|
19
19
|
config.with(tag_border: :bar) do
|
20
|
-
expect(
|
20
|
+
expect(ReverseAdoc.config.tag_border).to eq :bar
|
21
21
|
end
|
22
|
-
expect(
|
22
|
+
expect(ReverseAdoc.config.tag_border).to eq :foo
|
23
23
|
end
|
24
24
|
|
25
25
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe ReverseAdoc::Converters::Aside do
|
4
4
|
|
5
|
-
let(:converter) {
|
5
|
+
let(:converter) { ReverseAdoc::Converters::Aside.new }
|
6
6
|
|
7
7
|
it 'converts aside' do
|
8
8
|
input = node_for("<aside><ul><li>foo</li></ul></aside>")
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe ReverseAdoc::Converters::Audio do
|
4
4
|
|
5
|
-
let(:converter) {
|
5
|
+
let(:converter) { ReverseAdoc::Converters::Audio.new }
|
6
6
|
|
7
7
|
it 'converts audio with no attributes' do
|
8
8
|
node = node_for("<audio src='example.mp3'/>")
|
@@ -15,4 +15,3 @@ describe ReverseAsciidoctor::Converters::Audio do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
end
|
18
|
-
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe ReverseAdoc::Converters::Blockquote do
|
4
4
|
|
5
|
-
let(:converter) {
|
5
|
+
let(:converter) { ReverseAdoc::Converters::Blockquote.new }
|
6
6
|
|
7
7
|
it 'converts nested elements as well' do
|
8
8
|
input = node_for("<blockquote><ul><li>foo</li></ul></blockquote>")
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
4
|
-
let(:converter) {
|
3
|
+
describe ReverseAdoc::Converters::Br do
|
4
|
+
let(:converter) { ReverseAdoc::Converters::Br.new }
|
5
5
|
|
6
6
|
it 'just converts into two spaces and a newline' do
|
7
7
|
expect(converter.convert(:anything)).to eq " \+\n"
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe ReverseAdoc::Converters::Code do
|
4
4
|
|
5
|
-
let(:converter) {
|
5
|
+
let(:converter) { ReverseAdoc::Converters::Code.new }
|
6
6
|
|
7
7
|
it 'converts as backtick' do
|
8
8
|
node = node_for("<code>puts foo</code>")
|
@@ -15,4 +15,3 @@ describe ReverseAsciidoctor::Converters::Code do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
end
|
18
|
-
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe ReverseAdoc::Converters::Code do
|
4
4
|
|
5
|
-
let(:converter) {
|
5
|
+
let(:converter) { ReverseAdoc::Converters::Div.new }
|
6
6
|
|
7
7
|
it 'converts div' do
|
8
8
|
node = node_for("<div>puts foo</div>")
|
@@ -15,4 +15,3 @@ describe ReverseAsciidoctor::Converters::Code do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
end
|
18
|
-
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe ReverseAdoc::Converters::Figure do
|
4
4
|
|
5
|
-
let(:converter) {
|
5
|
+
let(:converter) { ReverseAdoc::Converters::Figure.new }
|
6
6
|
|
7
7
|
it 'converts figure' do
|
8
8
|
node = node_for("<figure id='A'><img src='example.jpg'/><figcaption>Figure <i>caption</i></figcaption></figure>")
|
@@ -10,4 +10,3 @@ describe ReverseAsciidoctor::Converters::Figure do
|
|
10
10
|
|
11
11
|
end
|
12
12
|
end
|
13
|
-
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe ReverseAdoc::Converters::Img do
|
4
4
|
|
5
|
-
let(:converter) {
|
5
|
+
let(:converter) { ReverseAdoc::Converters::Img.new }
|
6
6
|
|
7
7
|
it 'converts image with no attributes' do
|
8
8
|
node = node_for("<img src='example.jpg'/>")
|
@@ -25,4 +25,3 @@ describe ReverseAsciidoctor::Converters::Img do
|
|
25
25
|
end
|
26
26
|
|
27
27
|
end
|
28
|
-
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe ReverseAdoc::Converters::Li do
|
4
4
|
|
5
|
-
let(:converter) {
|
5
|
+
let(:converter) { ReverseAdoc::Converters::Li.new }
|
6
6
|
|
7
7
|
it 'does not fail without a valid parent context' do
|
8
8
|
input = node_for("<li>foo</li>")
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
4
|
-
let(:converter) {
|
3
|
+
describe ReverseAdoc::Converters::Mark do
|
4
|
+
let(:converter) { ReverseAdoc::Converters::Mark.new }
|
5
5
|
|
6
6
|
it 'renders mark' do
|
7
7
|
input = node_for('<mark>A</mark>')
|
@@ -1,12 +1,11 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe ReverseAdoc::Converters::P do
|
4
4
|
|
5
|
-
let(:converter) {
|
5
|
+
let(:converter) { ReverseAdoc::Converters::P.new }
|
6
6
|
|
7
7
|
it 'converts p with anchor' do
|
8
8
|
node = node_for("<p id='A'>puts foo</p>")
|
9
9
|
expect(converter.convert(node)).to include "\n[[A]]\nputs foo"
|
10
10
|
end
|
11
11
|
end
|
12
|
-
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe ReverseAdoc::Converters::Pre do
|
4
4
|
|
5
|
-
let(:converter) {
|
5
|
+
let(:converter) { ReverseAdoc::Converters::Pre.new }
|
6
6
|
|
7
7
|
it 'converts as literal' do
|
8
8
|
node = node_for("<pre>puts foo</pre>")
|
@@ -42,4 +42,3 @@ describe ReverseAsciidoctor::Converters::Pre do
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|
45
|
-
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
4
|
-
let(:converter) {
|
3
|
+
describe ReverseAdoc::Converters::Q do
|
4
|
+
let(:converter) { ReverseAdoc::Converters::Q.new }
|
5
5
|
|
6
6
|
it 'renders q' do
|
7
7
|
input = node_for('<q>A</q>')
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
4
|
-
let(:converter) {
|
3
|
+
describe ReverseAdoc::Converters::Strong do
|
4
|
+
let(:converter) { ReverseAdoc::Converters::Strong.new }
|
5
5
|
|
6
6
|
it 'returns an empty string if the node is empty' do
|
7
7
|
input = node_for('<strong></strong>')
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe ReverseAdoc::Converters::Text do
|
4
4
|
|
5
|
-
let(:converter) {
|
5
|
+
let(:converter) { ReverseAdoc::Converters::Text.new }
|
6
6
|
|
7
7
|
it 'treats newline within text as a single whitespace' do
|
8
8
|
input = node_for("<p>foo\nbar</p>")
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe ReverseAdoc::Converters::Video do
|
4
4
|
|
5
|
-
let(:converter) {
|
5
|
+
let(:converter) { ReverseAdoc::Converters::Video.new }
|
6
6
|
|
7
7
|
it 'converts audio with no attributes' do
|
8
8
|
node = node_for("<audio src='example.mp3'/>")
|
@@ -15,4 +15,3 @@ describe ReverseAsciidoctor::Converters::Video do
|
|
15
15
|
end
|
16
16
|
|
17
17
|
end
|
18
|
-
|
@@ -1,18 +1,18 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
4
|
-
before {
|
5
|
-
let(:converters) {
|
3
|
+
describe ReverseAdoc::Converters do
|
4
|
+
before { ReverseAdoc.config.unknown_tags = :raise }
|
5
|
+
let(:converters) { ReverseAdoc::Converters }
|
6
6
|
|
7
7
|
describe '.register and .unregister' do
|
8
8
|
it 'adds a converter mapping to the list' do
|
9
|
-
expect { converters.lookup(:foo) }.to raise_error
|
9
|
+
expect { converters.lookup(:foo) }.to raise_error ReverseAdoc::UnknownTagError
|
10
10
|
|
11
11
|
converters.register :foo, :foobar
|
12
12
|
expect(converters.lookup(:foo)).to eq :foobar
|
13
13
|
|
14
14
|
converters.unregister :foo
|
15
|
-
expect { converters.lookup(:foo) }.to raise_error
|
15
|
+
expect { converters.lookup(:foo) }.to raise_error ReverseAdoc::UnknownTagError
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
data/spec/spec_helper.rb
CHANGED
@@ -8,8 +8,8 @@ SimpleCov.profiles.define 'gem' do
|
|
8
8
|
end
|
9
9
|
SimpleCov.start 'gem'
|
10
10
|
|
11
|
-
require '
|
12
|
-
require '
|
11
|
+
require 'reverse_adoc'
|
12
|
+
require 'reverse_adoc/html_converter'
|
13
13
|
require 'word-to-markdown'
|
14
14
|
|
15
15
|
Dir[File.join('spec', 'support', '**', '*.rb')]
|
@@ -17,7 +17,7 @@ Dir[File.join('spec', 'support', '**', '*.rb')]
|
|
17
17
|
|
18
18
|
RSpec.configure do |config|
|
19
19
|
config.after(:each) do
|
20
|
-
|
20
|
+
ReverseAdoc.instance_variable_set(:@config, nil)
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reverse_adoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
|
-
autorequire:
|
9
|
-
bindir:
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: marcel
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mathml2asciimath
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,21 +39,21 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: nokogiri
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '1.11'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '1.11'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: codeclimate-test-reporter
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: redcarpet
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
@@ -95,7 +95,7 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: simplecov
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: premailer
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 1.11.0
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 1.11.0
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
140
|
name: word-to-markdown
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -145,65 +159,59 @@ executables:
|
|
145
159
|
extensions: []
|
146
160
|
extra_rdoc_files: []
|
147
161
|
files:
|
148
|
-
- ".
|
149
|
-
- ".github/workflows/
|
150
|
-
- ".github/workflows/
|
162
|
+
- ".editorconfig"
|
163
|
+
- ".github/workflows/rake.yml"
|
164
|
+
- ".github/workflows/release.yml"
|
165
|
+
- ".gitignore"
|
151
166
|
- ".hound.yml"
|
152
167
|
- ".rubocop.yml"
|
153
168
|
- Gemfile
|
154
|
-
- Gemfile.lock
|
155
169
|
- LICENSE.txt
|
156
170
|
- README.adoc
|
157
171
|
- Rakefile
|
158
|
-
-
|
159
|
-
-
|
160
|
-
- lib/
|
161
|
-
- lib/
|
162
|
-
- lib/
|
163
|
-
- lib/
|
164
|
-
- lib/
|
165
|
-
- lib/
|
166
|
-
- lib/
|
167
|
-
- lib/
|
168
|
-
- lib/
|
169
|
-
- lib/
|
170
|
-
- lib/
|
171
|
-
- lib/
|
172
|
-
- lib/
|
173
|
-
- lib/
|
174
|
-
- lib/
|
175
|
-
- lib/
|
176
|
-
- lib/
|
177
|
-
- lib/
|
178
|
-
- lib/
|
179
|
-
- lib/
|
180
|
-
- lib/
|
181
|
-
- lib/
|
182
|
-
- lib/
|
183
|
-
- lib/
|
184
|
-
- lib/
|
185
|
-
- lib/
|
186
|
-
- lib/
|
187
|
-
- lib/
|
188
|
-
- lib/
|
189
|
-
- lib/
|
190
|
-
- lib/
|
191
|
-
- lib/
|
192
|
-
- lib/
|
193
|
-
- lib/
|
194
|
-
- lib/
|
195
|
-
- lib/
|
196
|
-
- lib/
|
197
|
-
- lib/
|
198
|
-
- lib/
|
199
|
-
- lib/
|
200
|
-
- lib/
|
201
|
-
- lib/reverse_asciidoctor/converters/tr.rb
|
202
|
-
- lib/reverse_asciidoctor/converters/video.rb
|
203
|
-
- lib/reverse_asciidoctor/errors.rb
|
204
|
-
- lib/reverse_asciidoctor/html_converter.rb
|
205
|
-
- lib/reverse_asciidoctor/smrl_description_converter.rb
|
206
|
-
- lib/reverse_asciidoctor/version.rb
|
172
|
+
- exe/reverse_adoc
|
173
|
+
- exe/w2a
|
174
|
+
- lib/reverse_adoc.rb
|
175
|
+
- lib/reverse_adoc/cleaner.rb
|
176
|
+
- lib/reverse_adoc/config.rb
|
177
|
+
- lib/reverse_adoc/converters.rb
|
178
|
+
- lib/reverse_adoc/converters/a.rb
|
179
|
+
- lib/reverse_adoc/converters/aside.rb
|
180
|
+
- lib/reverse_adoc/converters/audio.rb
|
181
|
+
- lib/reverse_adoc/converters/base.rb
|
182
|
+
- lib/reverse_adoc/converters/blockquote.rb
|
183
|
+
- lib/reverse_adoc/converters/br.rb
|
184
|
+
- lib/reverse_adoc/converters/bypass.rb
|
185
|
+
- lib/reverse_adoc/converters/code.rb
|
186
|
+
- lib/reverse_adoc/converters/div.rb
|
187
|
+
- lib/reverse_adoc/converters/drop.rb
|
188
|
+
- lib/reverse_adoc/converters/em.rb
|
189
|
+
- lib/reverse_adoc/converters/figure.rb
|
190
|
+
- lib/reverse_adoc/converters/h.rb
|
191
|
+
- lib/reverse_adoc/converters/head.rb
|
192
|
+
- lib/reverse_adoc/converters/hr.rb
|
193
|
+
- lib/reverse_adoc/converters/ignore.rb
|
194
|
+
- lib/reverse_adoc/converters/img.rb
|
195
|
+
- lib/reverse_adoc/converters/li.rb
|
196
|
+
- lib/reverse_adoc/converters/mark.rb
|
197
|
+
- lib/reverse_adoc/converters/math.rb
|
198
|
+
- lib/reverse_adoc/converters/ol.rb
|
199
|
+
- lib/reverse_adoc/converters/p.rb
|
200
|
+
- lib/reverse_adoc/converters/pass_through.rb
|
201
|
+
- lib/reverse_adoc/converters/pre.rb
|
202
|
+
- lib/reverse_adoc/converters/q.rb
|
203
|
+
- lib/reverse_adoc/converters/strong.rb
|
204
|
+
- lib/reverse_adoc/converters/sub.rb
|
205
|
+
- lib/reverse_adoc/converters/sup.rb
|
206
|
+
- lib/reverse_adoc/converters/table.rb
|
207
|
+
- lib/reverse_adoc/converters/td.rb
|
208
|
+
- lib/reverse_adoc/converters/text.rb
|
209
|
+
- lib/reverse_adoc/converters/th.rb
|
210
|
+
- lib/reverse_adoc/converters/tr.rb
|
211
|
+
- lib/reverse_adoc/converters/video.rb
|
212
|
+
- lib/reverse_adoc/errors.rb
|
213
|
+
- lib/reverse_adoc/html_converter.rb
|
214
|
+
- lib/reverse_adoc/version.rb
|
207
215
|
- reverse_adoc.gemspec
|
208
216
|
- spec/assets/anchors.html
|
209
217
|
- spec/assets/basic.html
|
@@ -233,38 +241,33 @@ files:
|
|
233
241
|
- spec/components/quotation_spec.rb
|
234
242
|
- spec/components/tables_spec.rb
|
235
243
|
- spec/components/unknown_tags_spec.rb
|
236
|
-
- spec/lib/
|
237
|
-
- spec/lib/
|
238
|
-
- spec/lib/
|
239
|
-
- spec/lib/
|
240
|
-
- spec/lib/
|
241
|
-
- spec/lib/
|
242
|
-
- spec/lib/
|
243
|
-
- spec/lib/
|
244
|
-
- spec/lib/
|
245
|
-
- spec/lib/
|
246
|
-
- spec/lib/
|
247
|
-
- spec/lib/
|
248
|
-
- spec/lib/
|
249
|
-
- spec/lib/
|
250
|
-
- spec/lib/
|
251
|
-
- spec/lib/
|
252
|
-
- spec/lib/
|
253
|
-
- spec/lib/
|
254
|
-
- spec/lib/
|
255
|
-
- spec/lib/
|
256
|
-
- spec/lib/reverse_asciidoctor/converters/strong_spec.rb
|
257
|
-
- spec/lib/reverse_asciidoctor/converters/text_spec.rb
|
258
|
-
- spec/lib/reverse_asciidoctor/converters/video_spec.rb
|
259
|
-
- spec/lib/reverse_asciidoctor/converters_spec.rb
|
260
|
-
- spec/lib/reverse_asciidoctor_spec.rb
|
244
|
+
- spec/lib/reverse_adoc.rb
|
245
|
+
- spec/lib/reverse_adoc/cleaner_spec.rb
|
246
|
+
- spec/lib/reverse_adoc/config_spec.rb
|
247
|
+
- spec/lib/reverse_adoc/converters/aside_spec.rb
|
248
|
+
- spec/lib/reverse_adoc/converters/audio_spec.rb
|
249
|
+
- spec/lib/reverse_adoc/converters/blockquote_spec.rb
|
250
|
+
- spec/lib/reverse_adoc/converters/br_spec.rb
|
251
|
+
- spec/lib/reverse_adoc/converters/code_spec.rb
|
252
|
+
- spec/lib/reverse_adoc/converters/div_spec.rb
|
253
|
+
- spec/lib/reverse_adoc/converters/figure_spec.rb
|
254
|
+
- spec/lib/reverse_adoc/converters/img_spec.rb
|
255
|
+
- spec/lib/reverse_adoc/converters/li_spec.rb
|
256
|
+
- spec/lib/reverse_adoc/converters/mark_spec.rb
|
257
|
+
- spec/lib/reverse_adoc/converters/p_spec.rb
|
258
|
+
- spec/lib/reverse_adoc/converters/pre_spec.rb
|
259
|
+
- spec/lib/reverse_adoc/converters/q_spec.rb
|
260
|
+
- spec/lib/reverse_adoc/converters/strong_spec.rb
|
261
|
+
- spec/lib/reverse_adoc/converters/text_spec.rb
|
262
|
+
- spec/lib/reverse_adoc/converters/video_spec.rb
|
263
|
+
- spec/lib/reverse_adoc/converters_spec.rb
|
261
264
|
- spec/spec_helper.rb
|
262
265
|
- spec/support/shell_helpers.rb
|
263
266
|
homepage: http://github.com/metanorma/reverse_adoc
|
264
267
|
licenses:
|
265
268
|
- BSD-2-Clause
|
266
269
|
metadata: {}
|
267
|
-
post_install_message:
|
270
|
+
post_install_message:
|
268
271
|
rdoc_options: []
|
269
272
|
require_paths:
|
270
273
|
- lib
|
@@ -279,8 +282,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
279
282
|
- !ruby/object:Gem::Version
|
280
283
|
version: '0'
|
281
284
|
requirements: []
|
282
|
-
rubygems_version: 3.
|
283
|
-
signing_key:
|
285
|
+
rubygems_version: 3.1.4
|
286
|
+
signing_key:
|
284
287
|
specification_version: 4
|
285
288
|
summary: Generate AsciiDoc from HTML and Microsoft Word via CLI or library.
|
286
289
|
test_files:
|
@@ -312,30 +315,25 @@ test_files:
|
|
312
315
|
- spec/components/quotation_spec.rb
|
313
316
|
- spec/components/tables_spec.rb
|
314
317
|
- spec/components/unknown_tags_spec.rb
|
315
|
-
- spec/lib/
|
316
|
-
- spec/lib/
|
317
|
-
- spec/lib/
|
318
|
-
- spec/lib/
|
319
|
-
- spec/lib/
|
320
|
-
- spec/lib/
|
321
|
-
- spec/lib/
|
322
|
-
- spec/lib/
|
323
|
-
- spec/lib/
|
324
|
-
- spec/lib/
|
325
|
-
- spec/lib/
|
326
|
-
- spec/lib/
|
327
|
-
- spec/lib/
|
328
|
-
- spec/lib/
|
329
|
-
- spec/lib/
|
330
|
-
- spec/lib/
|
331
|
-
- spec/lib/
|
332
|
-
- spec/lib/
|
333
|
-
- spec/lib/
|
334
|
-
- spec/lib/
|
335
|
-
- spec/lib/reverse_asciidoctor/converters/strong_spec.rb
|
336
|
-
- spec/lib/reverse_asciidoctor/converters/text_spec.rb
|
337
|
-
- spec/lib/reverse_asciidoctor/converters/video_spec.rb
|
338
|
-
- spec/lib/reverse_asciidoctor/converters_spec.rb
|
339
|
-
- spec/lib/reverse_asciidoctor_spec.rb
|
318
|
+
- spec/lib/reverse_adoc.rb
|
319
|
+
- spec/lib/reverse_adoc/cleaner_spec.rb
|
320
|
+
- spec/lib/reverse_adoc/config_spec.rb
|
321
|
+
- spec/lib/reverse_adoc/converters/aside_spec.rb
|
322
|
+
- spec/lib/reverse_adoc/converters/audio_spec.rb
|
323
|
+
- spec/lib/reverse_adoc/converters/blockquote_spec.rb
|
324
|
+
- spec/lib/reverse_adoc/converters/br_spec.rb
|
325
|
+
- spec/lib/reverse_adoc/converters/code_spec.rb
|
326
|
+
- spec/lib/reverse_adoc/converters/div_spec.rb
|
327
|
+
- spec/lib/reverse_adoc/converters/figure_spec.rb
|
328
|
+
- spec/lib/reverse_adoc/converters/img_spec.rb
|
329
|
+
- spec/lib/reverse_adoc/converters/li_spec.rb
|
330
|
+
- spec/lib/reverse_adoc/converters/mark_spec.rb
|
331
|
+
- spec/lib/reverse_adoc/converters/p_spec.rb
|
332
|
+
- spec/lib/reverse_adoc/converters/pre_spec.rb
|
333
|
+
- spec/lib/reverse_adoc/converters/q_spec.rb
|
334
|
+
- spec/lib/reverse_adoc/converters/strong_spec.rb
|
335
|
+
- spec/lib/reverse_adoc/converters/text_spec.rb
|
336
|
+
- spec/lib/reverse_adoc/converters/video_spec.rb
|
337
|
+
- spec/lib/reverse_adoc/converters_spec.rb
|
340
338
|
- spec/spec_helper.rb
|
341
339
|
- spec/support/shell_helpers.rb
|