opp 0.0.1 → 0.0.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/lib/opp.rb +4 -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: b0f6b8d7e586fcc483ca32e11ab0ebcf47ec4fb50854856a502c9b6df830887f
|
|
4
|
+
data.tar.gz: 5ede41ee0578de99798c34c0b46bb2408067c64aa8882a0304b963c2d0f53a76
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ef4731ba994d032d739a60d1b73739e43c6f9b9247526009c0c6146cb4c82311b1832aa6c57299d1901676d2feca4df0a0b2ceba2455e997c8f0be966ebdfa4d
|
|
7
|
+
data.tar.gz: dfa94f7d8376367e5e2d51038aaaadd5bd3e3b2ba7eca0baefc6a08eb4fbf1b6675ed4e1bb3f23a73064030539e66b361072a5d5ff202863d6edd593227e5b87
|
data/lib/opp.rb
CHANGED
|
@@ -55,7 +55,10 @@ while true
|
|
|
55
55
|
|
|
56
56
|
arg = ARGV.first
|
|
57
57
|
case arg
|
|
58
|
-
when '--'
|
|
58
|
+
when '--' # this should be removed from the options if encountered
|
|
59
|
+
ARGV.shift
|
|
60
|
+
break
|
|
61
|
+
when '', /\A[^-]/ # this is for breaking early, otherwise the else section would handle these
|
|
59
62
|
break
|
|
60
63
|
when /\A--(?<name>[a-zA-Z_][a-zA-Z0-9_-]*)(?<value>=.*)?\z/
|
|
61
64
|
rem = Regexp.last_match
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: opp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Astra
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-09-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Parses options passed on the command-line and assigns them to eponymous
|
|
14
14
|
global variables, similar in functionality to Ruby interpreter's `-s` flag but with
|