dev_commands 0.0.24 → 0.0.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/command.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d2f33d43fe9f2fd56a26bbf07a2a5a1c930f608
4
- data.tar.gz: 43b67c8923bf42129f1c186db42cf98f6a9cf752
3
+ metadata.gz: cf409f59ec9828be63d4562c2ff738265c7e3e60
4
+ data.tar.gz: 205385c27922be4e6c669e104e6774bb86a090f6
5
5
  SHA512:
6
- metadata.gz: b3fa1d8f8f987acdd988a27dc3a8de95aeb3047cef5983412c80914b54806fe0ba70c6cced0922f8134a76aa9ddeafc99e05558124126963678752361c1d5dbd
7
- data.tar.gz: d9cebdf56480155b5e23dbffd49bae4406df5f635c0f9bed2d4a8aee7d41cd672f5ecc3aa24620a25849b5401b89e633d49280b81be1f91c4903f9bb4844ccf1
6
+ metadata.gz: 9f4cc9b8509db05aa6ed0a23532e4d18da5653f0239c9603e12404f9abd85635664ed4e64a5244c94b014243d4dd464ceff5148e32f7a83be2bb8b2964d0e96c
7
+ data.tar.gz: 843faae67ae8a81e127cf6f360c3926b28c34cc1a5c9d80f6027cddd55428c89b76713f42b2f1c1a513bd09d5a60f6734a21198ede4ae3246a6e73035744134c
@@ -29,7 +29,7 @@ class Command < Hash
29
29
  end
30
30
 
31
31
  def execute
32
- puts "#{self[:input]}" if(!self.has_key?(:quiet) || self[:quiet])
32
+ puts "#{self[:input]}" if(!self.has_key?(:quiet) || !self[:quiet])
33
33
  pwd=Dir.pwd
34
34
  Dir.chdir(self[:directory]) if(self.has_key?(:directory) && File.exists?(self[:directory]))
35
35
  self[:directory] = pwd if(self[:directory].length==0)
@@ -68,7 +68,7 @@ class Command < Hash
68
68
  Dir.chdir(pwd) if pwd != Dir.pwd
69
69
 
70
70
  if(self[:exit_code] != 0)
71
- if(!self.has_key?(:quiet) || self[:quiet])
71
+ if(!self.has_key?(:quiet) || !self[:quiet])
72
72
  puts ' '
73
73
  puts "exit_code=#{self[:exit_code]}"
74
74
  puts ' '
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev_commands
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.24
4
+ version: 0.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow