gitvers 0.0.7 → 0.0.8

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: 6db80d3afa8bddb6611f415c70422c44f8e72aad
4
- data.tar.gz: e4a8a488bb4083ca5e464cb01c25146ab4253938
3
+ metadata.gz: a2dd952c4885807ee2db2b5903f0c7a36c62a9b2
4
+ data.tar.gz: 38027d0076b36d32b85f21d9a71649f0b09b2b0a
5
5
  SHA512:
6
- metadata.gz: 88cbbb81c0de320e9c2b61810e84949c12cfd3d43ba22d33592bcb3d9f95d5f37e4ebcd7b2a564aff5f0cadfd950136345fd048d7adaa78dc044ec0628851ba2
7
- data.tar.gz: 25766b705f8e266498f9f27105e2d5747f9a13a808a79836319987c5078cf460878215e03efb1f95e06bedaba149644329ad000a7501228e56f6d1f4ca8d37fc
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:
@@ -1,3 +1,3 @@
1
1
  module Gitvers
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
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.7
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-06-05 00:00:00.000000000 Z
11
+ date: 2014-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler