git-revision 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/git-revision.gemspec +1 -1
- data/lib/git-revision.rb +5 -0
- metadata +7 -10
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: '076268c80e5fe6f3566890d14f866c267659aa80e06c8a3efd3bf4e9270fa7d7'
|
|
4
|
+
data.tar.gz: 6158f442dd669e667cbf187bf90ec54e72fc8f212deae415de5f3bfa1cd55e7a
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: eeda283f1bb6a48a5e98a076b8bc9099b7de5203211cfe95ecb6ef1d1971b0235b21134706db84f07afabaf08dbed2c586c5830cb5636b6909c393d90297c2c3
|
|
7
|
+
data.tar.gz: c93addd2d77cf0936460d37df05dc910daf94067892596c1fdbff1d3268bbe757684d87d7ec6f8f65d25164eb6470451e92f710e5a12da8b3ea40096bffc301c
|
data/git-revision.gemspec
CHANGED
data/lib/git-revision.rb
CHANGED
|
@@ -29,8 +29,13 @@ module Git
|
|
|
29
29
|
`git describe --tags --abbrev=0`.strip
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
+
def branch
|
|
33
|
+
`git rev-parse --abbrev-ref HEAD`.strip
|
|
34
|
+
end
|
|
35
|
+
|
|
32
36
|
def info
|
|
33
37
|
@info ||= {
|
|
38
|
+
:branch => branch,
|
|
34
39
|
:commit_hash => commit,
|
|
35
40
|
:commit_hash_short => commit_short,
|
|
36
41
|
:commit_subject => message,
|
metadata
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: git-revision
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 0.0.2
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Nihad Abbasov
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 2018-08-08 00:00:00.000000000 Z
|
|
13
12
|
dependencies: []
|
|
14
13
|
description:
|
|
15
14
|
email: mail@narkoz.me
|
|
@@ -24,27 +23,25 @@ files:
|
|
|
24
23
|
homepage: http://github.com/narkoz/git-revision
|
|
25
24
|
licenses:
|
|
26
25
|
- BSD
|
|
26
|
+
metadata: {}
|
|
27
27
|
post_install_message:
|
|
28
28
|
rdoc_options: []
|
|
29
29
|
require_paths:
|
|
30
30
|
- lib
|
|
31
31
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
32
|
-
none: false
|
|
33
32
|
requirements:
|
|
34
|
-
- -
|
|
33
|
+
- - ">="
|
|
35
34
|
- !ruby/object:Gem::Version
|
|
36
35
|
version: '0'
|
|
37
36
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
38
|
-
none: false
|
|
39
37
|
requirements:
|
|
40
|
-
- -
|
|
38
|
+
- - ">="
|
|
41
39
|
- !ruby/object:Gem::Version
|
|
42
40
|
version: '0'
|
|
43
41
|
requirements: []
|
|
44
42
|
rubyforge_project:
|
|
45
|
-
rubygems_version:
|
|
43
|
+
rubygems_version: 2.7.7
|
|
46
44
|
signing_key:
|
|
47
|
-
specification_version:
|
|
45
|
+
specification_version: 4
|
|
48
46
|
summary: Git Revision provides information about git source code.
|
|
49
47
|
test_files: []
|
|
50
|
-
has_rdoc:
|