appl 1.6 → 1.6.2
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/bin/intar +7 -7
- data/doc/demoappl +4 -5
- data/lib/appl.rb +4 -4
- data/lib/intar.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3006d9d18efb0699ffb9cce15b9f5ebad26dbe0d62e723b982ef010f0667d2fd
|
4
|
+
data.tar.gz: f13bdd180f26807607895846f19130a3e927b1cbb97bdc54beab2fc6f2d62762
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76f086e3cacbd25034ce77d242c0eae9d1b8c161f02a7cce354796f9d344751ce9425613357e945f9ef50e854ff7bbd84f8255b111cdecd21acc53b0be0b214c
|
7
|
+
data.tar.gz: 701155765e67cf6519b5cb91a8b528e65b14f2175bc6dd53dbb76d232c7a6c41bfa8a0e7467eb2bbed373fbde3ca9437e65f73a763658ba430487565e31d9e87
|
data/bin/intar
CHANGED
@@ -17,16 +17,16 @@ class IntarApp < Application
|
|
17
17
|
LICENSE = "BSD"
|
18
18
|
AUTHOR = "Bertram Scharpf <software@bertram-scharpf.de>"
|
19
19
|
|
20
|
-
DESCRIPTION =
|
21
|
-
Prompt for Ruby statements, evaluate them. This is a replacement
|
22
|
-
for "irb". The underlying library may be entered from inside any
|
23
|
-
Ruby program.
|
20
|
+
DESCRIPTION = <<~EOT
|
21
|
+
Prompt for Ruby statements, evaluate them. This is a replacement
|
22
|
+
for "irb". The underlying library may be entered from inside any
|
23
|
+
Ruby program.
|
24
24
|
|
25
|
-
Example:
|
25
|
+
Example:
|
26
26
|
|
27
|
-
|
27
|
+
$ intar -p '%(33 1)c%t%c%> '
|
28
28
|
|
29
|
-
EOT
|
29
|
+
EOT
|
30
30
|
|
31
31
|
def quiet!
|
32
32
|
Intar.show = nil
|
data/doc/demoappl
CHANGED
@@ -15,11 +15,10 @@ class DemoAppl < Application
|
|
15
15
|
LICENSE = "For internal use only"
|
16
16
|
AUTHOR = "Bertram Scharpf <software@bertram-scharpf.de>"
|
17
17
|
|
18
|
-
DESCRIPTION =
|
19
|
-
This is an example how to define an Application subclass.
|
20
|
-
The program just prints out its parameters.
|
21
|
-
|
22
|
-
EOT
|
18
|
+
DESCRIPTION = <<~EOT
|
19
|
+
This is an example how to define an Application subclass.
|
20
|
+
The program just prints out its parameters.
|
21
|
+
EOT
|
23
22
|
|
24
23
|
OPTIONS_ENV = "DEMO_OPTS"
|
25
24
|
|
data/lib/appl.rb
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
class Application
|
7
7
|
|
8
|
-
APPL_VERSION = "1.6".freeze
|
8
|
+
APPL_VERSION = "1.6.2".freeze
|
9
9
|
|
10
10
|
OPTIONS_ENV = nil
|
11
11
|
|
@@ -67,8 +67,8 @@ class Application
|
|
67
67
|
VERSION = "0"
|
68
68
|
NAME = "appl"
|
69
69
|
SUMMARY = "Dummy application"
|
70
|
-
DESCRIPTION =
|
71
|
-
This base class does nothing by default.
|
70
|
+
DESCRIPTION = <<~EOT
|
71
|
+
This base class does nothing by default.
|
72
72
|
EOT
|
73
73
|
|
74
74
|
def run
|
@@ -84,7 +84,7 @@ This base class does nothing by default.
|
|
84
84
|
rescue SignalException
|
85
85
|
raise if @debug
|
86
86
|
self.class.show_message $!.inspect
|
87
|
-
128 +
|
87
|
+
128 + $!.signo
|
88
88
|
rescue
|
89
89
|
raise if @debug
|
90
90
|
self.class.show_message "Error: #$!", "(#{$!.class})"
|
data/lib/intar.rb
CHANGED
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:
|
4
|
+
version: 1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bertram Scharpf
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
14
|
A base class for command line applications doing options parsing
|
@@ -43,7 +43,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
43
43
|
version: '0'
|
44
44
|
requirements:
|
45
45
|
- Just Ruby
|
46
|
-
rubygems_version: 3.0.
|
46
|
+
rubygems_version: 3.0.6
|
47
47
|
signing_key:
|
48
48
|
specification_version: 4
|
49
49
|
summary: Easy option parsing
|