rules_ruby icon indicating copy to clipboard operation
rules_ruby copied to clipboard

gem from the .zip archive?

Open surendarchandra opened this issue 4 years ago • 3 comments

Thanks for the effort In building this project. I added the ruby_gem rule and it generates a .zip file in the cache directory. Is there a way to create a regular .gem file? Not sure how to use the .zip file even though it is gem compatible? Thanks

surendarchandra avatar Oct 08 '20 07:10 surendarchandra

Hm does it really generate zip file?

A gem file is just a tar archive containing (at least) a gemspec file. You can install a gem using the gem file with gem install --local file.gem

Have you tried unpacking the zip file? Could it contain the .gem inside?

kigster avatar Nov 12 '20 20:11 kigster

The documentation (front page README) says "Used to generate a zipped gem containing its srcs, dependencies and a gemspec." I'm currently seeing a zip file generated as well rather than a file with a .gem extension

cdc97 avatar Nov 30 '20 20:11 cdc97

I'll take a look

kigster avatar Jul 08 '21 19:07 kigster