shellopts 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shellopts/args.rb +3 -3
- data/lib/shellopts/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: 130dd1af11ce3370f270266c9a6b48bda041cdaa195526394b1740e21a5501b8
|
4
|
+
data.tar.gz: 51a3b79454a7fcbca825a3a227da2c9349263b9bb321611f69f4047d24dd0d78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7444f82972751e540863b31451b6bc2990bb3bc28e6904e2a42fe8dbdd80bf79246a3da29ae3300ff9168fa0f9f85202cd9efdac8d6c1fdc3780e6587c0e4a51
|
7
|
+
data.tar.gz: 7b37d02c7f1b006b7d2120f563f6ce7e6e4f56cad2c68e53abd6eb4ec24c7c2b8949448eb79c49e18ae7096355495e49a79c79e36d6133253775f1838fcd20bc
|
data/lib/shellopts/args.rb
CHANGED
@@ -46,8 +46,8 @@ module ShellOpts
|
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
|
-
# As #extract except
|
50
|
-
#
|
49
|
+
# As #extract except the array is expected to be emptied by the operation.
|
50
|
+
# Raise a #inoa exception if count is negative
|
51
51
|
#
|
52
52
|
# #expect raise a ShellOpts::Error exception if the array is not emptied
|
53
53
|
# by the operation
|
@@ -57,7 +57,7 @@ module ShellOpts
|
|
57
57
|
when Range
|
58
58
|
count_or_range === self.size or inoa(message)
|
59
59
|
when Integer
|
60
|
-
count_or_range >= 0 or
|
60
|
+
count_or_range >= 0 or inoa(message)
|
61
61
|
count_or_range.abs == self.size or inoa(message)
|
62
62
|
end
|
63
63
|
extract(count_or_range) # Can't fail
|
data/lib/shellopts/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shellopts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Claus Rasmussen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: forward_to
|