Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
gemspec: platform-dependent dependencies leading to inconsistent builds #1662
My current problem is :
I create this gemspec where I define multiple dependencies, one of them depending of
# mygem.gemspec spec.add_runtime_dependency "md2man" unless RUBY_PLATFORM == "java" # in my code, I require on a need basis: require 'binman/rakefile' unless RUBY_PLATFORM == "java"
This works mostly in development mode, but breaks as soon as I install the gem on other projects.
What is the proper way for setting platform-dependent dependencies in the gemspec?
This issue is related to: