shellopts 2.3.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c8545c5ef2b66679aa262ab499925ffa3e3a53e99df55844f658877a4722095
4
- data.tar.gz: adf2161d1a41f0161ed76031329a306677c88af739f341f01771eba863330a5c
3
+ metadata.gz: 62e1be2ce8220b6bec3fac551a2c44fef7ca52fa4cf1f1565e15836387a85bd9
4
+ data.tar.gz: b5872f570a32ff841cb632f18e390eb060fe746cd62d09347dd449782ce529ef
5
5
  SHA512:
6
- metadata.gz: 260e46338b058593f0561bf524e595455060101e0de1bec96e3209b15992318cd29ed99a188d539ac2d57dad7c818306249fa3104a23da8e9fc665c1a7cb13fe
7
- data.tar.gz: 221cc49626cdd1d172f570187facf4e3941420ec12fc2fbe16a3d73c56fcddf048db40381234726467f2be8f568a9f81c95c038db0d26edff7b6fe31b76090a9
6
+ metadata.gz: '08b6078dbf4690562e7e4d68cdbd27f2e840ba6440dbe8cbcb0aef932e27b2db959608bf3630f5725d2d8629691839546a41c72d6ea9f178c662a61e984b43be'
7
+ data.tar.gz: 49bd8f950a6f1e3ce457b974b88301f4052a597578f2379680f6b7bed8581f522860a679d9a9600427b37927ea5f9a3f110dbe857be14c564cd4e7c221b361ff
@@ -1,3 +1,3 @@
1
1
  module ShellOpts
2
- VERSION = "2.3.0"
2
+ VERSION = "2.3.1"
3
3
  end
data/lib/shellopts.rb CHANGED
@@ -439,14 +439,9 @@ module ShellOpts
439
439
  $stdout.send(method, message) if instance.debug && instance.program.__debug__
440
440
  end
441
441
 
442
- def self.quiet_flag
443
- end
444
-
445
- def self.verbose_flag
446
- end
447
-
448
- def self.debug_flag
449
- end
442
+ def self.quiet?() instance.program.quiet? end
443
+ def self.verbose?(level = 1) level <= instance.program.verbose end
444
+ def self.debug?() instance.program.debug? end
450
445
 
451
446
  module Message
452
447
  @is_included = false
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.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen