Gistにファイルを置くだけで、Gemとして公開できる。 最小構成だと、gemspecとソースコードをGistに配置すれば良い。 Gem::Specification.new do |spec| spec.name = 'my_gem' spec.version = '0.0.1' spec.authors = ['Your Name'] spec.email = ['[email protected]'] spec.summary = 'Summary of this gem' spec.files = ['my_gem.rb'] spec.require_path = '.' end # ここに好きなコードを書く 使う側では、gitプロトコルでGistのGitリポジトリとしてのURLを指定すれば良い。 gem 'my_gem', git: 'https://gist.github.co
![GistでGemを公開](https://cdn-ak-scissors.b.st-hatena.com/image/square/2a9288c33c7a3879894bd746c3409b2bf1483247/height=288;version=1;width=512/https%3A%2F%2Fr7kamura.com%2Fdefault_og_image.jpg)