shellopts 2.7.0 → 2.8.0
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/shellopts/version.rb +1 -1
- data/lib/shellopts.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ef632532d3cd4b1aa83c037e246b18000d8b3852163c2a17e59c4ca9af11a1b2
|
|
4
|
+
data.tar.gz: 17ca0bc5a4a8f5b29ceb4d130339608fbfe0e94925d05dd9185f0b4304cbdaf2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e813c56df7e0680acc25733cc89afe7969cdecf592e555fb484d05fe8994f993d08e949198ef9b328018a1dfb7b7de7f823bb1b4f4e4ac538e1dbde8f79397cd
|
|
7
|
+
data.tar.gz: d083566cdc01944d3a30894e94ee025b73d2be9f70310b5df9184e50f701184117cfbfdd757421d7d9ae1e66be15de22d1522f86d477003a9f15a037cda1f5ca
|
data/lib/shellopts/version.rb
CHANGED
data/lib/shellopts.rb
CHANGED
|
@@ -403,7 +403,11 @@ module ShellOpts
|
|
|
403
403
|
# The full path to the program. This is initialized when shellopts.rb is
|
|
404
404
|
# loaded so it is not affected by later changes of directory
|
|
405
405
|
@@PROGRAM_PATH = File.absolute_path($PROGRAM_NAME)
|
|
406
|
-
def self.
|
|
406
|
+
def self.program_path = @@PROGRAM_PATH
|
|
407
|
+
|
|
408
|
+
# The full path to the user's current directory when the program was called
|
|
409
|
+
@@ENVIRONMENT_PATH = File.absolute_path(Dir.getwd)
|
|
410
|
+
def self.environment_path = @@ENVIRONMENT_PATH
|
|
407
411
|
|
|
408
412
|
def self.process(spec, argv, silent: nil, quiet: nil, verbose: nil, debug: nil, **opts)
|
|
409
413
|
constrain silent, String, true, false, nil
|