gitvers 0.0.7 → 0.0.8
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 +4 -4
- data/lib/gitvers/cli.rb +5 -0
- data/lib/gitvers/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a2dd952c4885807ee2db2b5903f0c7a36c62a9b2
|
|
4
|
+
data.tar.gz: 38027d0076b36d32b85f21d9a71649f0b09b2b0a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 229e81c0b5777fa682b144a3277100da6169e0b6e5c2b5917e21a9bc47d4441ea2bfc47e80c1b8df990a70ebd26187a8d23e98dd75c9130995f5294246703591
|
|
7
|
+
data.tar.gz: c177f25eacd8f4c657b332e2ed42f44223820bf5b7cda732bc43b152faa9f70b2684368674cce59cb8903311be8fa39f52d97c5e2e43221086b37abbfe04891b
|
data/lib/gitvers/cli.rb
CHANGED
|
@@ -31,6 +31,10 @@ module Gitvers
|
|
|
31
31
|
puts "GITVERS_REVISION=#{rep.revision_number}"
|
|
32
32
|
puts "GITVERS_FULL=#{rep.full_version}"
|
|
33
33
|
puts "GITVERS_SHORT=#{rep.short_version}"
|
|
34
|
+
when 'lines'
|
|
35
|
+
puts rep.revision_number
|
|
36
|
+
puts rep.full_version
|
|
37
|
+
puts rep.short_version
|
|
34
38
|
else
|
|
35
39
|
puts "Current version: #{rep.summary}\n\n"
|
|
36
40
|
puts "All versions:"
|
|
@@ -59,6 +63,7 @@ Commands:
|
|
|
59
63
|
- short # x.y.z
|
|
60
64
|
- revision # revision
|
|
61
65
|
- shell # output GITVERS_<name> variables
|
|
66
|
+
- lines # output 3 lines with revision, full, short respectively
|
|
62
67
|
|
|
63
68
|
|
|
64
69
|
Examples:
|
data/lib/gitvers/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gitvers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nicolas Goy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-07-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|