windirs 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/windirs.rb +2 -2
- data/windirs.gemspec +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 204a1e74efef83de637382a48e5939346ca1fe57
|
4
|
+
data.tar.gz: 4900efec1616c0ce3c4d847a1f65e2ab9992bbf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b39de712b47344b81000f3dbdb99ef10a21f71b6dfeccabbb96fe8dc6f6a5b5eba57da84183d459a0b4cdb111d3f3be2f03d97c3b8a237469adec41eb399c38
|
7
|
+
data.tar.gz: 257da79614264645aba3ac3bee1d0b30c1f15ef4017bc7f46e06c6a68e75446e1b93e025ef05c76773904e065564a01b01206357c71104b383122b296c4b28fb
|
data/lib/windirs.rb
CHANGED
@@ -124,10 +124,10 @@ module Windirs
|
|
124
124
|
return self unless ENV['OS'] == 'Windows_NT'
|
125
125
|
|
126
126
|
# FIXME try to get path to net if on Cygwin and can't see net
|
127
|
-
net_use = `net use #{@drive}
|
127
|
+
net_use = `net use #{@drive}: 2>&1`
|
128
128
|
return self unless $?.exitstatus == 0
|
129
129
|
remote_line = net_use.split("\r\n").select{|l| l =~ /^Remote name\s*/}
|
130
|
-
|
130
|
+
return self unless remote_line.length == 1
|
131
131
|
drive = remote_line[0].sub(/^Remote name\s*/, '')
|
132
132
|
Path.new "#{drive}#{@dirs}"
|
133
133
|
end
|
data/windirs.gemspec
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'windirs'
|
3
|
-
s.version = '0.0.
|
4
|
-
s.date = '2014-03-
|
3
|
+
s.version = '0.0.3'
|
4
|
+
s.date = '2014-03-25'
|
5
|
+
s.required_ruby_version = '>=1.9.2'
|
5
6
|
s.summary = "translate between Cygwin, Windows, and Unix file paths"
|
6
7
|
s.description = "Handy ways for dealing with directory paths when you are not
|
7
8
|
sure what platform your code will be running on, but you are
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: windirs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Noah Birnel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |-
|
14
14
|
Handy ways for dealing with directory paths when you are not
|
@@ -35,7 +35,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
35
35
|
requirements:
|
36
36
|
- - '>='
|
37
37
|
- !ruby/object:Gem::Version
|
38
|
-
version:
|
38
|
+
version: 1.9.2
|
39
39
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
41
|
- - '>='
|