Does executable gem need lib folder etc

I have an executable ruby file (single file) that I’d like to release as
a gem. I used bundler to create the structure. I moved my file to the
bin folder. Bundler created a lib/mygem.rb and lib/mygem/version.rb etc.

Do i really need to keep lib and these 2 files, or it enough for a gem
to have only a bin with the executable in bin.

http://guides.rubygems.org/

Attila Gulyas wrote in post #1100087:

http://guides.rubygems.org/

Thanks. I have already gone through
http://guides.rubygems.org/make-your-own-gem/ — however that had all
the components. I was still not clear, so i asked.

Since there are no answers, I guess I’ll just delete the unused files
and see how it goes.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs