reverse_adoc 0.2.6 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +42 -0
- data/Gemfile +2 -2
- data/README.adoc +6 -22
- data/Rakefile +1 -1
- data/bin/reverse_adoc +17 -17
- data/bin/w2a +17 -17
- data/lib/reverse_adoc.rb +27 -0
- data/lib/{reverse_asciidoctor → reverse_adoc}/cleaner.rb +4 -4
- data/lib/{reverse_asciidoctor → reverse_adoc}/config.rb +3 -2
- 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 +2 -2
- 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 +11 -11
- 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 +5 -4
- data/spec/assets/{test.docx → external_images.docx} +0 -0
- data/spec/assets/{test.html → external_images.html} +0 -0
- data/spec/bin/reverse_adoc_spec.rb +32 -0
- data/spec/bin/w2a_spec.rb +35 -0
- data/spec/components/anchors_spec.rb +2 -2
- data/spec/components/basic_spec.rb +2 -2
- data/spec/components/code_spec.rb +4 -4
- data/spec/components/escapables_spec.rb +2 -2
- data/spec/components/from_the_wild_spec.rb +2 -2
- data/spec/components/html_fragment_spec.rb +2 -2
- 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 -9
- data/spec/lib/reverse_adoc.rb +90 -0
- 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 -2
- 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 -2
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters/div_spec.rb +2 -2
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters/figure_spec.rb +2 -2
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters/img_spec.rb +2 -2
- 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 -2
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters/pre_spec.rb +2 -2
- 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 -2
- data/spec/lib/{reverse_asciidoctor → reverse_adoc}/converters_spec.rb +5 -5
- data/spec/spec_helper.rb +7 -2
- data/spec/support/shell_helpers.rb +15 -0
- metadata +119 -101
- data/.github/workflows/macos.yml +0 -27
- data/.github/workflows/ubuntu.yml +0 -27
- data/.github/workflows/windows.yml +0 -30
- data/lib/reverse_asciidoctor.rb +0 -70
- data/lib/reverse_asciidoctor/version.rb +0 -3
- data/spec/lib/reverse_asciidoctor_spec.rb +0 -37
@@ -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,8 +1,8 @@
|
|
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>")
|
@@ -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>")
|
@@ -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'/>")
|
@@ -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,11 +8,16 @@ SimpleCov.profiles.define 'gem' do
|
|
8
8
|
end
|
9
9
|
SimpleCov.start 'gem'
|
10
10
|
|
11
|
-
require '
|
11
|
+
require 'reverse_adoc'
|
12
|
+
require 'reverse_adoc/html_converter'
|
13
|
+
require 'word-to-markdown'
|
14
|
+
|
15
|
+
Dir[File.join('spec', 'support', '**', '*.rb')]
|
16
|
+
.each { |f| require File.join('.', f) }
|
12
17
|
|
13
18
|
RSpec.configure do |config|
|
14
19
|
config.after(:each) do
|
15
|
-
|
20
|
+
ReverseAdoc.instance_variable_set(:@config, nil)
|
16
21
|
end
|
17
22
|
end
|
18
23
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'open3'
|
4
|
+
|
5
|
+
module ShellUtils
|
6
|
+
class ShellExcutionError < StandardError; end
|
7
|
+
module_function
|
8
|
+
|
9
|
+
def execute!(cmd)
|
10
|
+
stdout, stderr, status = Open3.capture3(cmd)
|
11
|
+
raise(ShellExcutionError, stderr) unless status.success?
|
12
|
+
|
13
|
+
stdout
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
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.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 1.10.4
|
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
26
|
version: 1.10.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -39,19 +39,19 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: marcel
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.0.0
|
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.0.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: premailer
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 1.11.0
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 1.11.0
|
139
153
|
description: Generate AsciiDoc from HTML and Microsoft Word via CLI or library.
|
140
154
|
email:
|
141
155
|
- open.source@ribose.com
|
@@ -145,9 +159,7 @@ executables:
|
|
145
159
|
extensions: []
|
146
160
|
extra_rdoc_files: []
|
147
161
|
files:
|
148
|
-
- ".github/workflows/
|
149
|
-
- ".github/workflows/ubuntu.yml"
|
150
|
-
- ".github/workflows/windows.yml"
|
162
|
+
- ".github/workflows/rake.yml"
|
151
163
|
- ".hound.yml"
|
152
164
|
- ".rubocop.yml"
|
153
165
|
- Gemfile
|
@@ -156,51 +168,54 @@ files:
|
|
156
168
|
- Rakefile
|
157
169
|
- bin/reverse_adoc
|
158
170
|
- bin/w2a
|
159
|
-
- lib/
|
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/
|
171
|
+
- lib/reverse_adoc.rb
|
172
|
+
- lib/reverse_adoc/cleaner.rb
|
173
|
+
- lib/reverse_adoc/config.rb
|
174
|
+
- lib/reverse_adoc/converters.rb
|
175
|
+
- lib/reverse_adoc/converters/a.rb
|
176
|
+
- lib/reverse_adoc/converters/aside.rb
|
177
|
+
- lib/reverse_adoc/converters/audio.rb
|
178
|
+
- lib/reverse_adoc/converters/base.rb
|
179
|
+
- lib/reverse_adoc/converters/blockquote.rb
|
180
|
+
- lib/reverse_adoc/converters/br.rb
|
181
|
+
- lib/reverse_adoc/converters/bypass.rb
|
182
|
+
- lib/reverse_adoc/converters/code.rb
|
183
|
+
- lib/reverse_adoc/converters/div.rb
|
184
|
+
- lib/reverse_adoc/converters/drop.rb
|
185
|
+
- lib/reverse_adoc/converters/em.rb
|
186
|
+
- lib/reverse_adoc/converters/figure.rb
|
187
|
+
- lib/reverse_adoc/converters/h.rb
|
188
|
+
- lib/reverse_adoc/converters/head.rb
|
189
|
+
- lib/reverse_adoc/converters/hr.rb
|
190
|
+
- lib/reverse_adoc/converters/ignore.rb
|
191
|
+
- lib/reverse_adoc/converters/img.rb
|
192
|
+
- lib/reverse_adoc/converters/li.rb
|
193
|
+
- lib/reverse_adoc/converters/mark.rb
|
194
|
+
- lib/reverse_adoc/converters/math.rb
|
195
|
+
- lib/reverse_adoc/converters/ol.rb
|
196
|
+
- lib/reverse_adoc/converters/p.rb
|
197
|
+
- lib/reverse_adoc/converters/pass_through.rb
|
198
|
+
- lib/reverse_adoc/converters/pre.rb
|
199
|
+
- lib/reverse_adoc/converters/q.rb
|
200
|
+
- lib/reverse_adoc/converters/strong.rb
|
201
|
+
- lib/reverse_adoc/converters/sub.rb
|
202
|
+
- lib/reverse_adoc/converters/sup.rb
|
203
|
+
- lib/reverse_adoc/converters/table.rb
|
204
|
+
- lib/reverse_adoc/converters/td.rb
|
205
|
+
- lib/reverse_adoc/converters/text.rb
|
206
|
+
- lib/reverse_adoc/converters/th.rb
|
207
|
+
- lib/reverse_adoc/converters/tr.rb
|
208
|
+
- lib/reverse_adoc/converters/video.rb
|
209
|
+
- lib/reverse_adoc/errors.rb
|
210
|
+
- lib/reverse_adoc/html_converter.rb
|
211
|
+
- lib/reverse_adoc/version.rb
|
199
212
|
- reverse_adoc.gemspec
|
200
213
|
- spec/assets/anchors.html
|
201
214
|
- spec/assets/basic.html
|
202
215
|
- spec/assets/code.html
|
203
216
|
- spec/assets/escapables.html
|
217
|
+
- spec/assets/external_images.docx
|
218
|
+
- spec/assets/external_images.html
|
204
219
|
- spec/assets/from_the_wild.html
|
205
220
|
- spec/assets/full_example.html
|
206
221
|
- spec/assets/html_fragment.html
|
@@ -209,9 +224,9 @@ files:
|
|
209
224
|
- spec/assets/paragraphs.html
|
210
225
|
- spec/assets/quotation.html
|
211
226
|
- spec/assets/tables.html
|
212
|
-
- spec/assets/test.docx
|
213
|
-
- spec/assets/test.html
|
214
227
|
- spec/assets/unknown_tags.html
|
228
|
+
- spec/bin/reverse_adoc_spec.rb
|
229
|
+
- spec/bin/w2a_spec.rb
|
215
230
|
- spec/components/anchors_spec.rb
|
216
231
|
- spec/components/basic_spec.rb
|
217
232
|
- spec/components/code_spec.rb
|
@@ -223,32 +238,33 @@ files:
|
|
223
238
|
- spec/components/quotation_spec.rb
|
224
239
|
- spec/components/tables_spec.rb
|
225
240
|
- spec/components/unknown_tags_spec.rb
|
226
|
-
- spec/lib/
|
227
|
-
- spec/lib/
|
228
|
-
- spec/lib/
|
229
|
-
- spec/lib/
|
230
|
-
- spec/lib/
|
231
|
-
- spec/lib/
|
232
|
-
- spec/lib/
|
233
|
-
- spec/lib/
|
234
|
-
- spec/lib/
|
235
|
-
- spec/lib/
|
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/
|
241
|
+
- spec/lib/reverse_adoc.rb
|
242
|
+
- spec/lib/reverse_adoc/cleaner_spec.rb
|
243
|
+
- spec/lib/reverse_adoc/config_spec.rb
|
244
|
+
- spec/lib/reverse_adoc/converters/aside_spec.rb
|
245
|
+
- spec/lib/reverse_adoc/converters/audio_spec.rb
|
246
|
+
- spec/lib/reverse_adoc/converters/blockquote_spec.rb
|
247
|
+
- spec/lib/reverse_adoc/converters/br_spec.rb
|
248
|
+
- spec/lib/reverse_adoc/converters/code_spec.rb
|
249
|
+
- spec/lib/reverse_adoc/converters/div_spec.rb
|
250
|
+
- spec/lib/reverse_adoc/converters/figure_spec.rb
|
251
|
+
- spec/lib/reverse_adoc/converters/img_spec.rb
|
252
|
+
- spec/lib/reverse_adoc/converters/li_spec.rb
|
253
|
+
- spec/lib/reverse_adoc/converters/mark_spec.rb
|
254
|
+
- spec/lib/reverse_adoc/converters/p_spec.rb
|
255
|
+
- spec/lib/reverse_adoc/converters/pre_spec.rb
|
256
|
+
- spec/lib/reverse_adoc/converters/q_spec.rb
|
257
|
+
- spec/lib/reverse_adoc/converters/strong_spec.rb
|
258
|
+
- spec/lib/reverse_adoc/converters/text_spec.rb
|
259
|
+
- spec/lib/reverse_adoc/converters/video_spec.rb
|
260
|
+
- spec/lib/reverse_adoc/converters_spec.rb
|
246
261
|
- spec/spec_helper.rb
|
262
|
+
- spec/support/shell_helpers.rb
|
247
263
|
homepage: http://github.com/metanorma/reverse_adoc
|
248
264
|
licenses:
|
249
265
|
- BSD-2-Clause
|
250
266
|
metadata: {}
|
251
|
-
post_install_message:
|
267
|
+
post_install_message:
|
252
268
|
rdoc_options: []
|
253
269
|
require_paths:
|
254
270
|
- lib
|
@@ -263,9 +279,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
263
279
|
- !ruby/object:Gem::Version
|
264
280
|
version: '0'
|
265
281
|
requirements: []
|
266
|
-
|
267
|
-
|
268
|
-
signing_key:
|
282
|
+
rubygems_version: 3.1.4
|
283
|
+
signing_key:
|
269
284
|
specification_version: 4
|
270
285
|
summary: Generate AsciiDoc from HTML and Microsoft Word via CLI or library.
|
271
286
|
test_files:
|
@@ -273,6 +288,8 @@ test_files:
|
|
273
288
|
- spec/assets/basic.html
|
274
289
|
- spec/assets/code.html
|
275
290
|
- spec/assets/escapables.html
|
291
|
+
- spec/assets/external_images.docx
|
292
|
+
- spec/assets/external_images.html
|
276
293
|
- spec/assets/from_the_wild.html
|
277
294
|
- spec/assets/full_example.html
|
278
295
|
- spec/assets/html_fragment.html
|
@@ -281,9 +298,9 @@ test_files:
|
|
281
298
|
- spec/assets/paragraphs.html
|
282
299
|
- spec/assets/quotation.html
|
283
300
|
- spec/assets/tables.html
|
284
|
-
- spec/assets/test.docx
|
285
|
-
- spec/assets/test.html
|
286
301
|
- spec/assets/unknown_tags.html
|
302
|
+
- spec/bin/reverse_adoc_spec.rb
|
303
|
+
- spec/bin/w2a_spec.rb
|
287
304
|
- spec/components/anchors_spec.rb
|
288
305
|
- spec/components/basic_spec.rb
|
289
306
|
- spec/components/code_spec.rb
|
@@ -295,24 +312,25 @@ test_files:
|
|
295
312
|
- spec/components/quotation_spec.rb
|
296
313
|
- spec/components/tables_spec.rb
|
297
314
|
- spec/components/unknown_tags_spec.rb
|
298
|
-
- spec/lib/
|
299
|
-
- spec/lib/
|
300
|
-
- spec/lib/
|
301
|
-
- spec/lib/
|
302
|
-
- spec/lib/
|
303
|
-
- spec/lib/
|
304
|
-
- spec/lib/
|
305
|
-
- spec/lib/
|
306
|
-
- spec/lib/
|
307
|
-
- spec/lib/
|
308
|
-
- spec/lib/
|
309
|
-
- spec/lib/
|
310
|
-
- spec/lib/
|
311
|
-
- spec/lib/
|
312
|
-
- spec/lib/
|
313
|
-
- spec/lib/
|
314
|
-
- spec/lib/
|
315
|
-
- spec/lib/
|
316
|
-
- spec/lib/
|
317
|
-
- spec/lib/
|
315
|
+
- spec/lib/reverse_adoc.rb
|
316
|
+
- spec/lib/reverse_adoc/cleaner_spec.rb
|
317
|
+
- spec/lib/reverse_adoc/config_spec.rb
|
318
|
+
- spec/lib/reverse_adoc/converters/aside_spec.rb
|
319
|
+
- spec/lib/reverse_adoc/converters/audio_spec.rb
|
320
|
+
- spec/lib/reverse_adoc/converters/blockquote_spec.rb
|
321
|
+
- spec/lib/reverse_adoc/converters/br_spec.rb
|
322
|
+
- spec/lib/reverse_adoc/converters/code_spec.rb
|
323
|
+
- spec/lib/reverse_adoc/converters/div_spec.rb
|
324
|
+
- spec/lib/reverse_adoc/converters/figure_spec.rb
|
325
|
+
- spec/lib/reverse_adoc/converters/img_spec.rb
|
326
|
+
- spec/lib/reverse_adoc/converters/li_spec.rb
|
327
|
+
- spec/lib/reverse_adoc/converters/mark_spec.rb
|
328
|
+
- spec/lib/reverse_adoc/converters/p_spec.rb
|
329
|
+
- spec/lib/reverse_adoc/converters/pre_spec.rb
|
330
|
+
- spec/lib/reverse_adoc/converters/q_spec.rb
|
331
|
+
- spec/lib/reverse_adoc/converters/strong_spec.rb
|
332
|
+
- spec/lib/reverse_adoc/converters/text_spec.rb
|
333
|
+
- spec/lib/reverse_adoc/converters/video_spec.rb
|
334
|
+
- spec/lib/reverse_adoc/converters_spec.rb
|
318
335
|
- spec/spec_helper.rb
|
336
|
+
- spec/support/shell_helpers.rb
|