relaton-iec 0.10.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ubuntu.yml +1 -0
- data/.rubocop.yml +2 -2
- data/README.adoc +1 -1
- data/grammars/basicdoc.rng +986 -0
- data/grammars/biblio.rng +1237 -0
- data/grammars/iec.rng +43 -0
- data/grammars/isodoc.rng +1504 -0
- data/{grammars → grammars/isostandard.rng} +148 -472
- data/grammars/reqt.rng +165 -0
- data/lib/relaton_iec.rb +16 -9
- data/lib/relaton_iec/hash_converter.rb +14 -0
- data/lib/relaton_iec/hit.rb +1 -1
- data/lib/relaton_iec/hit_collection.rb +0 -1
- data/lib/relaton_iec/iec_bibliographic_item.rb +9 -0
- data/lib/relaton_iec/iec_bibliography.rb +3 -8
- data/lib/relaton_iec/processor.rb +7 -7
- data/lib/relaton_iec/scrapper.rb +35 -166
- data/lib/relaton_iec/version.rb +1 -1
- data/lib/relaton_iec/xml_parser.rb +14 -0
- data/relaton_iec.gemspec +6 -5
- metadata +29 -7
data/lib/relaton_iec/version.rb
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
module RelatonIec
|
2
|
+
class XMLParser < RelatonIsoBib::XMLParser
|
3
|
+
class << self
|
4
|
+
private
|
5
|
+
|
6
|
+
# override RelatonIsoBib::IsoBibliographicItem.bib_item method
|
7
|
+
# @param item_hash [Hash]
|
8
|
+
# @return [RelatonIec::IecBibliographicItem]
|
9
|
+
def bib_item(item_hash)
|
10
|
+
IecBibliographicItem.new item_hash
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/relaton_iec.gemspec
CHANGED
@@ -8,10 +8,10 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.authors = ["Ribose Inc."]
|
9
9
|
spec.email = ["open.source@ribose.com"]
|
10
10
|
|
11
|
-
spec.summary = "RelatonIec: retrieve IEC Standards for bibliographic
|
12
|
-
"using the
|
13
|
-
spec.description = "RelatonIec: retrieve IEC Standards for bibliographic
|
14
|
-
"using the
|
11
|
+
spec.summary = "RelatonIec: retrieve IEC Standards for bibliographic "\
|
12
|
+
"use using the IecBibliographicItem model"
|
13
|
+
spec.description = "RelatonIec: retrieve IEC Standards for bibliographic "\
|
14
|
+
"use using the IecBibliographicItem model"
|
15
15
|
spec.homepage = "https://github.com/metanorma/relaton-iec"
|
16
16
|
spec.license = "MIT"
|
17
17
|
|
@@ -29,10 +29,11 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_development_dependency "rake", "~> 10.0"
|
30
30
|
spec.add_development_dependency "rspec", "~> 3.0"
|
31
31
|
spec.add_development_dependency "ruby-debug-ide"
|
32
|
+
spec.add_development_dependency "ruby-jing"
|
32
33
|
spec.add_development_dependency "simplecov"
|
33
34
|
spec.add_development_dependency "vcr"
|
34
35
|
spec.add_development_dependency "webmock"
|
35
36
|
|
36
37
|
spec.add_dependency "addressable"
|
37
|
-
spec.add_dependency "relaton-iso-bib", "~>
|
38
|
+
spec.add_dependency "relaton-iso-bib", "~> 1.3.0"
|
38
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-iec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.3.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-
|
11
|
+
date: 2020-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debase
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: ruby-jing
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: simplecov
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,15 +170,15 @@ dependencies:
|
|
156
170
|
requirements:
|
157
171
|
- - "~>"
|
158
172
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
173
|
+
version: 1.3.0
|
160
174
|
type: :runtime
|
161
175
|
prerelease: false
|
162
176
|
version_requirements: !ruby/object:Gem::Requirement
|
163
177
|
requirements:
|
164
178
|
- - "~>"
|
165
179
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
167
|
-
description: 'RelatonIec: retrieve IEC Standards for bibliographic use using the
|
180
|
+
version: 1.3.0
|
181
|
+
description: 'RelatonIec: retrieve IEC Standards for bibliographic use using the IecBibliographicItem
|
168
182
|
model'
|
169
183
|
email:
|
170
184
|
- open.source@ribose.com
|
@@ -184,15 +198,23 @@ files:
|
|
184
198
|
- Rakefile
|
185
199
|
- bin/console
|
186
200
|
- bin/setup
|
187
|
-
- grammars
|
201
|
+
- grammars/basicdoc.rng
|
202
|
+
- grammars/biblio.rng
|
203
|
+
- grammars/iec.rng
|
204
|
+
- grammars/isodoc.rng
|
205
|
+
- grammars/isostandard.rng
|
206
|
+
- grammars/reqt.rng
|
188
207
|
- lib/relaton_iec.rb
|
208
|
+
- lib/relaton_iec/hash_converter.rb
|
189
209
|
- lib/relaton_iec/hit.rb
|
190
210
|
- lib/relaton_iec/hit_collection.rb
|
211
|
+
- lib/relaton_iec/iec_bibliographic_item.rb
|
191
212
|
- lib/relaton_iec/iec_bibliography.rb
|
192
213
|
- lib/relaton_iec/processor.rb
|
193
214
|
- lib/relaton_iec/scrapper.rb
|
194
215
|
- lib/relaton_iec/statuses.yml
|
195
216
|
- lib/relaton_iec/version.rb
|
217
|
+
- lib/relaton_iec/xml_parser.rb
|
196
218
|
- relaton_iec.gemspec
|
197
219
|
homepage: https://github.com/metanorma/relaton-iec
|
198
220
|
licenses:
|
@@ -216,6 +238,6 @@ requirements: []
|
|
216
238
|
rubygems_version: 3.0.6
|
217
239
|
signing_key:
|
218
240
|
specification_version: 4
|
219
|
-
summary: 'RelatonIec: retrieve IEC Standards for bibliographic use using the
|
241
|
+
summary: 'RelatonIec: retrieve IEC Standards for bibliographic use using the IecBibliographicItem
|
220
242
|
model'
|
221
243
|
test_files: []
|