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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3906747a497d13ee1e7ba9c102184c8b331f8a02333e6a96c2b7c7c9748c6006
4
- data.tar.gz: e4b407b8ab49895b7b2e222d59a35fcb88bb3df75449f94bbb797dbb80e5b362
3
+ metadata.gz: ef632532d3cd4b1aa83c037e246b18000d8b3852163c2a17e59c4ca9af11a1b2
4
+ data.tar.gz: 17ca0bc5a4a8f5b29ceb4d130339608fbfe0e94925d05dd9185f0b4304cbdaf2
5
5
  SHA512:
6
- metadata.gz: 4f008f01dcc0909988aeed3e1e0def4bf9372bd31c5bdad0d3c65efb56a4b841324984ddce8bf59a49a0d16b6375538322c581489bdb64d74866c4797c39aa45
7
- data.tar.gz: 44d1fe0700802ef288b5a087edcfb58110cc9b51e56b2282dc70bce8b161efa45f3601866709f317b81e42c47f16fd5379949da74eff76193ae31286e3717443
6
+ metadata.gz: e813c56df7e0680acc25733cc89afe7969cdecf592e555fb484d05fe8994f993d08e949198ef9b328018a1dfb7b7de7f823bb1b4f4e4ac538e1dbde8f79397cd
7
+ data.tar.gz: d083566cdc01944d3a30894e94ee025b73d2be9f70310b5df9184e50f701184117cfbfdd757421d7d9ae1e66be15de22d1522f86d477003a9f15a037cda1f5ca
@@ -1,3 +1,3 @@
1
1
  module ShellOpts
2
- VERSION = "2.7.0"
2
+ VERSION = "2.8.0"
3
3
  end
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.path = @@PROGRAM_PATH
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shellopts
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen