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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce631b689bbc4979a0e41010e6b2a4ff738720dc
4
- data.tar.gz: 1c7d8fd45479035487c98333b971d7226529b7d8
3
+ metadata.gz: 09420f1871db8c2cc1f83c3580dd15ef76268031
4
+ data.tar.gz: ac2c651c5a16f918003bb754aa9bd519166be9b6
5
5
  SHA512:
6
- metadata.gz: 5169efa6ceb142cbed8d025d726c8a99c8f3f0bf079bdcd76831aed59723c80ce58a199bde23fec58d24da3ed199a5fa03445f6602e7a1879a77b78d5bf7c28e
7
- data.tar.gz: 6aa9681a173db92a68be2da77bcc6c1907864324d20705136a45b4b1b341386380a59189056c137ce8547b9d20fae67fba16bba63e31c166f90e25773a6c25a1
6
+ metadata.gz: 42cf8a068922c3e1f7731451f5ea23380f80a78bec0605f21cd71b6e8b5151f614f1cc8ccda6619d5678d3b8cadc8bb0f6100c270994d11013d1b83212468670
7
+ data.tar.gz: 9b7e0094b06fafd2274a14ae1b9e857dcd402f525f218893ce423d6672a77dde5f9fe6701e67d275b39a824bdcde1bdac15f1fe0f38a928821b2e9b77bcae3c8
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Yoke
2
- VERSION = "0.4"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yoke
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.4'
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jelle Vandebeeck