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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/opp.rb +4 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81ad8ada6040b0889e5ecb235ac3c3f6984861a873c6b43ccef2983302d36329
4
- data.tar.gz: 7274afc3ef775161202bf0ecd3347d3e960b6a73c09481185d9531819af7445b
3
+ metadata.gz: b0f6b8d7e586fcc483ca32e11ab0ebcf47ec4fb50854856a502c9b6df830887f
4
+ data.tar.gz: 5ede41ee0578de99798c34c0b46bb2408067c64aa8882a0304b963c2d0f53a76
5
5
  SHA512:
6
- metadata.gz: ccac5009a2952880b2da533090bde8734301a8348ecc1b11e5cb86cc5a0a663b5ba12d2edf6ecf7fc927da8058c35a6bb953e611f9b95e4e504aa6b0ba729955
7
- data.tar.gz: c2e5a220072aa313e6e92bdf9f92d77a2da513f1a7ce800672e12006f9977bccc0d15736e6797a4c444cfc63254c27973d51859b06683360423c56fd73323a72
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 '--', '', /\A[^-]/ # this is for breaking early, otherwise the else section would handle these
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.1
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: 2025-10-02 00:00:00.000000000 Z
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