yoke 0.4 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yoke/alias.rb +3 -3
- data/lib/yoke/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: 09420f1871db8c2cc1f83c3580dd15ef76268031
|
4
|
+
data.tar.gz: ac2c651c5a16f918003bb754aa9bd519166be9b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42cf8a068922c3e1f7731451f5ea23380f80a78bec0605f21cd71b6e8b5151f614f1cc8ccda6619d5678d3b8cadc8bb0f6100c270994d11013d1b83212468670
|
7
|
+
data.tar.gz: 9b7e0094b06fafd2274a14ae1b9e857dcd402f525f218893ce423d6672a77dde5f9fe6701e67d275b39a824bdcde1bdac15f1fe0f38a928821b2e9b77bcae3c8
|
data/lib/yoke/alias.rb
CHANGED
@@ -7,7 +7,7 @@ module Yoke
|
|
7
7
|
aliases = {}
|
8
8
|
File.readlines(Yoke::Base.alias_file_path).each do |line|
|
9
9
|
if line.start_with? "alias"
|
10
|
-
alias_extract = line.scan(/^alias\s(\w+)\=\"cd (.+)\"$/).last
|
10
|
+
alias_extract = line.scan(/^alias\s(\w+)\=\"cd '(.+)'\"$/).last
|
11
11
|
aliases[alias_extract[0]] = alias_extract[1]
|
12
12
|
end
|
13
13
|
end
|
@@ -23,7 +23,7 @@ module Yoke
|
|
23
23
|
added = false
|
24
24
|
File.readlines(Yoke::Base.alias_file_path).each do |line|
|
25
25
|
if line.start_with? "alias"
|
26
|
-
alias_extract = line.scan(/^alias\s(\w+)\=\"cd (.+)\"$/).last
|
26
|
+
alias_extract = line.scan(/^alias\s(\w+)\=\"cd '(.+)'\"$/).last
|
27
27
|
if alias_extract[1] == path
|
28
28
|
content << alias_string(name, path)
|
29
29
|
added = true
|
@@ -53,7 +53,7 @@ module Yoke
|
|
53
53
|
content = []
|
54
54
|
File.readlines(Yoke::Base.alias_file_path).each do |line|
|
55
55
|
if line.start_with? "alias"
|
56
|
-
alias_extract = line.scan(/^alias\s(\w+)\=\"cd (.+)\"$/).last
|
56
|
+
alias_extract = line.scan(/^alias\s(\w+)\=\"cd '(.+)'\"$/).last
|
57
57
|
if alias_extract[0] != name
|
58
58
|
content << line
|
59
59
|
end
|
data/lib/yoke/version.rb
CHANGED