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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/clir/CLI.mod.rb +1 -0
- data/lib/clir/state_methods.rb +5 -0
- data/lib/clir/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d53290b6d837c966b5f469f575ba98ab17aa2b56e436c723cc8c0e694263491
|
4
|
+
data.tar.gz: 58b30552dc64a88a8f7e829bf99753703068b94c00d4e60fe5a275b785a24355
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/lib/clir/state_methods.rb
CHANGED
@@ -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
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.
|
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-
|
11
|
+
date: 2023-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|