windirs 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/windirs.rb +2 -2
  3. data/windirs.gemspec +3 -2
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2875a828eee836d39ddd080820de78e21a32cd95
4
- data.tar.gz: 1f28a9a0e7ce8c4082be19e580cb8763dde8bbb4
3
+ metadata.gz: 204a1e74efef83de637382a48e5939346ca1fe57
4
+ data.tar.gz: 4900efec1616c0ce3c4d847a1f65e2ab9992bbf1
5
5
  SHA512:
6
- metadata.gz: 2f41e4abd2743320c1a43d63a707b96daa6be618b9a5aa534b633e0024ad56a466e707a7a89ea4ae20210523ab42191cf987ad026153890c6c9134711add1a5b
7
- data.tar.gz: 2c2a39ef5cfa4e387c76014e9586723f81a6bc899317404456797c64484fbd9078832ef38f82d7386ca59f56e2b86cb7cfc61b8039b6bda721125c9c9d61431e
6
+ metadata.gz: 4b39de712b47344b81000f3dbdb99ef10a21f71b6dfeccabbb96fe8dc6f6a5b5eba57da84183d459a0b4cdb111d3f3be2f03d97c3b8a237469adec41eb399c38
7
+ data.tar.gz: 257da79614264645aba3ac3bee1d0b30c1f15ef4017bc7f46e06c6a68e75446e1b93e025ef05c76773904e065564a01b01206357c71104b383122b296c4b28fb
@@ -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
- drive = @drive
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
@@ -1,7 +1,8 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'windirs'
3
- s.version = '0.0.2'
4
- s.date = '2014-03-24'
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.2
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-24 00:00:00.000000000 Z
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: '0'
38
+ version: 1.9.2
39
39
  required_rubygems_version: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - '>='