# How to add new gem for my plugin usage?

**URL:** <https://discuss.elastic.co/t/how-to-add-new-gem-for-my-plugin-usage/68985>\
**Category:** Logstash\
**Created:** [December 14, 2016, 8:17am UTC](https://discuss.elastic.co/t/how-to-add-new-gem-for-my-plugin-usage/68985 "2016-12-14T08:17:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![itzikHan](https://avatars.discourse-cdn.com/v4/letter/i/eb8c5e/32.png) [@itzikHan](https://discuss.elastic.co/u/itzikHan)\
**Post date:** [December 14, 2016, 8:17am UTC](https://discuss.elastic.co/t/how-to-add-new-gem-for-my-plugin-usage/68985/1 "2016-12-14T08:17:31Z")

</div>

I want to add a new gem ([win32ole](https://rubygems.org/gems/jruby-win32ole/versions/0.8.5)) for a plugin i'm building.  
After i installed the gem, what should i do in order for LogStash to recognize this gem from my plugin file?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [December 18, 2016, 4:11pm UTC](https://discuss.elastic.co/t/how-to-add-new-gem-for-my-plugin-usage/68985/2 "2016-12-18T16:11:03Z")

</div>

Have you added the gem to the .gemspec file of your plugin?

---

<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:** [January 15, 2017, 4:11pm UTC](https://discuss.elastic.co/t/how-to-add-new-gem-for-my-plugin-usage/68985/3 "2017-01-15T16:11:27Z")

</div>

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