guess_os 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/guess_os/type/macos.rb +2 -2
- data/lib/guess_os/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba356d23160fed5e9c5140051e7730c5809d009c652abd46853602860f4ea95b
|
4
|
+
data.tar.gz: 40cfd67eab46e8b660674485f376cef975bdc8c8750340250c08082d749d02e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae9c0fdebc54324cc87354185cacd60c80e031c0e6a6a39600787b876736dfc17d4901c57711f0814133d571ce04309ddfa1363e9c7b230ee9ebeb870372c92f
|
7
|
+
data.tar.gz: 0d781a88af5f58df23274f325fc1a61da06752bb6ec847e3607b5f65883aa58b7bc3092e59f699286c991792d7198964a83084b342262a08644665cf5e851888
|
data/lib/guess_os/type/macos.rb
CHANGED
@@ -11,7 +11,7 @@ class MacOS
|
|
11
11
|
# ProductVersion: 10.7.4
|
12
12
|
|
13
13
|
identified = conn.ok && conn.last_output.include?("Mac OS")
|
14
|
-
return
|
14
|
+
return GuessOS::OS.new(:unkown, :unkown, conn.status) unless identified
|
15
15
|
|
16
16
|
command = "sw_vers | grep ProductVersion"
|
17
17
|
conn.exec(command)
|
@@ -21,6 +21,6 @@ class MacOS
|
|
21
21
|
type = :macos
|
22
22
|
name = "Mac OS #{items[2].split(".").first}"
|
23
23
|
desc = output
|
24
|
-
|
24
|
+
GuessOS::OS.new(type, name, desc)
|
25
25
|
end
|
26
26
|
end
|
data/lib/guess_os/version.rb
CHANGED