plat4m 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/plat4m/sniff/darwin.rb +4 -0
- data/lib/plat4m/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: 685c2e4edcc91906cd86fe043ac708f5e13d5abdea21f3e5eb6cc0607bd2c5ed
|
4
|
+
data.tar.gz: a8b9a9ae28e64180015b6c63b7d7e82915a5b38e22df138680705748c8a3c9ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e0b8127692a652b625c17c94740a1202e1fafcb6a02b14e6658798ab72f53109a7b49ca02c788ea61264ae9b2b2d21968e8c612b023dfeca14ec29fecac544e
|
7
|
+
data.tar.gz: c1e1a4006bddac350fd68b54f9b09fe46d0360810c8223fda7282d33cc7828ce3981b22e3cd0b00b690c4433827cb3940681fb55b7918b243425db00562e28c0
|
data/lib/plat4m/sniff/darwin.rb
CHANGED
@@ -36,6 +36,10 @@ module Plat4m
|
|
36
36
|
distro: 'macosx'
|
37
37
|
}
|
38
38
|
ver = `sw_vers --productVersion`.strip
|
39
|
+
if ver =~ /Usage:\s+sw_vers/
|
40
|
+
# older MacOSX
|
41
|
+
ver = `sw_vers -productVersion`.strip
|
42
|
+
end
|
39
43
|
distro[:release] = ver.split('.').first
|
40
44
|
distro[:version] = ver
|
41
45
|
distro[:pkgman] = MacPkgManager.new
|
data/lib/plat4m/version.rb
CHANGED