appl 1.8 → 1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/appl.rb +4 -3
- data/lib/applfan.rb +3 -5
- 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: 163c100bd1d2a0ab224680a33b33ecc1496dee585e74daffdfe25611057e6037
|
4
|
+
data.tar.gz: b10b33c7d254a3ff68d53275da766a2ca4668ededd54735c748e7c25826d9017
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fdeab1e5d163954a585149fee970c9a6f552a1224ec803d92351a16807d36bc8a4f71612225a516722477b0490732830044f123b83cebd4c9c086b57138f8e3
|
7
|
+
data.tar.gz: 00d03be61474b82295ac21ccb600a49d5a2a55dbf1c451ada43b37361612280bf90c012aae63f2d92f121bc2af0faa71ae397723576bc58640d5ff8c2f615367
|
data/lib/appl.rb
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
class Application
|
7
7
|
|
8
|
-
APPL_VERSION = "1.
|
8
|
+
APPL_VERSION = "1.9".freeze
|
9
9
|
|
10
10
|
OPTIONS_ENV = nil
|
11
11
|
|
@@ -68,9 +68,10 @@ class Application
|
|
68
68
|
end
|
69
69
|
|
70
70
|
def execute
|
71
|
-
run
|
71
|
+
r = run
|
72
|
+
r = 0 unless Integer === r
|
72
73
|
warn_unprocessed
|
73
|
-
|
74
|
+
r
|
74
75
|
rescue SignalException
|
75
76
|
raise if @debug
|
76
77
|
self.class.show_message $!.inspect
|
data/lib/applfan.rb
CHANGED
@@ -70,11 +70,9 @@ class ApplicationFan
|
|
70
70
|
c or raise CommandError, self.class::NOCOMMAND
|
71
71
|
cmd = self.class.find_command c
|
72
72
|
cmd or raise CommandError, self.class::UNKNWNCMD % c
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
sub.warn_unprocessed
|
77
|
-
}
|
73
|
+
sub = cmd.new @args.slice! 0, @args.length
|
74
|
+
yield sub if block_given?
|
75
|
+
sub.execute
|
78
76
|
end
|
79
77
|
|
80
78
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.9'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bertram Scharpf
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
14
|
A base class for command line applications doing options parsing
|