# Transforming simple ruby files into a ruby gem

**URL:** <https://meta.discourse.org/t/transforming-simple-ruby-files-into-a-ruby-gem/103399>\
**Category:** Development\
**Created:** [December 3, 2018, 9:56pm UTC](https://meta.discourse.org/t/transforming-simple-ruby-files-into-a-ruby-gem/103399 "2018-12-03T21:56:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![SebastianADW](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@SebastianADW](https://meta.discourse.org/u/SebastianADW)\
**Post date:** [December 5, 2018, 8:33pm UTC](https://meta.discourse.org/t/transforming-simple-ruby-files-into-a-ruby-gem/103399/3 "2018-12-05T20:33:02Z")

</div>

Yeah thanks for your response!  
I tried to follow all the advices and format the dependencies like the other plugins.

But i always get that kind of error when i try to start the rails server:

`/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in `require’: cannot load such file – twitter (LoadError)`

i required twitter in the files where i need it put this in the normal plugin.rb

```
gem "bundler"
gem "net"
gem "twitter"

```

(obviously there are more gems i put in like this, thats just for an example)  
Do you have any idea why its not working?  
I also tried to specify the version of the gem like that `gem "twitter", "6.2"` and add the required false statement, but still the same error.  
Maybe good to know, its a local discourse server

I think i just dont get how the gems are working in the plugin environment, cause i always get errors regarding them, for example i also get: you are specifying gem i18n in … however it does not exist …

---

_[View the full topic](https://meta.discourse.org/t/transforming-simple-ruby-files-into-a-ruby-gem/103399)._
