/ruby-usb

libusb binding for Ruby - with some modifications to support OSX and make ruby-usb available as a gem

Primary LanguageCGNU Lesser General Public License v2.1LGPL-2.1

= ruby-usb - libusb binding for Ruby

ruby-usb is a libusb binding library for Ruby.

== Author

Tanaka Akira <akr@fsij.org>

== Home Page

http://www.a-k-r.org/ruby-usb/

== License

LGPL

== Feature

* direct (non-rubyish) binding
* rubyish interface (work in progress)

== Requirements

* ruby : http://www.ruby-lang.org/
* libusb 0.1 : http://libusb.sourceforge.net/

== Installing via make

* Download:
** latest release: http://www.a-k-r.org/ruby-usb/ruby-usb-0.2.tar.gz
**development version: http://github.com/akr/ruby-usb

*Install

  % ruby extconf.rb 
  % make
  % make install

== Installing as a gem

  % gem install ruby-usb

On OSX you may need to specify your architecure. 
For example:
  % ARCHFLAGS="-arch x86_64" gem install ruby-usb

== Reference Manual

See rdoc/ or
http://www.a-k-r.org/ruby-usb/rdoc/

== See Also

* USB.org : http://www.usb.org/
* AC Power Control through USB : http://www.gniibe.org/ac-power-by-usb/ac-power-control.html
* How To Control USB Missile Launcher on Linux : http://blog.taragana.com/index.php/archive/how-to-control-usb-missile-launcher-on-linux/