I want to download the code for a gem, but the author didn’t give a link to a Github repository (or anything else) to download it from directly. For now, did gem install and copied the directory under “ruby/gems/…”, where the source is located. Is there an easier way of doing this (a one-liner)?
I want to download the code for a gem, but the author didn’t give
Share
You can
gem unpack gem_name, which will unpack the gem in the current working directory. If it is already installed the local version will be used, otherwise it will be fetched first: