metanorma-ieee 1.1.6 → 1.1.7

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: 488633c44365b65e58adb02ffe2c51ca866e89d53cf0985f5dd8778248d8ba68
4
- data.tar.gz: c05a10c895c67cd4ecec9c65dc94ab3d835f1f16c5c3ca39e8924c6985bb772a
3
+ metadata.gz: edbc1c2ec6a319e834d202c0911809cf533ef18acf4993408bc710c4c7345c80
4
+ data.tar.gz: f2c83c819e4403d4c656a2638cd1a3e64936522e6451cd0f70dd2e23fae70c45
5
5
  SHA512:
6
- metadata.gz: 00d766fd37eda2fa3c7f75b8dda2957e25cea1972d4e8bf3b27895ef9ba4172004fd491a190bb0d3e4d79779bce0a77b349dd55cc294b2b55534f6819e4b3544
7
- data.tar.gz: 0b609e3e11d97b75867ba87bba6b8dec8fbb64afe6fc3285d8d287878177aaeec34a794af14b340fd961b9c935764e00afdbee231e0f008b3945a25fbe4a136e
6
+ metadata.gz: 8d44d88f96fdb139a618f2659cb43e4d8554253da43b344a4f8210c9e6aaa968406711b903f6d7a028f7e94012045af990bf03c2a9126f94e9e43e4f859ac553
7
+ data.tar.gz: 0c7931e7442adff8c970f84ea3e2161bba759b3a4cce939ea6423818c658c056d58abe8c966ffed50cbecf3ab6ff1070b899eb32a90b007e873bc3fe29e12785
data/Gemfile CHANGED
@@ -1,11 +1,15 @@
1
1
  Encoding.default_external = Encoding::UTF_8
2
2
  Encoding.default_internal = Encoding::UTF_8
3
3
 
4
- source 'https://rubygems.org'
4
+ source "https://rubygems.org"
5
5
  git_source(:github) { |repo| "https://github.com/#{repo}" }
6
6
 
7
- gemspec
7
+ group :development, :test do
8
+ gem "rspec"
9
+ end
8
10
 
9
- if File.exist? 'Gemfile.devel'
10
- eval File.read('Gemfile.devel'), nil, 'Gemfile.devel' # rubocop:disable Security/Eval
11
+ if File.exist? "Gemfile.devel"
12
+ eval File.read("Gemfile.devel"), nil, "Gemfile.devel" # rubocop:disable Security/Eval
11
13
  end
14
+
15
+ gemspec
@@ -78,6 +78,7 @@
78
78
  <xsl:choose>
79
79
  <xsl:when test="($doctype = 'standard' or $doctype = 'guide' or $doctype = 'recommended-practice') and $stage = 'draft'">draft</xsl:when>
80
80
  <xsl:when test="($doctype = 'standard' or $doctype = 'guide' or $doctype = 'recommended-practice') and ($stage = 'published' or $stage = 'approved')">standard</xsl:when>
81
+ <xsl:when test="$doctype = 'whitepaper' and $subdoctype = 'icap'">icap-whitepaper</xsl:when>
81
82
  <xsl:otherwise><xsl:value-of select="$doctype"/></xsl:otherwise>
82
83
  </xsl:choose>
83
84
  </xsl:variable>
@@ -78,6 +78,7 @@
78
78
  <xsl:choose>
79
79
  <xsl:when test="($doctype = 'standard' or $doctype = 'guide' or $doctype = 'recommended-practice') and $stage = 'draft'">draft</xsl:when>
80
80
  <xsl:when test="($doctype = 'standard' or $doctype = 'guide' or $doctype = 'recommended-practice') and ($stage = 'published' or $stage = 'approved')">standard</xsl:when>
81
+ <xsl:when test="$doctype = 'whitepaper' and $subdoctype = 'icap'">icap-whitepaper</xsl:when>
81
82
  <xsl:otherwise><xsl:value-of select="$doctype"/></xsl:otherwise>
82
83
  </xsl:choose>
83
84
  </xsl:variable>
@@ -33,6 +33,7 @@ module Metanorma
33
33
  xml.docnumber node.attr("docnumber")
34
34
  end
35
35
 
36
+ =begin
36
37
  def metadata_publisher(node, xml)
37
38
  publishers = node.attr("publisher") || "IEEE"
38
39
  csv_split(publishers).each do |p|
@@ -44,7 +45,13 @@ module Metanorma
44
45
  end
45
46
  end
46
47
  end
48
+ =end
47
49
 
50
+ def default_publisher
51
+ "IEEE"
52
+ end
53
+
54
+ =begin
48
55
  def metadata_copyright(node, xml)
49
56
  publishers = node.attr("copyright-holder") || node.attr("publisher") ||
50
57
  "IEEE"
@@ -64,6 +71,7 @@ module Metanorma
64
71
  end
65
72
  end
66
73
  end
74
+ =end
67
75
 
68
76
  def metadata_status(node, xml)
69
77
  status = node.attr("status") || node.attr("docstage") ||
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module IEEE
3
- VERSION = "1.1.6".freeze
3
+ VERSION = "1.1.7".freeze
4
4
  end
5
5
  end
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.require_paths = ["lib"]
26
26
  spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
27
27
 
28
- spec.add_dependency "metanorma-standoc", "~> 2.6.3"
28
+ spec.add_dependency "metanorma-standoc", "~> 2.7.0"
29
29
  spec.add_dependency "mnconvert", "~> 1.20"
30
30
  #spec.add_dependency "pubid-ieee", "~> 0.1.1"
31
31
  #spec.add_dependency "pubid-iso", "~> 0.5.3"
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: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-20 00:00:00.000000000 Z
11
+ date: 2023-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metanorma-standoc
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.6.3
19
+ version: 2.7.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.6.3
26
+ version: 2.7.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mnconvert
29
29
  requirement: !ruby/object:Gem::Requirement