isodoc 0.4.5 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/rspec +18 -0
- data/isodoc.gemspec +1 -1
- data/lib/isodoc.rb +34 -5
- data/lib/isodoc/blocks.rb +62 -50
- data/lib/isodoc/cleanup.rb +34 -10
- data/lib/isodoc/html.rb +31 -16
- data/lib/isodoc/i18n-en.yaml +72 -0
- data/lib/isodoc/i18n-fr.yaml +65 -0
- data/lib/isodoc/i18n-zh-Hans.yaml +64 -0
- data/lib/isodoc/i18n.rb +90 -0
- data/lib/isodoc/inline.rb +25 -18
- data/lib/isodoc/iso2wordhtml.rb +30 -7
- data/lib/isodoc/lists.rb +29 -9
- data/lib/isodoc/metadata.rb +54 -38
- data/lib/isodoc/notes.rb +32 -32
- data/lib/isodoc/postprocessing.rb +65 -46
- data/lib/isodoc/references.rb +63 -29
- data/lib/isodoc/section.rb +94 -44
- data/lib/isodoc/table.rb +19 -19
- data/lib/isodoc/terms.rb +5 -6
- data/lib/isodoc/utils.rb +48 -5
- data/lib/isodoc/version.rb +1 -1
- data/lib/isodoc/xref_gen.rb +87 -75
- data/spec/isodoc/blocks_spec.rb +618 -0
- data/spec/isodoc/lists_spec.rb +227 -0
- data/spec/isodoc/section_spec.rb +419 -0
- data/spec/isodoc/table_spec.rb +135 -0
- data/spec/isodoc/xref_spec.rb +1073 -0
- data/spec/spec_helper.rb +26 -0
- metadata +17 -6
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
require "simplecov"
|
2
|
+
SimpleCov.start do
|
3
|
+
add_filter "/spec/"
|
4
|
+
end
|
5
|
+
|
6
|
+
require "bundler/setup"
|
7
|
+
require "isodoc"
|
8
|
+
require "rspec/matchers"
|
9
|
+
require "equivalent-xml"
|
10
|
+
|
11
|
+
RSpec.configure do |config|
|
12
|
+
# Enable flags like --only-failures and --next-failure
|
13
|
+
config.example_status_persistence_file_path = ".rspec_status"
|
14
|
+
|
15
|
+
# Disable RSpec exposing methods globally on `Module` and `main`
|
16
|
+
config.disable_monkey_patching!
|
17
|
+
|
18
|
+
config.expect_with :rspec do |c|
|
19
|
+
c.syntax = :expect
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def strip_guid(x)
|
24
|
+
x.gsub(%r{ id="_[^"]+"}, ' id="_"').gsub(%r{ target="_[^"]+"}, ' target="_"')
|
25
|
+
end
|
26
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isodoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciimath
|
@@ -70,16 +70,16 @@ dependencies:
|
|
70
70
|
name: nokogiri
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: '0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: ruby-xslt
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -308,11 +308,16 @@ files:
|
|
308
308
|
- ".rubocop.yml"
|
309
309
|
- Gemfile
|
310
310
|
- README.adoc
|
311
|
+
- bin/rspec
|
311
312
|
- isodoc.gemspec
|
312
313
|
- lib/isodoc.rb
|
313
314
|
- lib/isodoc/blocks.rb
|
314
315
|
- lib/isodoc/cleanup.rb
|
315
316
|
- lib/isodoc/html.rb
|
317
|
+
- lib/isodoc/i18n-en.yaml
|
318
|
+
- lib/isodoc/i18n-fr.yaml
|
319
|
+
- lib/isodoc/i18n-zh-Hans.yaml
|
320
|
+
- lib/isodoc/i18n.rb
|
316
321
|
- lib/isodoc/inline.rb
|
317
322
|
- lib/isodoc/iso2wordhtml.rb
|
318
323
|
- lib/isodoc/lists.rb
|
@@ -326,6 +331,12 @@ files:
|
|
326
331
|
- lib/isodoc/utils.rb
|
327
332
|
- lib/isodoc/version.rb
|
328
333
|
- lib/isodoc/xref_gen.rb
|
334
|
+
- spec/isodoc/blocks_spec.rb
|
335
|
+
- spec/isodoc/lists_spec.rb
|
336
|
+
- spec/isodoc/section_spec.rb
|
337
|
+
- spec/isodoc/table_spec.rb
|
338
|
+
- spec/isodoc/xref_spec.rb
|
339
|
+
- spec/spec_helper.rb
|
329
340
|
homepage: https://github.com/riboseinc/isodoc
|
330
341
|
licenses:
|
331
342
|
- MIT
|