smartcard aims to become the standard support library for
smart-card development on ruby. Right now, the project offers a PC/SC
binding that is working on ruby 1.8, under Linux, OSX, and Windows. Future
plans include a high level abstraction for the PC/SC binding (plus any
other bindings people need), and an interface for Java cards.
gem install smartcard
Install the Developer Tools to get
gcc. Requires Tiger or Leopard.
You need a PC/SC provider. See the BUILD file
for details. The file also contains package lists for popular distributions.
The documentation you see was generated with RDoc. If you install the
smartcard gem, you should be able to use ri to see the
documentation. If you're using the SVN version, you can
doc to build the HTML documentation yourself.
smartcard is released under the MIT license. This means
you're free to do whatever you want with it. However, it'd be nice
to let the developers know if you plan to include this in a distribution
(bragging rights are always good). The LICENSE file has the license in
Kevin Redon <email@example.com> provided information and a failing test case for ATR-based protocol detection, which is necessary if the PC/SC driver doesn't do it automatically.