pluginaweek / state_machine

Adds support for creating state machines for attributes on any Ruby class
http://www.pluginaweek.org
MIT License
3.74k stars 507 forks source link

Please do not use the 'gem' command in lib/state_machine/graph.rb #304

Open boutil opened 10 years ago

boutil commented 10 years ago

Hi!

Could you please remove the require "rubygems"/ gem commands from the begining of lib/state_machine/graph.rb? It is considered good practice to not assume in libraries that the dependencies are managed by rubygems (or by any other system). It is in particular not true if the libraries are packaged for a Linux distribution for example, and would make life easier for distribution packagers. If you need to check the version ruby-graphivz, you may use the RGV_VERSION constant.

Cheers,

Cédric