relaton-ieee 1.4.0 → 1.7.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: aaf06375726fbbc3787de633d801af3b3d0b9a5eb034db2bcfee5a73f82d9f9e
4
- data.tar.gz: 941f57105265f5c195a031ba2514299ec50f09439f35f00a2801543e9e906691
3
+ metadata.gz: 446b15d222e45953544bb1c49b9811651c13246cfdac2c60c4bb8a761b86adcf
4
+ data.tar.gz: deadb07888412133d01574f35d17131f4fbebf8e53eae341e5384c85fce9afac
5
5
  SHA512:
6
- metadata.gz: 2e00b76917329c4cfc1d2d5952cefc7776d5c33540087c84e20dddd7dec55ffb2e1ce48e2ab9289e1a0543ef3ad39db6a0ba399aeef93fc32536e4756906271b
7
- data.tar.gz: 0acfdc0b3f0bab3a84605520761db7b21dc8167ea1b0c27255f4362f323593ccc82f95978ecbdb99b693050bab008aa0782c14e4f3203471451ac17e2fd93edc
6
+ metadata.gz: e685ed12ac545f7dc2da6f763e0bb49a5a933b1e853d79d433882e0d79e8bd9bb11317c7511743a9d0326c2c1c94ca4a289edef9eb50bef4f51077e0a59a2880
7
+ data.tar.gz: 6882a387ffed1d11ea5b3bb593691e1744a426365dde5548fe6e0aa15363cd6b112ee4b91e73dd50516ed0d7429ff3c9b5de55edfa08073fa613b17f12b6d4fc
@@ -32,6 +32,8 @@ jobs:
32
32
  - name: Update gems
33
33
  run: |
34
34
  sudo gem install bundler --force
35
+ ruby -v | grep 2.5 && bundle config set build.debase --with-cflags="-Wno-error=implicit-function-declaration"
36
+ ruby -v | grep 2.5 && bundle config set build.ruby-debug-ide --with-cflags="-Wno-error=implicit-function-declaration"
35
37
  bundle install --jobs 4 --retry 3
36
38
  - name: Run specs
37
39
  run: |
@@ -24,6 +24,14 @@
24
24
  <start>
25
25
  <ref name="standard-document"/>
26
26
  </start>
27
+ <define name="doctype">
28
+ <element name="doctype">
29
+ <optional>
30
+ <attribute name="abbreviation"/>
31
+ </optional>
32
+ <ref name="DocumentType"/>
33
+ </element>
34
+ </define>
27
35
  <define name="hyperlink">
28
36
  <element name="link">
29
37
  <attribute name="target">
@@ -42,7 +50,6 @@
42
50
  </define>
43
51
  <define name="xref">
44
52
  <element name="xref">
45
- <!-- attribute target { xsd:IDREF }, -->
46
53
  <attribute name="target">
47
54
  <data type="string">
48
55
  <param name="pattern">\i\c*|\c+#\c+</param>
@@ -142,6 +149,11 @@
142
149
  <data type="boolean"/>
143
150
  </attribute>
144
151
  </optional>
152
+ <optional>
153
+ <attribute name="key">
154
+ <data type="boolean"/>
155
+ </attribute>
156
+ </optional>
145
157
  <oneOrMore>
146
158
  <ref name="dt"/>
147
159
  <ref name="dd"/>
@@ -864,6 +876,13 @@
864
876
  </define>
865
877
  <define name="standard-document">
866
878
  <element name="standard-document">
879
+ <attribute name="version"/>
880
+ <attribute name="type">
881
+ <choice>
882
+ <value>semantic</value>
883
+ <value>presentation</value>
884
+ </choice>
885
+ </attribute>
867
886
  <ref name="bibdata"/>
868
887
  <optional>
869
888
  <ref name="boilerplate"/>
@@ -1158,49 +1177,7 @@
1158
1177
  </define>
1159
1178
  <define name="annex">
1160
1179
  <element name="annex">
1161
- <optional>
1162
- <attribute name="id">
1163
- <data type="ID"/>
1164
- </attribute>
1165
- </optional>
1166
- <optional>
1167
- <attribute name="language"/>
1168
- </optional>
1169
- <optional>
1170
- <attribute name="script"/>
1171
- </optional>
1172
- <optional>
1173
- <attribute name="inline-header">
1174
- <data type="boolean"/>
1175
- </attribute>
1176
- </optional>
1177
- <attribute name="obligation">
1178
- <choice>
1179
- <value>normative</value>
1180
- <value>informative</value>
1181
- </choice>
1182
- </attribute>
1183
- <optional>
1184
- <ref name="section-title"/>
1185
- </optional>
1186
- <group>
1187
- <group>
1188
- <zeroOrMore>
1189
- <ref name="BasicBlock"/>
1190
- </zeroOrMore>
1191
- <zeroOrMore>
1192
- <ref name="note"/>
1193
- </zeroOrMore>
1194
- </group>
1195
- <zeroOrMore>
1196
- <choice>
1197
- <ref name="annex-subsection"/>
1198
- <ref name="terms"/>
1199
- <ref name="definitions"/>
1200
- <ref name="references"/>
1201
- </choice>
1202
- </zeroOrMore>
1203
- </group>
1180
+ <ref name="Annex-Section"/>
1204
1181
  </element>
1205
1182
  </define>
1206
1183
  <define name="terms">
@@ -23,7 +23,7 @@ module RelatonIeee
23
23
  json = JSON.parse resp_json["message"]
24
24
  @array = json["response"]["searchResults"]["resultsMapList"]
25
25
  .reduce([]) do |s, hit|
26
- /^(?:\w+\s)?(?<id>\d+)-(?<year>\d{4})/ =~ hit["record"]["recordTitle"]
26
+ /^(?:\w+\s)?(?<id>[^-\/]+)(-(?<year>\d{4}))?/ =~ hit["record"]["recordTitle"]
27
27
  next s unless id && code =~ %r{^#{id}}
28
28
 
29
29
  s << Hit.new(hit["record"].merge(code: id, year: year.to_i), self)
@@ -9,10 +9,13 @@ module RelatonIeee
9
9
  super
10
10
  end
11
11
 
12
- # @param builder [Nokogiri::XML::Bilder]
13
- # @parma bibdata [TrueClass, FalseClass, NilClass]
14
- def to_xml(builder = nil, **opts)
15
- super do |bldr|
12
+ # @param opts [Hash]
13
+ # @option opts [Nokogiri::XML::Builder] :builder XML builder
14
+ # @option opts [Boolean] :bibdata
15
+ # @option opts [String] :lang language
16
+ # @return [String] XML
17
+ def to_xml(**opts)
18
+ super **opts do |bldr|
16
19
  if opts[:bibdata] && committee.any?
17
20
  bldr.ext do |b|
18
21
  committee.each { |c| c.to_xml b }
@@ -1,3 +1,3 @@
1
1
  module RelatonIeee
2
- VERSION = "1.4.0".freeze
2
+ VERSION = "1.7.0".freeze
3
3
  end
@@ -43,5 +43,5 @@ Gem::Specification.new do |spec|
43
43
  spec.add_development_dependency "webmock"
44
44
 
45
45
  spec.add_dependency "faraday", "~> 1.0.0"
46
- spec.add_dependency "relaton-bib", "~> 1.4.0"
46
+ spec.add_dependency "relaton-bib", "~> 1.7.0"
47
47
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-ieee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-18 00:00:00.000000000 Z
11
+ date: 2020-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debase
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 1.4.0
145
+ version: 1.7.0
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 1.4.0
152
+ version: 1.7.0
153
153
  description: 'RelatonIeee: retrieve IEEE Standards for bibliographic use using the
154
154
  IeeeBibliographicItem model'
155
155
  email: