Sha256: 849672ccb732196c46b7b5d166067d545bd09f48ce7f9820ffd04d6f3f12544d
Contents?: true
Size: 783 Bytes
Versions: 1
Compression:
Stored size: 783 Bytes
Contents
# LastCommit Simple utility class to get last commit info from git repository. ## Installation Add this line to your application's Gemfile: ``` ruby gem "last_commit" ``` And then execute: ``` sh $ bundle ``` Or install it by yourself: ``` sh $ gem install last_commit ``` ## Usage ``` ruby require "last_commit" last_commit = LastCommit.new("#{ENV["HOME"]}/git/repo/path", "master") last_commit.author # "Tomek WaĆkuski" last_commit.message # "Initial commit" last_commit.sha # "08feadfc6075dbeb696aa61e9d21383b2a6a0f0e" ``` ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
last_commit-0.1.0 | README.md |