last_commit 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 81caf2b4d23d0bf73669f9c8de2f147abe3e9f18
4
- data.tar.gz: 73213756e3c22a113f586ea713eaa01347338582
3
+ metadata.gz: b827e33cde2e1d33fdf4e475db51a2cf90277498
4
+ data.tar.gz: d4a52b4e41a609c7c47e330c9f9491d5ee620090
5
5
  SHA512:
6
- metadata.gz: e138f7c4472544fc6a6a8bfbd054afa8b8b7031028ab619bd526d21646c7de280a9e7380a4add911b264a607444bf35db251267aaf4fc07b1e9e3ae63b97df1b
7
- data.tar.gz: ea4526e4e663d6e9673b5c394d22cc98b4062ff8867ccadc8a34694500a18dabbab5887de0ad86289fcb92ba12210072053b5f6905babcf94bcce2f141c91523
6
+ metadata.gz: 6cb0882bd106b49d0ff0299e2cb3703cb7c0b92ed784d048c7f97fb8a51a5ba766bf97343247ebe2f0a55194b540d4da3b3b54f259276de7fd67983dcfdd5a95
7
+ data.tar.gz: 284d4b7e37ecf31edb59a517a6e3f6598ca7bb7f165b501879189a28db246496fe305e9b72ace13d16c6b4c548a3996411cadf0fe64a24a9123b86f6820f758c
data/README.md CHANGED
@@ -29,6 +29,7 @@ require "last_commit"
29
29
 
30
30
  last_commit = LastCommit.new("#{ENV["HOME"]}/git/repo/path", "master")
31
31
 
32
+ last_commit.author # "Tomek Wałkuski"
32
33
  last_commit.message # "Initial commit"
33
34
  last_commit.sha # "08feadfc6075dbeb696aa61e9d21383b2a6a0f0e"
34
35
  ```
data/last_commit.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "last_commit"
5
- gem.version = "0.0.2"
5
+ gem.version = "0.1.0"
6
6
  gem.authors = ["Tomasz Wałkuski"]
7
7
  gem.email = ["ja@jestem.tw"]
8
8
  gem.description = "Simple utility class to get last commit info from git repository."
data/lib/last_commit.rb CHANGED
@@ -6,6 +6,10 @@ class LastCommit
6
6
  self.branch = branch
7
7
  end
8
8
 
9
+ def author
10
+ last_commit.author.name
11
+ end
12
+
9
13
  def message
10
14
  last_commit.message
11
15
  end
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require "spec_helper"
2
4
 
3
5
  describe LastCommit do
@@ -5,6 +7,7 @@ describe LastCommit do
5
7
 
6
8
  subject(:last_commit) { described_class.new(DummyRepo.instance.path, branch) }
7
9
 
10
+ its(:author) { should eq "Tomek Wałkuski" }
8
11
  its(:message) { should eq "Initial commit" }
9
12
  its(:sha) { should eq "08feadfc6075dbeb696aa61e9d21383b2a6a0f0e" }
10
13
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: last_commit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomasz Wałkuski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-04 00:00:00.000000000 Z
11
+ date: 2013-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git