revision 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/revision/cli.rb +7 -0
- data/lib/revision/version.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7fe914a06832d3670e34dc1a9b607fe8343058aa64528d8a0e322acf61b9611
|
4
|
+
data.tar.gz: 563e66def7cb78a08d246c1a0036ea8754a9346b36bc91e08230d15c6b38508d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f39382493167e12af0f420a698d41769b773c1720d065bd01705f1c9b1959e4505b3da25fdb7b571372afca6ca0103dfa029077d16026b2f4720cc591b26853
|
7
|
+
data.tar.gz: c51c1ab72e3d9f31885d5e1817152ddbecc21d57ee8866d4ef5985360a27ba37971f86cbc5f595638e12d3fe7d1b976ee2d3681078691d72eab361b35bf8dd44
|
data/lib/revision/cli.rb
CHANGED
@@ -3,11 +3,13 @@ require 'thor'
|
|
3
3
|
require_relative 'releasable'
|
4
4
|
require_relative 'info'
|
5
5
|
require_relative 'errors'
|
6
|
+
require_relative 'version'
|
6
7
|
|
7
8
|
module Revision
|
8
9
|
class CLI < Thor
|
9
10
|
class_option :dryrun, :type => :boolean, :default =>false
|
10
11
|
class_option :id, :default => nil #Initialized after loading definition
|
12
|
+
map %w[--version -v] => :__print_version
|
11
13
|
|
12
14
|
def initialize(*args)
|
13
15
|
super
|
@@ -27,6 +29,11 @@ module Revision
|
|
27
29
|
@id = options[:id] || @releasables.keys[0]
|
28
30
|
end
|
29
31
|
|
32
|
+
desc "--version, -v", "print the version"
|
33
|
+
def __print_version
|
34
|
+
puts Revision::VERSION
|
35
|
+
end
|
36
|
+
|
30
37
|
desc 'info', 'Display info for all defined releasables'
|
31
38
|
def info
|
32
39
|
puts "Found #{@releasables.values.length} releasables"
|
data/lib/revision/version.rb
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
# Defines the revision ID for the revision gem
|
2
2
|
module Revision
|
3
|
-
VERSION = "1.2.
|
3
|
+
VERSION = "1.2.2"
|
4
4
|
end
|
5
5
|
|
6
6
|
# <BEGIN CHANGELOG>
|
7
7
|
#
|
8
|
+
# Version 1.2.2 (03 Sep 2018)
|
9
|
+
# - Updated CLI to provide version info
|
10
|
+
#
|
8
11
|
# Version 1.2.1 (03 Sep 2018)
|
9
12
|
# - Update to allow releasable without any artefacts
|
10
13
|
#
|