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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 605f0915384acb71a4973620df4d9b7f9ff4f9b49677ebb05f18c27b1a8b71e9
4
- data.tar.gz: eb08ce74aec19f2728c5c8731979a6568e1402703a30ffd56d748a2ffc63cb8f
3
+ metadata.gz: a7fe914a06832d3670e34dc1a9b607fe8343058aa64528d8a0e322acf61b9611
4
+ data.tar.gz: 563e66def7cb78a08d246c1a0036ea8754a9346b36bc91e08230d15c6b38508d
5
5
  SHA512:
6
- metadata.gz: 26451e1ece5ca26fb8e630de935c00697236eb397581b740e366a95303b00e0e5d30158034d4a5c7d0705d9c89f99b3e5e028f7f10abc8f2d82f30ecec600499
7
- data.tar.gz: b6ca7c2ce137f831daca7c9c515229764cdc9ee3faa70d8008a348bd37b74a952c1944cdcc2c7bbc61d0b3e58d9b3cc8b20f915efc4e613fbb329fa627673944
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"
@@ -1,10 +1,13 @@
1
1
  # Defines the revision ID for the revision gem
2
2
  module Revision
3
- VERSION = "1.2.1"
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
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: revision
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cormac Cannon