Skip to content
This repository was archived by the owner on Nov 3, 2026. It is now read-only.
pubidPublic archive

About

[DEPRECATED] Superseded by the pubid monogem (pubid/pubid) — use gem "pubid" >= 2.0. Archived and read-only.

Resources

Contributing

Stars

2 stars

Watchers

7 watching

Forks

Latest commit

 

History

28 Commits

Folders and files

Repository files navigation

DEPRECATION NOTICE

This gem is deprecated and no longer maintained. The code now lives in the pubid monogem — pubid/pubid (RubyGems: pubid >= 2.0) — which bundles every former pubid-* flavor grammar. This repository is archived and read-only; issues and pull requests are disabled.

How to do what this gem did, with pubid

Install once:

# Gemfile
gem "pubid", "~> 2.0"

Parse any identifier — one parser returns the typed identifier for the right flavor automatically:

require "pubid"

id = Pubid.parse("ISO 8601-1:2019")
id.class.name   # => "Pubid::Iso::Identifiers::InternationalStandard"
id.to_s         # => "ISO 8601-1:2019"
id.year         # => "2019"
id.part         # => "1"

jis = Pubid.parse("JIS Z 8301:2019")
jis.to_s        # => "JIS Z 8301:2019"

dir = Pubid.parse("ISO/IEC Directives Part 2")
dir.to_s        # => "ISO/IEC DIR 2"   (normalized)

Create new identifiers programmatically — the typed constructor, not string parsing:

id = Pubid::Iso::Identifier.new(number: 8601, part: 1, year: "2019")
id.to_s    # => "ISO 8601-1:2019"
id.to_urn  # => "urn:iso:std:iso:8601:-1:2019"

Pubid.parse("ISO 8601-1:2019").to_urn
# => "urn:iso:std:iso:8601:-1"

Your existing Pubid::Iso::… / Pubid::Jis::… / Pubid.parse calls resolve exactly as before — the flavor grammars moved into the monogem under the same paths. The old Pubid::Iso::Identifier.create(…​) module function is gone — construct with .new(keyword args). Any pubid-* ~> 1.x pin becomes pubid ~> 2.0 — the monogem is the only line receiving updates.

:
Warning

This gem is deprecated and no longer maintained.

The per-flavor PubID gems have been superseded by pubid 2.0 — the unified PubID library implementing the publication identifiers of all standards bodies. Please use pubid ~> 2.0, and open issues and pull requests at metanorma/pubid.

JIS publication identifiers ("JIS PubID")

Purpose

This gem implements a mechanism to parse and utilize JIS publication identifiers.

Use cases to support

  1. generate updated PubID

Usage

Identifier creation

Basic usage of the pubid-jis gem starts with the Identifier#create method.

require "pubid-jis"

pubid = Pubid::Jis::Identifier.create(number: 1234, series: "A", part: 1, year: 1999, language: "E")
pubid.to_s

=> "JIS A 1234-1:1999(E)"

About

[DEPRECATED] Superseded by the pubid monogem (pubid/pubid) — use gem "pubid" >= 2.0. Archived and read-only.

Resources

Contributing

Stars

2 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages