Sha256: 14bdc5e4b6de88c34db9b9fdf25efc1feee6ce129bdc3daacf888e307d5fe69c

Contents?: true

Size: 1.53 KB

Versions: 1

Compression:

Stored size: 1.53 KB

Contents

# USPS-intelligent-barcode

USPS-intelligent-barcode is a pure ruby gem to generate a USPS
Intelligent Mail Barcode.  More specifically, it generates the string
of characters you should print using one of the [USPS Intelligent
Barcode fonts](https://ribbs.usps.gov/onecodesolution/download.cfm).

## FORKED FROM

This project was forked from :

[rtlong/USPS-intellient-barcode](https://github.com/rtlong/USPS-intelligent-barcode)
(github) by Ryan Taylor, in order to add tests and refactor.  It is
_not_ a drop-in replacement: I renamed most methods and classes, and
eliminated the #draw method.

## INSTALL

    $ gem install USPS-intelligent-barcode

## EXAMPLE

    #!/usr/bin/env ruby
    
    require 'imb'
    
    barcode_id = '01'
    service_type = '234'
    mailer_id = '567094'
    serial_number = '987654321'
    routing_code = '01234567891'
    barcode = Imb::Barcode.new(barcode_id,
                               service_type,
                               mailer_id,
                               serial_number,
                               routing_code)
    p barcode.barcode_letters
    # => "AADTFFDFTDADTAADAATFDTDDAAADDTDTTDAFADADDDTFFFDDTTTADFAAADFTDAADA"

## STANDARD

This gem is based upon standard
[USPS-B-3200G](https://ribbs.usps.gov/intelligentmail_mailpieces/documents/tech_guides/SPUSPSG.pdf)

## RUBY VERSIONS

The tests are known to pass in MRI 1.8.7 and MRI 1.9.3

## WHOAMI

Wayne Conrad <wconrad@yagni.com>

## CREDITS

Thanks to Ryan Taylor for his original work, without which I would
have been lost in the USPS specification.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
USPS-intelligent-barcode-0.1.0 README.md