ruby - Should I choose gem dependencies by OS platform? -


i creating gem, , use rbappscript gem additional functionality on mac os x.

forcing users of other platforms install dependency not idea, , i'm not sure if install @ all. so, possible customize gems depend on based on platform, , not create problems?

if it's optional, it's not dependency. don't declare such.

add documentation note, informing if rbappscript detected, additional functionality available.

then, in code, check availability of library. if user running on mac, (s)he can choose not load functionality given reason - predictable behavior on multiple platforms, instance.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -