J
Jarmo Pertman
Hi!
I need to build a gem whose dependencies are dependent of the platform
itself. For example when `gem install my_gem` is issued under Windows,
then in gemspec i have to have spec.add_dependency("gemX"), but if the
command is executed under linux then i need to have
spec.add_dependency("gemY").
Is there any easy way to do this or should i just do it like this
instead:
1) remove all platform specific dependencies from gemspec
2) when loading the gem, then use RUBY_PLATFORM to decide what gems to
load and rescue Gem::LoadError to print out friendly messages like
"please install gemX"
Jarmo
I need to build a gem whose dependencies are dependent of the platform
itself. For example when `gem install my_gem` is issued under Windows,
then in gemspec i have to have spec.add_dependency("gemX"), but if the
command is executed under linux then i need to have
spec.add_dependency("gemY").
Is there any easy way to do this or should i just do it like this
instead:
1) remove all platform specific dependencies from gemspec
2) when loading the gem, then use RUBY_PLATFORM to decide what gems to
load and rescue Gem::LoadError to print out friendly messages like
"please install gemX"
Jarmo