metanorma-iso 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +29 -363
- data/lib/asciidoctor/iso/base.rb +3 -2
- data/lib/asciidoctor/iso/biblio.rng +12 -0
- data/lib/asciidoctor/iso/isostandard.rng +10 -5
- data/lib/asciidoctor/iso/validate.rb +5 -3
- data/lib/asciidoctor/iso/validate_section.rb +1 -1
- data/lib/isodoc/iso/html/isodoc.scss +1 -1
- data/lib/isodoc/iso/html/style-human.scss +8 -8
- data/lib/isodoc/iso/html/style-iso.scss +7 -7
- data/lib/isodoc/iso/html/wordstyle.scss +67 -0
- data/lib/metanorma/iso/version.rb +1 -1
- data/spec/asciidoctor-iso/base_spec.rb +23 -9
- data/spec/asciidoctor-iso/isobib_cache_spec.rb +45 -45
- data/spec/asciidoctor-iso/refs_spec.rb +1 -1
- data/spec/asciidoctor-iso/validate_spec.rb +14 -69
- data/spec/assets/iso.doc +8 -8
- data/spec/examples/rice.adoc +2 -1
- data/spec/examples/rice.preview.html +8 -8
- data/spec/isodoc/iso_spec.rb +6 -5
- data/spec/isodoc/postproc_spec.rb +25 -25
- data/spec/metanorma/processor_spec.rb +2 -1
- data/spec/spec_helper.rb +4 -3
- metadata +2 -2
data/spec/spec_helper.rb
CHANGED
@@ -10,6 +10,7 @@ require "rspec/matchers"
|
|
10
10
|
require "equivalent-xml"
|
11
11
|
require "metanorma"
|
12
12
|
require "metanorma/iso"
|
13
|
+
require "iev"
|
13
14
|
|
14
15
|
RSpec.configure do |config|
|
15
16
|
# Enable flags like --only-failures and --next-failure
|
@@ -215,11 +216,11 @@ def get_xml(search, code, opts)
|
|
215
216
|
end
|
216
217
|
|
217
218
|
def mock_open_uri(code)
|
218
|
-
expect(OpenURI).to receive(:open_uri).and_wrap_original do |m, *args|
|
219
|
-
|
219
|
+
#expect(OpenURI).to receive(:open_uri).and_wrap_original do |m, *args|
|
220
|
+
expect(Iev).to receive(:get).with(code, "en") do |m, *args|
|
220
221
|
file = "spec/examples/#{code.tr('-', '_')}.html"
|
221
222
|
File.write file, m.call(*args).read unless File.exist? file
|
222
223
|
File.read file
|
223
|
-
end
|
224
|
+
end.at_least :once
|
224
225
|
end
|
225
226
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-iso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
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-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciidoctor
|