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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1339dc905a1dd19d26a40110d852ee0c4143299
4
- data.tar.gz: 1dbc820daddc633ac493121ba9d406086e1efd78
3
+ metadata.gz: ca08621e3878ebd6ab034b9046f0ed94425ad978
4
+ data.tar.gz: 5be2227361463716cd9b0870eee7b2769a079f50
5
5
  SHA512:
6
- metadata.gz: 63f3923ca072a228ad025651dc76796483377448dacf2d50404953550f84abc416004cd26a1d382eca6c8b6c3bae34ccbdf01f8ed11c20a953d591d1f0d34ffe
7
- data.tar.gz: 12fd7390034b537ccfd593e884ec1df93e7e05320a6b1ba150544c7ab30b4d7009ab41c56e121e27702719a4bb000f2cc831818960cd2afb08bc85ece5afa364
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
@@ -1,3 +1,3 @@
1
1
  module P4Util
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: p4util
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tristan Juricek