clir 0.23.0 → 0.24.0

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: b13a530ef051d62ff909c16a29edb4ad2dbc245f51faf4b87004af0efda9cff7
4
- data.tar.gz: 050fc8a329008aed78dbe7132071b694cb91a260069c79ddc31be57426fca2ee
3
+ metadata.gz: 2d53290b6d837c966b5f469f575ba98ab17aa2b56e436c723cc8c0e694263491
4
+ data.tar.gz: 58b30552dc64a88a8f7e829bf99753703068b94c00d4e60fe5a275b785a24355
5
5
  SHA512:
6
- metadata.gz: 598f8f9323881d6ce84fa4ace88eb052df61e3de32208f6260d9986132ece7de792517703c0d2af71e892f9403e7a8475d60d30aef722b983eb3183776dc2178
7
- data.tar.gz: f34e2e3edee84775696f72ee512eca3dd4567e5f2fb578f94e1eff3943d9fed69db3244ede2d81ea9df6b420839d89818a53c59b9cba1f597eac697f56250be7
6
+ metadata.gz: c8081cb8a5214b8800462c1a998168b7f5b9813fa2d2534c4784fb687c3f9c777349ece07df4a4a244351af1975a30a31e1ba4db15b0b227a834491c15673968
7
+ data.tar.gz: eeb5240cca755a5c8793f9367640b017a4bb83bbba07995fcd3a7eb85ceec37ef8dca3ecca75530207fb35b0d48101b912f0868316daae1bcafb8defffc98c1e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ * 0.24.0
2
+
3
+ - Ajout de `version?` qui permet de demande l’affichage de la version de l’application avec `<app> -v` ou `<app> --version`. L’application doit alors traiter la commande `version`.
4
+
1
5
  * 0.22.1
2
6
 
3
7
  - Rationnalisation de la méthode `CSV.foreach_backward` qui, maintenant, fonctionne plus
data/lib/clir/CLI.mod.rb CHANGED
@@ -210,6 +210,7 @@ class << self
210
210
  :q => :quiet,
211
211
  :v => :verbose,
212
212
  :x => :debug,
213
+ :v => :version,
213
214
  }.merge(app_options_table)
214
215
  end
215
216
  end
@@ -36,11 +36,16 @@ class << self
36
36
  :TRUE == @__helpon ||= true_or_false(CLI.options[:help] === true || ['help','aide'].include?(CLI.main_command))
37
37
  end
38
38
 
39
+ def version?
40
+ :TRUE == @__versionon ||= true_or_false(CLI.options[:version] === true || ['version'].include?(CLI.main_command))
41
+ end
42
+
39
43
  def reset
40
44
  @__isverbose = nil
41
45
  @__debugon = nil
42
46
  @__teston = nil
43
47
  @__helpon = nil
48
+ @__versionon = nil
44
49
  end
45
50
 
46
51
  end #/<< self
data/lib/clir/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Clir
2
- VERSION = "0.23.0"
2
+ VERSION = "0.24.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clir
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philippe Perret
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-11 00:00:00.000000000 Z
11
+ date: 2023-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest