Does Ruby version matter when building Gems?


(bryan) #1

It seems like if I build my project, it just places my code files in /path/to/logstash/vendor/local_gems/random_id/plugin-goes-here and adds a reference in the Gemfile. Does it even matter if I build my gem with Jruby or some random version of Ruby?


(Ry Biesemeyer) #2

It may not matter, but in some cases it does (e.g., when your gem has Java or jruby dependencies), and when it does, sometimes figuring out why things aren't working once the plugin is installed can get pretty hairy.

I find it easiest to play it safe and just do all of my Logstash work with the jruby and Java versions required by Logstash.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.