metanorma 0.2.11 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61d0f55a7e58ca0ac03a27ccbad7d83132165b1337f7c9739e65e2a15f876271
4
- data.tar.gz: a25169e21d2bf119b8cde0c2b09f7815d5588d91a7f11403bcfcbb20465f7dd8
3
+ metadata.gz: 47248f3e618ca8b5c9677c6daebb7d31ef3beed3d8c5883fdd4905c4d5d277fe
4
+ data.tar.gz: 8da904dafb7e16cd35598f2085a3c7d1d2963cda1a329c21cd544e6aa4c84461
5
5
  SHA512:
6
- metadata.gz: 0ca597388f9617f570d041aa00293955f2aa568b904c532ee587c87be15fb0d925ba46a29b1d0ac0736aa59ab50e1cc0daf28eb246163e817ace9ce89cfda4da
7
- data.tar.gz: f3180748bf843e751c086b60b41d9abbdf1697aab04b6c342002489d792d5450cbc2f129e180352dbcf4267df09c9f90a57ec373f47b8faf89aca12f6380fcb8
6
+ metadata.gz: de5d7128f0c113ffc051b296696063366cd67ec1fe57a9ec96a4e6003b1bfc434b355300849fc729b9d032650e359ef90079f50fd70726510d871e8a0c68b5c1
7
+ data.tar.gz: 28da31cf16f021875ef8b171dc0d80b9c5b82d90ebc6d27632a48fa5dbcf6cc1e252361bd449691496bd6f237216704c4749f36bd8d1628e676ba2acba87360a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- metanorma (0.2.11)
4
+ metanorma (0.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -4,14 +4,14 @@ module Metanorma
4
4
 
5
5
  class Asciidoc < Base
6
6
 
7
- def process(file, type)
7
+ def process(file, filename, type)
8
8
  Asciidoctor.convert(
9
9
  file,
10
10
  to_file: false,
11
11
  safe: :safe,
12
12
  backend: type,
13
13
  header_footer: true,
14
- attributes: %w(nodoc stem xrefstyle=short)
14
+ attributes: ["nodoc", "stem", "xrefstyle=short", "docfile=#{filename}"]
15
15
  )
16
16
  end
17
17
 
@@ -4,7 +4,7 @@ module Metanorma
4
4
 
5
5
  class Base
6
6
 
7
- def process(file, type)
7
+ def process(file, filename, type)
8
8
  raise "This is an abstract class"
9
9
  end
10
10
 
@@ -17,7 +17,7 @@ module Metanorma
17
17
  }
18
18
  end
19
19
 
20
- def input_to_isodoc(file)
20
+ def input_to_isodoc(file, filename)
21
21
  raise "This is an abstract class!"
22
22
  end
23
23
 
@@ -1,3 +1,3 @@
1
1
  module Metanorma
2
- VERSION = "0.2.11"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.3.0
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-10-17 00:00:00.000000000 Z
11
+ date: 2018-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler