pubid-iec 1.15.3 → 1.15.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa29819fc4a1cad852d67cca964e337d037c62e97a892d7f6c8014ee1b4d8c32
4
- data.tar.gz: ba87e4f5864db19984ee047c383fc6a95853125ea969fb3469e271efcd1e808c
3
+ metadata.gz: 6bd541f7c4f93e5532dfa5ab63c08e69b5af8793cdcec0b4b1956db70b85088b
4
+ data.tar.gz: 2bb7ee8b3ad42285c8a88a54a9a65885759cb2cb628eecaa340f72e8caf44914
5
5
  SHA512:
6
- metadata.gz: 1aa588350ceac542006896b4dd6828f9030394665e2b7dfc0db13057c2388a6f9837196178c2256264137f11b8463d4d1a6bb50b66b2c73038896cc88520858d
7
- data.tar.gz: 45bd6a9d164e7a958a974e994891c2df91bb6ddcde3bdb76e82933c5983c6b9f643fc9b99206d9ad3cc3af7d6f37c644f9b0c2b8c569cbabc24132efdc97bd75
6
+ metadata.gz: 53a26bb84c21b21510209f1a1cfecfa2d2c1f0c511f497284eb8f2a5aed3f1c8974d9a61ffed61e953763eb9f002b04c5a3f1589de96177b6dbf901c77c59f4f
7
+ data.tar.gz: c0d84474b0bcebb26df6d95b6ad943097b0f91cc326a1713c2214d666f18aadd80f59b93b17186502224f9ac67d775192e760db224703b72f9b05c3ec2d9e9a9
@@ -7,8 +7,10 @@ module Pubid::Iec
7
7
  { key: :cs, title: "Component Specification", short: "CS" }
8
8
  end
9
9
 
10
- def to_h(deep: true)
11
- super(deep: deep).merge(type: "CS")
10
+ def to_h(deep: true, add_type: true)
11
+ result = super(deep: deep, add_type: false)
12
+ result[:type] = "CS" if add_type
13
+ result
12
14
  end
13
15
  end
14
16
  end
@@ -7,8 +7,10 @@ module Pubid::Iec
7
7
  { key: :ca, title: "Conformity Assessment", short: "CA" }
8
8
  end
9
9
 
10
- def to_h(deep: true)
11
- super(deep: deep).merge(type: "CA")
10
+ def to_h(deep: true, add_type: true)
11
+ result = super(deep: deep, add_type: false)
12
+ result[:type] = "CA" if add_type
13
+ result
12
14
  end
13
15
  end
14
16
  end
@@ -20,8 +20,10 @@ module Pubid::Iec
20
20
  { key: :guide, title: "Guide", short: %w[Guide GUIDE] }
21
21
  end
22
22
 
23
- def to_h(deep: true)
24
- super(deep: deep).merge(type: "Guide")
23
+ def to_h(deep: true, add_type: true)
24
+ result = super(deep: deep, add_type: false)
25
+ result[:type] = "Guide" if add_type
26
+ result
25
27
  end
26
28
  end
27
29
  end
@@ -7,8 +7,10 @@ module Pubid::Iec
7
7
  { key: :od, title: "Operational Document", short: "OD" }
8
8
  end
9
9
 
10
- def to_h(deep: true)
11
- super(deep: deep).merge(type: "OD")
10
+ def to_h(deep: true, add_type: true)
11
+ result = super(deep: deep, add_type: false)
12
+ result[:type] = "OD" if add_type
13
+ result
12
14
  end
13
15
  end
14
16
  end
@@ -28,8 +28,10 @@ module Pubid::Iec
28
28
  { key: :pas, title: "Publicly Available Specification", short: "PAS" }
29
29
  end
30
30
 
31
- def to_h(deep: true)
32
- super(deep: deep).merge(type: "PAS")
31
+ def to_h(deep: true, add_type: true)
32
+ result = super(deep: deep, add_type: false)
33
+ result[:type] = "PAS" if add_type
34
+ result
33
35
  end
34
36
  end
35
37
  end
@@ -8,8 +8,10 @@ module Pubid::Iec
8
8
  { key: :sttr, title: "Societal and Technology Trend Report", short: "Trend Report" }
9
9
  end
10
10
 
11
- def to_h(deep: true)
12
- super(deep: deep).merge(type: "Trend Report")
11
+ def to_h(deep: true, add_type: true)
12
+ result = super(deep: deep, add_type: false)
13
+ result[:type] = "Trend Report" if add_type
14
+ result
13
15
  end
14
16
  end
15
17
  end
@@ -7,8 +7,10 @@ module Pubid::Iec
7
7
  { key: :srd, title: "Systems Reference Document", short: "SRD" }
8
8
  end
9
9
 
10
- def to_h(deep: true)
11
- super(deep: deep).merge(type: "SRD")
10
+ def to_h(deep: true, add_type: true)
11
+ result = super(deep: deep, add_type: false)
12
+ result[:type] = "SRD" if add_type
13
+ result
12
14
  end
13
15
  end
14
16
  end
@@ -48,8 +48,10 @@ module Pubid::Iec
48
48
  { key: :tr, title: "Technical Report", short: "TR" }
49
49
  end
50
50
 
51
- def to_h(deep: true)
52
- super(deep: deep).merge(type: "TR")
51
+ def to_h(deep: true, add_type: true)
52
+ result = super(deep: deep, add_type: false)
53
+ result[:type] = "TR" if add_type
54
+ result
53
55
  end
54
56
  end
55
57
  end
@@ -48,8 +48,10 @@ module Pubid::Iec
48
48
  { key: :ts, title: "Technical Specification", short: "TS" }
49
49
  end
50
50
 
51
- def to_h(deep: true)
52
- super(deep: deep).merge(type: "TS")
51
+ def to_h(deep: true, add_type: true)
52
+ result = super(deep: deep, add_type: false)
53
+ result[:type] = "TS" if add_type
54
+ result
53
55
  end
54
56
  end
55
57
  end
@@ -7,8 +7,10 @@ module Pubid::Iec
7
7
  { key: :tmop, title: "Technology and Market Outlook Paper", short: "Technology and Market Outlook Paper" }
8
8
  end
9
9
 
10
- def to_h(deep: true)
11
- super(deep: deep).merge(type: "Technology and Market Outlook Paper")
10
+ def to_h(deep: true, add_type: true)
11
+ result = super(deep: deep, add_type: false)
12
+ result[:type] = "Technology and Market Outlook Paper" if add_type
13
+ result
12
14
  end
13
15
  end
14
16
  end
@@ -7,8 +7,10 @@ module Pubid::Iec
7
7
  { key: :tec, title: "Technology Report", short: "Technology Report" }
8
8
  end
9
9
 
10
- def to_h(deep: true)
11
- super(deep: deep).merge(type: "Technology Report")
10
+ def to_h(deep: true, add_type: true)
11
+ result = super(deep: deep, add_type: false)
12
+ result[:type] = "Technology Report" if add_type
13
+ result
12
14
  end
13
15
  end
14
16
  end
@@ -7,8 +7,10 @@ module Pubid::Iec
7
7
  { key: :wp, title: "Write Paper", short: "White Paper" }
8
8
  end
9
9
 
10
- def to_h(deep: true)
11
- super(deep: deep).merge(type: "White Paper")
10
+ def to_h(deep: true, add_type: true)
11
+ result = super(deep: deep, add_type: false)
12
+ result[:type] = "White Paper" if add_type
13
+ result
12
14
  end
13
15
  end
14
16
  end
@@ -1,5 +1,5 @@
1
1
  module Pubid
2
2
  module Iec
3
- VERSION = "1.15.3".freeze
3
+ VERSION = "1.15.4".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubid-iec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.3
4
+ version: 1.15.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-02-05 00:00:00.000000000 Z
11
+ date: 2026-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 1.15.3
33
+ version: 1.15.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 1.15.3
40
+ version: 1.15.4
41
41
  description: Library to generate, parse and manipulate IEC PubID.
42
42
  email:
43
43
  - open.source@ribose.com