metanorma-ogc 0.2.3 → 0.2.4

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: adb99ec7e996fe95632d35e0e8e4a2f490113d2ea0a0e0fa76438eafcd26ff5b
4
- data.tar.gz: a70a53d02ee3e2c3fd61e6408f2673802278893524e94acb28d98decf9d994dc
3
+ metadata.gz: ae87c7b1839e2b66fac1f4ed27d2f18453a0668c6f3740efa631f80fe1f19353
4
+ data.tar.gz: bcc9466ed85b990bf5e42d836b34fff1bc67131569aec524d41e0fe1f3d1eeab
5
5
  SHA512:
6
- metadata.gz: e9106c6d6fe1f73c00d8f70237efa239188eeff31d231f0f40523235ec7e0597dcfb5217745afa03345ef863ef80727271bb50e880619234801e7d1a57ca2822
7
- data.tar.gz: 4224fc98981355bd38fcf626113b50b64e552e0bb1bff6bb6e4b1f2e77296348e06d57b59ebce79de9514a04794d8c82aaabfe4dfdb02f1bcf881ec65444c7a5
6
+ metadata.gz: 5368cdbe881df6969f6074a7894a777e041a0438077ca134e49b91829f211cd78369a95c98bf3f88521cd9cd6fa6563988b4a57193da6151e8adfaa162515898
7
+ data.tar.gz: 899ef9b976bef191c36a6687f2884f8e78e6fa60cd7ba882d25fe8dfeb4f8318fd0d0324c3b8c609098022ae4a75d76d455d9d339c74ab37d276d980560afaac
@@ -0,0 +1,34 @@
1
+ # Auto-generated !!! Do not edit it manually
2
+ # use ci-master https://github.com/metanorma/metanorma-build-scripts
3
+ name: macos
4
+
5
+ on: [push]
6
+
7
+ jobs:
8
+ test-macos:
9
+ name: Test on Ruby ${{ matrix.ruby }} macOS
10
+ runs-on: macos-latest
11
+ strategy:
12
+ matrix:
13
+ ruby: [ '2.6', '2.5', '2.4' ]
14
+ steps:
15
+ - uses: actions/checkout@master
16
+ - name: Use Ruby
17
+ uses: actions/setup-ruby@v1
18
+ with:
19
+ ruby-version: ${{ matrix.ruby }}
20
+ architecture: 'x64'
21
+ - name: Update gems
22
+ run: |
23
+ sudo gem install bundler -v "~> 2" --force
24
+ bundle install --jobs 4 --retry 3
25
+ - name: Use Node
26
+ uses: actions/setup-node@v1
27
+ with:
28
+ node-version: '8'
29
+ - name: Install Puppeteer
30
+ run: |
31
+ npm install -g puppeteer
32
+ - name: Run specs
33
+ run: |
34
+ bundle exec rake
@@ -0,0 +1,34 @@
1
+ # Auto-generated !!! Do not edit it manually
2
+ # use ci-master https://github.com/metanorma/metanorma-build-scripts
3
+ name: ubuntu
4
+
5
+ on: [push]
6
+
7
+ jobs:
8
+ test-linux:
9
+ name: Test on Ruby ${{ matrix.ruby }} Ubuntu
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ matrix:
13
+ ruby: [ '2.6', '2.5', '2.4' ]
14
+ steps:
15
+ - uses: actions/checkout@master
16
+ - name: Use Ruby
17
+ uses: actions/setup-ruby@v1
18
+ with:
19
+ ruby-version: ${{ matrix.ruby }}
20
+ architecture: 'x64'
21
+ - name: Update gems
22
+ run: |
23
+ gem install bundler -v "~> 2"
24
+ bundle install --jobs 4 --retry 3
25
+ - name: Use Node
26
+ uses: actions/setup-node@v1
27
+ with:
28
+ node-version: '8'
29
+ - name: Install Puppeteer
30
+ run: |
31
+ npm install -g puppeteer
32
+ - name: Run specs
33
+ run: |
34
+ bundle exec rake
@@ -0,0 +1,37 @@
1
+ # Auto-generated !!! Do not edit it manually
2
+ # use ci-master https://github.com/metanorma/metanorma-build-scripts
3
+ name: windows
4
+
5
+ on: [push]
6
+
7
+ jobs:
8
+ test-windows:
9
+ name: Test on Ruby ${{ matrix.ruby }} Windows
10
+ runs-on: windows-latest
11
+ strategy:
12
+ matrix:
13
+ ruby: [ '2.6', '2.5', '2.4' ]
14
+ steps:
15
+ - uses: actions/checkout@master
16
+ - name: Use Ruby
17
+ uses: actions/setup-ruby@v1
18
+ with:
19
+ ruby-version: ${{ matrix.ruby }}
20
+ architecture: 'x64'
21
+ - name: Update gems
22
+ shell: pwsh
23
+ run: |
24
+ gem install bundler -v "~> 2"
25
+ bundle config --local path vendor/bundle
26
+ bundle update
27
+ bundle install --jobs 4 --retry 3
28
+ - name: Use Node
29
+ uses: actions/setup-node@v1
30
+ with:
31
+ node-version: '8'
32
+ - name: Install Puppeteer
33
+ run: |
34
+ npm install -g puppeteer
35
+ - name: Run specs
36
+ run: |
37
+ bundle exec rake
@@ -443,6 +443,9 @@
443
443
  <optional>
444
444
  <attribute name="subsequence"/>
445
445
  </optional>
446
+ <optional>
447
+ <ref name="tname"/>
448
+ </optional>
446
449
  <oneOrMore>
447
450
  <choice>
448
451
  <ref name="formula"/>
@@ -103,20 +103,6 @@ module Asciidoctor
103
103
  end
104
104
  end
105
105
 
106
- def example(node)
107
- return term_example(node) if in_terms?
108
- role = node.role || node.attr("style")
109
- return requirement(node, "recommendation") if role == "recommendation"
110
- return requirement(node, "requirement") if role == "requirement"
111
- return requirement(node, "permission") if role == "permission"
112
- noko do |xml|
113
- xml.example **id_attr(node) do |ex|
114
- figure_title(node, ex)
115
- wrap_in_para(node, ex)
116
- end
117
- end.join("\n")
118
- end
119
-
120
106
  def style(n, t)
121
107
  return
122
108
  end
@@ -44,6 +44,27 @@
44
44
  </oneOrMore>
45
45
  </element>
46
46
  </define>
47
+ <define name="references">
48
+ <element name="references">
49
+ <optional>
50
+ <attribute name="id">
51
+ <data type="ID"/>
52
+ </attribute>
53
+ </optional>
54
+ <optional>
55
+ <ref name="section-title"/>
56
+ </optional>
57
+ <zeroOrMore>
58
+ <ref name="BasicBlock"/>
59
+ </zeroOrMore>
60
+ <zeroOrMore>
61
+ <ref name="bibitem"/>
62
+ <zeroOrMore>
63
+ <ref name="note"/>
64
+ </zeroOrMore>
65
+ </zeroOrMore>
66
+ </element>
67
+ </define>
47
68
  </include>
48
69
  <define name="standard-document">
49
70
  <element name="standard-document">
@@ -91,13 +91,13 @@ module IsoDoc
91
91
  end
92
92
  end
93
93
 
94
- def preface_names(clause)
94
+ def preface_names_numbered(clause)
95
95
  return if clause.nil?
96
96
  @prefacenum += 1
97
97
  @anchors[clause["id"]] =
98
98
  { label: RomanNumerals.to_roman(@prefacenum).downcase,
99
99
  level: 1, xref: preface_clause_name(clause), type: "clause" }
100
- clause.xpath(ns("./clause | ./terms | ./term | ./definitions")).
100
+ clause.xpath(ns("./clause | ./terms | ./term | ./definitions | ./references")).
101
101
  each_with_index do |c, i|
102
102
  section_names1(c, "#{@prefacenum}.#{i + 1}", 2)
