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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 471e060c4f00c9b6b9260ad1c35d300233b6953745e441d23b3dfdda66c6f84a
4
- data.tar.gz: 5c44abbeae47429b403f2b90f030a87f6a5c3e4a20d02218c6c048ce43fa9be6
3
+ metadata.gz: 64b4e21a953edecfca9d2ccb0b9dde4e91f8d7e6ced8ce5be3c825142f5e853b
4
+ data.tar.gz: c8478d74927f064b4c2711fbd916a1fb68ac1ee6ffa5ecde681c3374816ac024
5
5
  SHA512:
6
- metadata.gz: 3e39cb0ce0a1483b6081c0718bdd400f5ef614a92db579aaa2abb7092c355e3d47e832c3ccbdae718e7b161c8c0f9f8b4a1ee0a97023f98001f5abdaad89cd1a
7
- data.tar.gz: f51cd3488b180a64804fc890b29ad430f4225ab069bc82037e16c996376f389b38ea59ae820782f460b9aa8b97ec252e749ff128b7240e4a71995149f1b58d32
6
+ metadata.gz: e65980c0a520d2244db616e3dcced3a97e0ca3c8c8aed4a9a856eeca4badd5cd0a8bd3748207b5e52c58154066a291e0797b3c8b2c67b4d2472418f050acde6d
7
+ data.tar.gz: 22894e978223c56b60aab15c4a497982e8b783ab857dd20386a81485eb19b87283d7da5d903a11dd90fb91230fc576b2e5ce3b70a05cc57c664595376b829e98
@@ -1,11 +1,13 @@
1
1
  module RelatonIec
2
2
  class IecBibliographicItem < RelatonIsoBib::IsoBibliographicItem
3
- TYPES = %w[
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-delivrabble
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
- !TYPES.include?(args[:updates_document_type])
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
- "#{TYPES.join(', ')}"
43
+ "#{DOCTYPES.join(', ')}"
31
44
  end
32
45
  @function = args.delete :function
33
46
  @updates_document_type = args.delete :updates_document_type
@@ -28,7 +28,7 @@ module RelatonIec
28
28
  "WD" => "working-draft",
29
29
  "R" => "recommendation",
30
30
  "Guide" => "guide",
31
- "SRD" => "system-reference-delivrabble",
31
+ "SRD" => "system-reference-deliverable",
32
32
  }.freeze
33
33
 
34
34
  class << self
@@ -1,3 +1,3 @@
1
1
  module RelatonIec
2
- VERSION = "1.14.0".freeze
2
+ VERSION = "1.14.1".freeze
3
3
  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: 1.14.0
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-04 00:00:00.000000000 Z
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.2.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'