relaton-iec 1.14.0 → 1.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton_iec/iec_bibliographic_item.rb +17 -4
- data/lib/relaton_iec/scrapper.rb +1 -1
- data/lib/relaton_iec/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64b4e21a953edecfca9d2ccb0b9dde4e91f8d7e6ced8ce5be3c825142f5e853b
|
4
|
+
data.tar.gz: c8478d74927f064b4c2711fbd916a1fb68ac1ee6ffa5ecde681c3374816ac024
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e65980c0a520d2244db616e3dcced3a97e0ca3c8c8aed4a9a856eeca4badd5cd0a8bd3748207b5e52c58154066a291e0797b3c8b2c67b4d2472418f050acde6d
|
7
|
+
data.tar.gz: 22894e978223c56b60aab15c4a497982e8b783ab857dd20386a81485eb19b87283d7da5d903a11dd90fb91230fc576b2e5ce3b70a05cc57c664595376b829e98
|
@@ -1,11 +1,13 @@
|
|
1
1
|
module RelatonIec
|
2
2
|
class IecBibliographicItem < RelatonIsoBib::IsoBibliographicItem
|
3
|
-
|
3
|
+
DOCTYPES = %w[
|
4
4
|
international-standard technical-specification technical-report
|
5
5
|
publicly-available-specification international-workshop-agreement
|
6
|
-
guide industry-technical-agreement system-reference-
|
6
|
+
guide industry-technical-agreement system-reference-deliverable
|
7
7
|
].freeze
|
8
8
|
|
9
|
+
DOCSUBTYPES = %w[specification method-of-test vocabulary code-of-practice].freeze
|
10
|
+
|
9
11
|
FUNCTION = %w[emc safety enviroment quality-assurance].freeze
|
10
12
|
|
11
13
|
# @return [String, nil]
|
@@ -17,17 +19,28 @@ module RelatonIec
|
|
17
19
|
|
18
20
|
# attr_reader :tc_sc_officers_note
|
19
21
|
|
22
|
+
#
|
23
|
+
# Initialize instance of RelatonIec::IecBibliographicItem
|
24
|
+
#
|
25
|
+
# @param [Hash] **args hash of attributes
|
26
|
+
# @option args [String, nil] :function function
|
27
|
+
# @option args [String, nil] :updates_document_type updates document type
|
28
|
+
# @option args [String, nil] :price_code price code
|
29
|
+
# @option args [String, nil] :secretary secretary
|
30
|
+
# @option args [String, nil] :interest_to_committees interest to committees
|
31
|
+
# @option args [Boolean, nil] :accessibility_color_inside accessibility color inside
|
32
|
+
#
|
20
33
|
def initialize(**args) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
|
21
34
|
if args[:function] && !FUNCTION.include?(args[:function])
|
22
35
|
warn "[relaton-iec] WARNING: invalid function \"#{args[:function]}\""
|
23
36
|
warn "[relaton-iec] allowed function values are: #{FUNCTION.join(', ')}"
|
24
37
|
end
|
25
38
|
if args[:updates_document_type] &&
|
26
|
-
!
|
39
|
+
!DOCTYPES.include?(args[:updates_document_type])
|
27
40
|
warn "[relaton-iec] WARNING: invalid updates_document_type "\
|
28
41
|
"\"#{args[:updates_document_type]}\""
|
29
42
|
warn "[relaton-iec] allowed updates_document_type values are: "\
|
30
|
-
"#{
|
43
|
+
"#{DOCTYPES.join(', ')}"
|
31
44
|
end
|
32
45
|
@function = args.delete :function
|
33
46
|
@updates_document_type = args.delete :updates_document_type
|
data/lib/relaton_iec/scrapper.rb
CHANGED
data/lib/relaton_iec/version.rb
CHANGED
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: 1.14.
|
4
|
+
version: 1.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: equivalent-xml
|
@@ -209,7 +209,7 @@ homepage: https://github.com/metanorma/relaton-iec
|
|
209
209
|
licenses:
|
210
210
|
- MIT
|
211
211
|
metadata: {}
|
212
|
-
post_install_message:
|
212
|
+
post_install_message:
|
213
213
|
rdoc_options: []
|
214
214
|
require_paths:
|
215
215
|
- lib
|
@@ -224,8 +224,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
224
|
- !ruby/object:Gem::Version
|
225
225
|
version: '0'
|
226
226
|
requirements: []
|
227
|
-
rubygems_version: 3.
|
228
|
-
signing_key:
|
227
|
+
rubygems_version: 3.1.6
|
228
|
+
signing_key:
|
229
229
|
specification_version: 4
|
230
230
|
summary: 'RelatonIec: retrieve IEC Standards for bibliographic use using the IecBibliographicItem
|
231
231
|
model'
|