103
103
  end
@@ -133,14 +133,14 @@ module IsoDoc
133
133
 
134
134
  def initial_anchor_names(d)
135
135
  @prefacenum = 0
136
- preface_names(d.at(ns("//preface/abstract")))
136
+ preface_names_numbered(d.at(ns("//preface/abstract")))
137
137
  @prefacenum += 1 if d.at(ns("//keyword"))
138
- preface_names(d.at(ns("//foreword")))
139
- preface_names(d.at(ns("//introduction")))
138
+ preface_names_numbered(d.at(ns("//foreword")))
139
+ preface_names_numbered(d.at(ns("//introduction")))
140
140
  @prefacenum += 1 if d.at(ns(SUBMITTINGORGS))
141
- preface_names(d.at(ns("//submitters")))
141
+ preface_names_numbered(d.at(ns("//submitters")))
142
142
  sequential_asset_names(d.xpath(ns("//preface/abstract | //foreword | "\
143
- "//introduction | //submitters")))
143
+ "//introduction | //submitters")))
144
144
  n = section_names(d.at(ns("//clause[title = 'Scope']")), 0, 1)
145
145
  n = section_names(d.at(ns("//clause[title = 'Conformance']")), n, 1)
146
146
  n = section_names(d.at(ns(
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Ogc
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ogc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-27 00:00:00.000000000 Z
11
+ date: 2019-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -257,17 +257,18 @@ executables: []
257
257
  extensions: []
258
258
  extra_rdoc_files: []
259
259
  files:
260
+ - ".github/workflows/macos.yml"
261
+ - ".github/workflows/ubuntu.yml"
262
+ - ".github/workflows/windows.yml"
260
263
  - ".gitignore"
261
264
  - ".hound.yml"
262
265
  - ".rubocop.yml"
263
- - ".travis.yml"
264
266
  - CODE_OF_CONDUCT.md
265
267
  - Gemfile
266
268
  - LICENSE
267
269
  - README.adoc
268
270
  - README.adoc.old
269
271
  - Rakefile
270
- - appveyor.yml
271
272
  - bin/console
272
273
  - bin/rspec
273
274
  - bin/setup
data/.travis.yml DELETED
@@ -1,22 +0,0 @@
1
- # Auto-generated !!! Do not edit it manually
2
- # use ci-master https://github.com/metanorma/metanorma-build-scripts
3
- language: ruby
4
- cache: bundler
5
- os:
6
- - linux
7
- - osx
8
- rvm:
9
- - 2.6
10
- - 2.5
11
- - 2.4
12
- - ruby-head
13
- before_install:
14
- - nvm install 8
15
- - npm install -g puppeteer
16
- - npm install
17
- - gem install bundler -v "~> 2"
18
- - bundle update
19
- matrix:
20
- allow_failures:
21
- - rvm: ruby-head
22
-
data/appveyor.yml DELETED
@@ -1,37 +0,0 @@
1
- # Auto-generated !!! Do not edit it manually
2
- # use ci-master https://github.com/metanorma/metanorma-build-scripts
3
- version: '{build}'
4
-
5
- cache:
6
- - vendor/bundle
7
-
8
- environment:
9
- matrix:
10
- - RUBY_VERSION: 26
11
- - RUBY_VERSION: 25
12
- - RUBY_VERSION: 24
13
- - RUBY_VERSION: _trunk
14
-
15
- matrix:
16
- allow_failures:
17
- - RUBY_VERSION: _trunk
18
-
19
- install:
20
- - ps: . { iwr -useb https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/appveyor.ps1 } | iex
21
- - refreshenv
22
-
23
- build_script:
24
- - set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
25
- - set GIT_TERMINAL_PROMPT=0
26
- - gem install bundler -v "~> 2"
27
- - bundle config --local path vendor/bundle
28
- - bundle update
29
- - bundle install
30
-
31
- before_test:
32
- - ruby -v
33
- - gem -v
34
- - bundle -v
35
-
36
- test_script:
37
- - bundle exec rake