guess_os 0.1.4 → 0.1.5

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: d0655c6c3f586055b59dfc5c105f7178c86f7f5ee080b658ce65efeb4e1c42d3
4
- data.tar.gz: 45e22d8e748ae9773ca7f3770eee36b3614e7b9003bff5477b8a9cc616910126
3
+ metadata.gz: 47c1263e955ca82ce23c5a741a9067f1afc2cdea0a197a4c0a804004c9962dcf
4
+ data.tar.gz: 89a13c127dd5364fe0cd49aada109d2286d339b4df81d6e1f0e393c98662a2f0
5
5
  SHA512:
6
- metadata.gz: c118fbad85e1f0a62e7fa6c6ebe8043b29fd1394993ad8ec8a56ef446fd6dad9bf9638fce7f76a147443cfb4683e324052efc42f394c08f94eff49b9d48de37b
7
- data.tar.gz: d9ed263d155cb9cbcb996220d9520923f9ff67b7c5f40b4fe14ea54695f77d45484a0cca2d6b85de1a988bf7a3b0a857c7d424000d284157db98f40edf425224
6
+ metadata.gz: fc7a8c814b3656ce594e6842434d04bd66c50f3e8dc0dedd43f4cb2963deb13a3eebe61a450e6a3f64c87571e0e41d3a23b75e330225f58088561faa05ce91c0
7
+ data.tar.gz: 14fb73b8162fbe59b1667ddaf133a505e0142d21cdd28e6fc699b3d08ec471d0f3184c07f20aae4574948d63928b74315fd7845ef8316d5d2de0c2d54d0e0aea
data/lib/guess_os/conn.rb CHANGED
@@ -29,7 +29,10 @@ module GuessOS
29
29
  @ok = false
30
30
  @status = "Error: Command not found!"
31
31
  end
32
- if $?.exitstatus.zero?
32
+ if $?.nil?
33
+ @ok = false
34
+ @status = "Error: Command not found!"
35
+ elsif $?.exitstatus.zero?
33
36
  @ok = true
34
37
  @status = "Ok"
35
38
  else
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GuessOS
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  NAME = "guess_os"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guess_os
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Vargas