pubid-iso 1.15.9 → 1.15.10

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: 9f281981e42f4fe123fb11766a42a161efe7ea7ca67177217cb7b0e25abf605f
4
- data.tar.gz: db7553520345a7860be01d909404dd208355f62bd6c3ea89debf80c259c7ca24
3
+ metadata.gz: 6a3c495b80d9854322efa5135cc6d709176c93dda8d804e2e763bac89303862b
4
+ data.tar.gz: c1cadd820546613240159a2a5ca390fe9469e001746e33264861aa3e50b1634f
5
5
  SHA512:
6
- metadata.gz: a892b598fb4be0cb9e2e59bff00f51a55138db6071db1e8d17a9bafc4acdef9afdb16cc48a8cc9be4fe2afa4f5293034e3b26ab4bdf994bc85915721ef8747ce
7
- data.tar.gz: f434672ef4e38510f2d8af2c40104e859b7d9e9a2c885063c3555e2c3d4cf349fc89f6f1c7da42b915993c18e76f374212e20f1765a250b85a60a14fd5bf2e95
6
+ metadata.gz: ff4e7015992b5f97eaed4dab6e345207ba2160f977707dafab725fe23d5dc67bee3438fada91742da65515772fe39d95b1b81dc69ba0370965a078c88541b00c
7
+ data.tar.gz: 526aad9adeafe15e1ada89421eec7ce8a22996ea63bfcc2c6ba21639b918717e7b343059b6b2777b2862171090e3844b89dd885dcce643494ebb706bc1e219d2
@@ -1,3 +1,5 @@
1
+ require_relative "../renderer/international_standard"
2
+
1
3
  module Pubid::Iso
2
4
  module Identifier
3
5
  class InternationalStandard < Base
@@ -60,6 +62,10 @@ module Pubid::Iso
60
62
  def self.type
61
63
  { key: :is, title: "International Standard", short: nil }
62
64
  end
65
+
66
+ def self.get_renderer_class
67
+ Renderer::InternationalStandard
68
+ end
63
69
  end
64
70
  end
65
71
  end
@@ -2,10 +2,16 @@ require_relative "base"
2
2
 
3
3
  module Pubid::Iso::Renderer
4
4
  class InternationalStandard < Base
5
- def omit_post_publisher_symbol?(typed_stage, stage)
6
- # return false unless typed_stage
5
+ def omit_post_publisher_symbol?(typed_stage, stage, opts)
6
+ return true if stage.is_a?(Pubid::Core::TypedStage) && stage.abbr == :is
7
7
 
8
- !stage.nil? && !typed_stage.nil?
8
+ super
9
+ end
10
+
11
+ def postrender_stage(stage, opts, params)
12
+ return if stage.is_a?(Pubid::Core::TypedStage) && stage.abbr == :is
13
+
14
+ super
9
15
  end
10
16
  end
11
17
  end
@@ -146,7 +146,12 @@ module Pubid::Iso
146
146
  when "preCD" then { stage: "PreCD" }
147
147
  when "published" then { stage: "IS" }
148
148
  # when "draft" then { stage: "WD" }
149
- else { stage: convert_stage_code(code.to_s) }
149
+ else
150
+ if /\A[\d.]+\z/.match?(code.to_s)
151
+ { stage: code.to_s }
152
+ else
153
+ { stage: convert_stage_code(code.to_s) }
154
+ end
150
155
  end
151
156
  end
152
157
 
@@ -1,5 +1,5 @@
1
1
  module Pubid
2
2
  module Iso
3
- VERSION = "1.15.9".freeze
3
+ VERSION = "1.15.10".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubid-iso
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.9
4
+ version: 1.15.10
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-03-20 00:00:00.000000000 Z
11
+ date: 2026-03-26 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.9
33
+ version: 1.15.10
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.9
40
+ version: 1.15.10
41
41
  description: Library to generate, parse and manipulate ISO PubID.
42
42
  email:
43
43
  - open.source@ribose.com