guess_os 0.1.3 → 0.1.4

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: 259b9c1978ab7104eaf832d2786f301a9938503296563e58e0e45b26fb5ff7a7
4
- data.tar.gz: '0968023e90094dc3383eb1f91f03d600d3f9465e816dd1a850098ac45c620de7'
3
+ metadata.gz: d0655c6c3f586055b59dfc5c105f7178c86f7f5ee080b658ce65efeb4e1c42d3
4
+ data.tar.gz: 45e22d8e748ae9773ca7f3770eee36b3614e7b9003bff5477b8a9cc616910126
5
5
  SHA512:
6
- metadata.gz: dc88fcd611e47d75d85deec09587f61a4e56529d33b9d58b2c7ffb58695e5cf3eaded13ad755607ed144333eccc5f3a25d12cd94793da29513a896b8701e1eea
7
- data.tar.gz: 21a798e8376998407fb0f1ed4972a1dfd9d2de0625eb47188972a03fc5b99e04ac99d5fd062013fa351f486d7662df85f15fb4ba35ba35ce86834c9a5d7d0c95
6
+ metadata.gz: c118fbad85e1f0a62e7fa6c6ebe8043b29fd1394993ad8ec8a56ef446fd6dad9bf9638fce7f76a147443cfb4683e324052efc42f394c08f94eff49b9d48de37b
7
+ data.tar.gz: d9ed263d155cb9cbcb996220d9520923f9ff67b7c5f40b4fe14ea54695f77d45484a0cca2d6b85de1a988bf7a3b0a857c7d424000d284157db98f40edf425224
data/bin/guess-os CHANGED
File without changes
data/lib/guess_os/conn.rb CHANGED
@@ -23,7 +23,12 @@ module GuessOS
23
23
  end
24
24
 
25
25
  def local_exec(command)
26
- output = `#{command}`
26
+ begin
27
+ output = `#{command}`
28
+ rescue
29
+ @ok = false
30
+ @status = "Error: Command not found!"
31
+ end
27
32
  if $?.exitstatus.zero?
28
33
  @ok = true
29
34
  @status = "Ok"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GuessOS
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Vargas
@@ -14,16 +14,16 @@ dependencies:
14
14
  name: net-ssh
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.2'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '5.2'
26
+ version: '0'
27
27
  description: Guess local or remote OS.
28
28
  email:
29
29
  - dvarrui@protonmail.com