Upgrade to Pro — share decks privately, control downloads, hide ads and more …

1年かけてgemを1つ作りました

 1年かけてgemを1つ作りました

大江戸Ruby会議04 で発表したスライド http://regional.rubykaigi.org/oedo04/

Kunihiko Ito

April 19, 2014
Tweet

More Decks by Kunihiko Ito

Other Decks in Programming

Transcript

  1. Controller require_dependency "rgitlog/application_controller" require 'rugged' module Rgitlog class RgitlogController <

    ApplicationController def index path = Rugged::Repository.discover(Dir.pwd) repo = Rugged::Repository.new(path) @commits = repo.walk(repo.last_commit).to_a end end end