metanorma-ieee 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,151 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
3
+ <include href="biblio-standoc.rng">
4
+ <define name="DocumentType">
5
+ <choice>
6
+ <value>guide</value>
7
+ <value>recommended-practice</value>
8
+ <value>standard</value>
9
+ <value>whitepaper</value>
10
+ <value>redline</value>
11
+ <value>other</value>
12
+ </choice>
13
+ </define>
14
+ <define name="stage">
15
+ <element name="stage">
16
+ <choice>
17
+ <value>draft</value>
18
+ <value>approved</value>
19
+ <value>superseded</value>
20
+ <value>withdrawn</value>
21
+ </choice>
22
+ </element>
23
+ </define>
24
+ <define name="editorialgroup">
25
+ <element name="editorialgroup">
26
+ <optional>
27
+ <ref name="society"/>
28
+ </optional>
29
+ <optional>
30
+ <ref name="balloting-group"/>
31
+ </optional>
32
+ <optional>
33
+ <ref name="working-group"/>
34
+ </optional>
35
+ <oneOrMore>
36
+ <ref name="committee"/>
37
+ </oneOrMore>
38
+ </element>
39
+ </define>
40
+ <define name="DocumentSubtype">
41
+ <choice>
42
+ <value>amendment</value>
43
+ <value>corrigendum</value>
44
+ <value>erratum</value>
45
+ </choice>
46
+ </define>
47
+ <define name="BibDataExtensionType">
48
+ <optional>
49
+ <attribute name="schema-version"/>
50
+ </optional>
51
+ <optional>
52
+ <ref name="doctype"/>
53
+ </optional>
54
+ <optional>
55
+ <ref name="docsubtype"/>
56
+ </optional>
57
+ <optional>
58
+ <ref name="trialuse"/>
59
+ </optional>
60
+ <optional>
61
+ <ref name="editorialgroup"/>
62
+ </optional>
63
+ <zeroOrMore>
64
+ <ref name="ics"/>
65
+ </zeroOrMore>
66
+ <optional>
67
+ <ref name="standard_status"/>
68
+ </optional>
69
+ <optional>
70
+ <ref name="standard_modified"/>
71
+ </optional>
72
+ <optional>
73
+ <ref name="pubstatus"/>
74
+ </optional>
75
+ <optional>
76
+ <ref name="holdstatus"/>
77
+ </optional>
78
+ </define>
79
+ </include>
80
+ <define name="standard_status">
81
+ <element name="standard_status">
82
+ <choice>
83
+ <value>Inactive</value>
84
+ <value>Active</value>
85
+ <value>Superseded</value>
86
+ </choice>
87
+ </element>
88
+ </define>
89
+ <define name="standard_modified">
90
+ <element name="standard_modified">
91
+ <choice>
92
+ <value>Draft</value>
93
+ <value>Withdrawn</value>
94
+ <value>Superseded</value>
95
+ <value>Approved</value>
96
+ <value>Reserved</value>
97
+ <value>Redline</value>
98
+ </choice>
99
+ </element>
100
+ </define>
101
+ <define name="pubstatus">
102
+ <element name="pubstatus">
103
+ <choice>
104
+ <value>Active</value>
105
+ <value>Inactive</value>
106
+ </choice>
107
+ </element>
108
+ </define>
109
+ <define name="holdstatus">
110
+ <element name="holdstatus">
111
+ <choice>
112
+ <value>Hold</value>
113
+ <value>Publish</value>
114
+ </choice>
115
+ </element>
116
+ </define>
117
+ <define name="BibliographicDateType" combine="choice">
118
+ <value>feedback-ended</value>
119
+ </define>
120
+ <define name="trialuse">
121
+ <element name="trial-use">
122
+ <data type="boolean"/>
123
+ </element>
124
+ </define>
125
+ <define name="balloting-group">
126
+ <element name="balloting-group">
127
+ <attribute name="type">
128
+ <choice>
129
+ <value>individual</value>
130
+ <value>entity</value>
131
+ </choice>
132
+ </attribute>
133
+ <text/>
134
+ </element>
135
+ </define>
136
+ <define name="working-group">
137
+ <element name="working-group">
138
+ <text/>
139
+ </element>
140
+ </define>
141
+ <define name="committee">
142
+ <element name="committee">
143
+ <text/>
144
+ </element>
145
+ </define>
146
+ <define name="society">
147
+ <element name="society">
148
+ <text/>
149
+ </element>
150
+ </define>
151
+ </grammar>
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module IEEE
3
- VERSION = "0.1.0".freeze
3
+ VERSION = "0.1.2".freeze
4
4
  end
5
5
  end
@@ -7,9 +7,9 @@ extenttemplate:
7
7
  template:
8
8
  # skip authoritative_identifier, it is inserted in front of formattedref within metanorma
9
9
  standard: "{{ title }}."
10
- techreport: standard
11
10
  article: "{{creatornames}}, “{{title}},” <em>{{ series }}</em>, {{ extent }}, {{ date }}, {{ labels['viewed'] }}_{{date_accessed}}, {{ uri }} ."
