p4util 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/osutil.rb +6 -0
- data/lib/p4_util/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca08621e3878ebd6ab034b9046f0ed94425ad978
|
4
|
+
data.tar.gz: 5be2227361463716cd9b0870eee7b2769a079f50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ee68971ece495b7f3d3f7695e666e3b443d08a24e26c4d8a90b1a6a83df83d786c024c1d3ab12cb7980812028afa298508fae54628411d572a33e742348b347
|
7
|
+
data.tar.gz: b2f844d7ba44aabffadbdbdcd317d623d0e9b671633de45290f784ad466549bd0aa6949b14cd64ba1f6523db658e328f3ebde00b209323c1a175b39ca302a16a
|
data/lib/osutil.rb
CHANGED
@@ -23,11 +23,17 @@ module OsUtil
|
|
23
23
|
RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
|
24
24
|
end
|
25
25
|
|
26
|
+
def OsUtil::linux?
|
27
|
+
RbConfig::CONFIG['host_os'] =~ /linux/
|
28
|
+
end
|
29
|
+
|
26
30
|
def OsUtil.platform_dir_prefix
|
27
31
|
if osx?
|
28
32
|
'darwin90'
|
29
33
|
elsif windows?
|
30
34
|
'nt'
|
35
|
+
elsif linux?
|
36
|
+
'linux26'
|
31
37
|
else
|
32
38
|
raise "OsUtil doesn't know platform: #{RbConfig::CONFIG['host_os']}"
|
33
39
|
end
|
data/lib/p4_util/version.rb
CHANGED