Project

istc

0.0
No commit activity in last 3 years
No release in over 3 years
a (very) small library for working with ISTC
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
~> 3.0
 Project Readme

A small class for generating and validating Internation Standard Text Codes (ISTC).

Installation

gem install istc

Usage

ISTC.new("0A9200800000007C").valid?
=> true

ISTC.valid?("0A9200800000007C")
=> true

ISTC.valid?("0A9200800000007B")
=> false

ISTC.complete("0A9200800000007")
=> "0A9200800000007C"

ISTC.new("0A9200800000007").to_s
=> "0A9-2008-00000007-C"

Further Reading

Contributing

Source code is publicly available @ http://github.com/yob/istc. Patches welcome, preferably via a git repo I can pull from.