relaton-itu 0.9.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,50 +5,10 @@
5
5
  we cannot have a new default namespace: we will end up with a grammar with two different
6
6
  namespaces, one for isostandard and one for csand additions. And we do not want that.
7
7
  -->
8
- <include href="isostandard.rng">
8
+ <include href="isodoc.rng">
9
9
  <start>
10
10
  <ref name="itu"/>
11
11
  </start>
12
- <define name="figure">
13
- <element name="figure">
14
- <attribute name="id">
15
- <data type="ID"/>
16
- </attribute>
17
- <optional>
18
- <ref name="tname"/>
19
- </optional>
20
- <choice>
21
- <ref name="image"/>
22
- <ref name="pre"/>
23
- <oneOrMore>
24
- <ref name="subfigure"/>
25
- </oneOrMore>
26
- </choice>
27
- <zeroOrMore>
28
- <ref name="fn"/>
29
- </zeroOrMore>
30
- <optional>
31
- <ref name="dl"/>
32
- </optional>
33
- <zeroOrMore>
34
- <ref name="note"/>
35
- </zeroOrMore>
36
- </element>
37
- </define>
38
- <define name="subfigure">
39
- <element name="figure">
40
- <attribute name="id">
41
- <data type="ID"/>
42
- </attribute>
43
- <optional>
44
- <ref name="tname"/>
45
- </optional>
46
- <choice>
47
- <ref name="image"/>
48
- <ref name="pre"/>
49
- </choice>
50
- </element>
51
- </define>
52
12
  <define name="ol">
53
13
  <element name="ol">
54
14
  <attribute name="id">
@@ -97,11 +57,6 @@
97
57
  </optional>
98
58
  </element>
99
59
  </define>
100
- <define name="workgroup">
101
- <element name="workgroup">
102
- <ref name="ItuGroup"/>
103
- </element>
104
- </define>
105
60
  <define name="structuredidentifier">
106
61
  <element name="structuredidentifier">
107
62
  <ref name="bureau"/>
@@ -147,13 +102,13 @@
147
102
  </oneOrMore>
148
103
  </element>
149
104
  </define>
150
- <define name="TextElement" combine="choice">
151
- <choice>
152
- <ref name="add"/>
153
- <ref name="del"/>
154
- </choice>
155
- </define>
156
105
  </include>
106
+ <define name="TextElement" combine="choice">
107
+ <choice>
108
+ <ref name="add"/>
109
+ <ref name="del"/>
110
+ </choice>
111
+ </define>
157
112
  <define name="add">
158
113
  <element name="add">
159
114
  <choice>
@@ -282,6 +237,11 @@
282
237
  <data type="gYear"/>
283
238
  </element>
284
239
  </define>
240
+ <define name="workgroup">
241
+ <element name="workgroup">
242
+ <ref name="ItuGroup"/>
243
+ </element>
244
+ </define>
285
245
  <define name="itu">
286
246
  <element name="itu-standard">
287
247
  <ref name="bibdata"/>
@@ -66,12 +66,12 @@ module RelatonItu
66
66
  nil
67
67
  end
68
68
 
69
- def fetch_pages(s, n)
70
- workers = RelatonBib::WorkersPool.new n
69
+ def fetch_pages(hits, threads)
70
+ workers = RelatonBib::WorkersPool.new threads
71
71
  workers.worker { |w| { i: w[:i], hit: w[:hit].fetch } }
72
- s.each_with_index { |hit, i| workers << { i: i, hit: hit } }
72
+ hits.each_with_index { |hit, i| workers << { i: i, hit: hit } }
73
73
  workers.end
74
- workers.result.sort { |x, y| x[:i] <=> y[:i] }.map { |x| x[:hit] }
74
+ workers.result.sort_by { |a| a[:i] }.map { |x| x[:hit] }
75
75
  end
76
76
 
77
77
  def search_filter(code)
@@ -1,3 +1,3 @@
1
1
  module RelatonItu
2
- VERSION = "0.9.0".freeze
2
+ VERSION = "1.0.0".freeze
3
3
  end
@@ -37,5 +37,5 @@ Gem::Specification.new do |spec|
37
37
  spec.add_development_dependency "vcr", "~> 5.0.0"
38
38
  spec.add_development_dependency "webmock"
39
39
 
40
- spec.add_dependency "relaton-iso-bib", "~> 0.9.0"
40
+ spec.add_dependency "relaton-iso-bib", "~> 1.0.0"
41
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-itu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 1.0.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-03-30 00:00:00.000000000 Z
11
+ date: 2020-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debase
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 0.9.0
159
+ version: 1.0.0
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 0.9.0
166
+ version: 1.0.0
167
167
  description: 'RelatonItu: retrieve ITU Standards for bibliographic use using the BibliographicItem
168
168
  model'
169
169
  email: