mvz/ruby-gir-ffi — pull request #18 by cogniti (2011-11-12 20:33:20+00:00)
Title: improved LoadError handling

In Debian squeeze,

```debian:/usr/lib$ ls libgir*
libgirepo-Gdk-custom.so.0 libgirepo-Gtk-custom.so.0.0.0
libgirepo-Gdk-custom.so.0.0.0 libgirepository-1.0.so.0
libgirepo-Gtk-custom.so.0 libgirepository-1.0.so.0.0.0```

so, this patch solves following error.

```/var/lib/gems/1.9.1/gems/ffi-1.0.10/lib/ffi/library.rb:121:in `block in ffi_lib': Could not open library 'girepository-1.0.so': girepository-1.0.so: cannot open shared object file: No such file or directory. (LoadError)
Could not open library 'libgirepository-1.0.so': libgirepository-1.0.so: cannot open shared object file: No such file or directory```