mkalias 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mkalias/version.rb +1 -1
- data/lib/mkalias.rb +2 -2
- 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: e52d5b1e76e8d1487e0e843188d18d9783dd29df
|
4
|
+
data.tar.gz: a204d6a4f8017a5e7ae694a16802341bf528d06c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 571cfbd2213bb6c48311f733ea291cfd0b5205e4c64db2d914122de840dd081047047a0fb47d9f818f4940308b42e7c8df7abeb1d55ddc458617a59dc71b67d5
|
7
|
+
data.tar.gz: a577b687803f7f10aa716a498ce0f2490627963133568b4cb77e6de605724406a7f8abae2095765ffffdd3f07a776eab250ce811173cb024d7a0b6654e04570e
|
data/lib/mkalias/version.rb
CHANGED
data/lib/mkalias.rb
CHANGED
@@ -28,7 +28,7 @@ module Mkalias
|
|
28
28
|
def self.list_alias(file_path=BASHRC_PATH)
|
29
29
|
alias_names = Set.new
|
30
30
|
|
31
|
-
alias_regex =
|
31
|
+
alias_regex = /mkalias_(.*?)\(/
|
32
32
|
|
33
33
|
alias_functions = File.foreach(file_path).grep(alias_regex)
|
34
34
|
alias_functions.each do |function|
|
@@ -96,7 +96,7 @@ module Mkalias
|
|
96
96
|
alias_names = Mkalias.list_alias(file_path)
|
97
97
|
return nil unless alias_names.include?(alias_name)
|
98
98
|
|
99
|
-
alias_regex =
|
99
|
+
alias_regex = /mkalias_#{alias_name}\(/
|
100
100
|
command_regex = /[{](.*)[;]/
|
101
101
|
|
102
102
|
alias_commands = File.foreach(file_path).grep(alias_regex)
|