cmdparse 3.0.6 → 3.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +0 -1
- data/VERSION +1 -1
- data/doc/default.template +1 -1
- data/doc/news.page +8 -0
- data/lib/cmdparse.rb +5 -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: 9d2caaf516131b40394d24f15510e829208323ceafb73e6bdf66230484c8fc54
|
4
|
+
data.tar.gz: 821bc8367ff510850f9cb2e4586d48d49c16d7d4ba0a2af97c8b582c32259dab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a02d21a0267e5bb53b3fed534f40949a7d91d76caf3cea443af7d9169c8b88984332004d05c227df2248212a659df1bc0e16148cdfa66e1bc37883e3a236c11
|
7
|
+
data.tar.gz: e92d85dc7eb80cd8c4c99bb2937d0a4408e0e522a1716a5263daea3da427056caff4c244b6a1a546e81f6f17884884e414df11b5283998eb876bef06a634ef0d
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.7
|
data/doc/default.template
CHANGED
data/doc/news.page
CHANGED
@@ -5,6 +5,14 @@ sort_info: 8
|
|
5
5
|
---
|
6
6
|
## News
|
7
7
|
|
8
|
+
### 2020-12-08 cmdparse 3.0.7 released!
|
9
|
+
|
10
|
+
Changes:
|
11
|
+
|
12
|
+
* Behave well when interrupted via <kbd>Control+C</kbd> and when used in a pipe that gets closed
|
13
|
+
(thanks to postmodern)
|
14
|
+
|
15
|
+
|
8
16
|
### 2020-05-02 cmdparse 3.0.6 released!
|
9
17
|
|
10
18
|
Changes:
|
data/lib/cmdparse.rb
CHANGED
@@ -47,7 +47,7 @@ end
|
|
47
47
|
module CmdParse
|
48
48
|
|
49
49
|
# The version of this cmdparse implemention
|
50
|
-
VERSION = '3.0.
|
50
|
+
VERSION = '3.0.7'.freeze
|
51
51
|
|
52
52
|
|
53
53
|
# Base class for all cmdparse errors.
|
@@ -898,6 +898,10 @@ module CmdParse
|
|
898
898
|
@main_command.commands['help'].execute(*@current_command.command_chain.map(&:name))
|
899
899
|
end
|
900
900
|
exit(64) # FreeBSD standard exit error for "command was used incorrectly"
|
901
|
+
rescue Interrupt
|
902
|
+
exit(128 + 2)
|
903
|
+
rescue Errno::EPIPE
|
904
|
+
# Behave well when used in a pipe
|
901
905
|
ensure
|
902
906
|
@current_command = nil
|
903
907
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmdparse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Leitner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: webgen
|