12
11
  book: "{{creatornames}}, <em>{{title}}</em>, {{ edition }}, {{place}}: {{publisher}}, {{date}}, {{ labels['viewed'] }}_{{date_accessed}}, {{ uri }} ."
12
+ techreport: book
13
13
  booklet: book
14
14
  manual: book
15
15
  proceedings: book
@@ -17,12 +17,13 @@ Gem::Specification.new do |spec|
17
17
  spec.license = "BSD-2-Clause"
18
18
 
19
19
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
20
- f.match(%r{^(test|spec|features)/})
20
+ f.match(%r{^(test|spec|features|bin|.github)/}) \
21
+ || f.match(%r{Rakefile|bin/rspec})
21
22
  end
22
23
  spec.bindir = "exe"
23
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
25
  spec.require_paths = ["lib"]
25
- spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
26
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
26
27
 
27
28
  spec.add_dependency "metanorma-standoc", "~> 2.2.4"
28
29
  spec.add_dependency "mnconvert", "~> 1.20"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-ieee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-10 00:00:00.000000000 Z
11
+ date: 2022-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc
@@ -215,19 +215,12 @@ executables: []
215
215
  extensions: []
216
216
  extra_rdoc_files: []
217
217
  files:
218
- - ".github/workflows/rake.yml"
219
- - ".github/workflows/release.yml"
220
218
  - ".hound.yml"
221
219
  - ".rubocop.yml"
222
220
  - CODE_OF_CONDUCT.md
223
221
  - Gemfile
224
- - Gemfile.devel
225
222
  - LICENSE
226
223
  - README.adoc
227
- - Rakefile
228
- - bin/console
229
- - bin/rspec
230
- - bin/setup
231
224
  - lib/html2doc/ieee.rb
232
225
  - lib/html2doc/ieee/lists.rb
233
226
  - lib/html2doc/ieee/notes.rb
@@ -267,6 +260,7 @@ files:
267
260
  - lib/metanorma-ieee.rb
268
261
  - lib/metanorma/ieee.rb
269
262
  - lib/metanorma/ieee/basicdoc.rng
263
+ - lib/metanorma/ieee/biblio-standoc.rng
270
264
  - lib/metanorma/ieee/biblio.rng
271
265
  - lib/metanorma/ieee/boilerplate.xml
272
266
  - lib/metanorma/ieee/cleanup.rb
@@ -276,6 +270,7 @@ files:
276
270
  - lib/metanorma/ieee/ieee.rng
277
271
  - lib/metanorma/ieee/isodoc.rng
278
272
  - lib/metanorma/ieee/processor.rb
273
+ - lib/metanorma/ieee/relaton-ieee.rng
279
274
  - lib/metanorma/ieee/reqt.rng
280
275
  - lib/metanorma/ieee/term_lookup_cleanup.rb
281
276
  - lib/metanorma/ieee/validate.rb
@@ -297,14 +292,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
297
292
  requirements:
298
293
  - - ">="
299
294
  - !ruby/object:Gem::Version
300
- version: 2.5.0
295
+ version: 2.7.0
301
296
  required_rubygems_version: !ruby/object:Gem::Requirement
302
297
  requirements:
303
298
  - - ">="
304
299
  - !ruby/object:Gem::Version
305
300
  version: '0'
306
301
  requirements: []
307
- rubygems_version: 3.1.6
302
+ rubygems_version: 3.3.7
308
303
  signing_key:
309
304
  specification_version: 4
310
305
  summary: Metanorma for the IEEE
@@ -1,15 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- name: rake
4
-
5
- on:
6
- push:
7
- branches: [ master, main ]
8
- tags: [ v* ]
9
- pull_request:
10
-
11
- jobs:
12
- notify:
13
- uses: metanorma/ci/.github/workflows/mn-processor-rake.yml@main
14
- secrets:
15
- pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
@@ -1,24 +0,0 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
3
- name: release
4
-
5
- on:
6
- workflow_dispatch:
7
- inputs:
8
- next_version:
9
- description: |
10
- Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
11
- required: true
12
- default: 'skip'
13
- push:
14
- tags: [ v* ]
15
-
16
- jobs:
17
- release:
18
- uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
19
- with:
20
- next_version: ${{ github.event.inputs.next_version }}
21
- secrets:
22
- rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
23
- pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
24
-
data/Gemfile.devel DELETED
@@ -1 +0,0 @@
1
- gem "isodoc", git: "https://github.com/metanorma/isodoc", branch: "main"
data/Rakefile DELETED
@@ -1,8 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
- require "isodoc/gem_tasks"
4
-
5
- IsoDoc::GemTasks.install
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- task default: :spec
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "metanorma/itu"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/rspec DELETED
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- # This file was generated by Bundler.
4
- #
5
- # The application 'rspec' is installed as part of a gem, and
6
- # this file is here to facilitate running it.
7
- #
8
-
9
- require "pathname"
10
- ENV["BUNDLE_GEMFILE"] ||= File.expand_path(
11
- "../../Gemfile", Pathname.new(__FILE__).realpath
12
- )
13
-
14
- require "rubygems"
15
- require "bundler/setup"
16
-
17
- load Gem.bin_path("rspec-core", "rspec")
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here