# Does Ruby version matter when building Gems?

**URL:** <https://discuss.elastic.co/t/does-ruby-version-matter-when-building-gems/123397>\
**Category:** Logstash\
**Created:** [March 10, 2018, 7:55pm UTC](https://discuss.elastic.co/t/does-ruby-version-matter-when-building-gems/123397 "2018-03-10T19:55:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wakinov](https://avatars.discourse-cdn.com/v4/letter/w/49beb7/32.png) [@wakinov](https://discuss.elastic.co/u/wakinov)\
**Post date:** [March 10, 2018, 7:55pm UTC](https://discuss.elastic.co/t/does-ruby-version-matter-when-building-gems/123397/1 "2018-03-10T19:55:51Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)\
**Post date:** [March 11, 2018, 3:58am UTC](https://discuss.elastic.co/t/does-ruby-version-matter-when-building-gems/123397/2 "2018-03-11T03:58:00Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 8, 2018, 3:58am UTC](https://discuss.elastic.co/t/does-ruby-version-matter-when-building-gems/123397/3 "2018-04-08T03:58:30Z")

</div>

Closed on April 8, 2018, 3:58am UTC

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