tario / imageruby

flexible and easy to use ruby gem for image processing
http://tario.github.com/imageruby/doc/
GNU General Public License v3.0
16 stars 1 forks source link

Add auto_load support for Ruby 2.0 #4

Closed akatakritos closed 11 years ago

akatakritos commented 11 years ago

Ruby 2.0 completely removed Gem.source_index which was used in auto_load to automatically find imageruby-* gems and load them. This behavior can now be made using Gem::Specification.each.

Prefer Gem::Specification.each if Gem::Specification is defined and has an each method. (1.8.7 defined Gem::Specification but without the each method)

Fall back to Gem.source_index where available.

tario commented 11 years ago

Thanks!!!, version 0.2.2 was released including this fix :)