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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1948f9aa0438885fe26d111aff8ffc7b97ab1f6e
4
- data.tar.gz: cacd144cb21b36258d1e129b3da46c560ee2e442
3
+ metadata.gz: e52d5b1e76e8d1487e0e843188d18d9783dd29df
4
+ data.tar.gz: a204d6a4f8017a5e7ae694a16802341bf528d06c
5
5
  SHA512:
6
- metadata.gz: d97cd21536fb5a1d58533ff7c6ae14cf93ba5a87745c545ca1a92da0e1de667f1cf6f2f5e7f6a5add46df4c69e925589831a6072fa6c064a2c29d9879963d0a3
7
- data.tar.gz: 42b5d41f02465b52790105b2012d1257e3f0ad1d19b57c0d8b7500ce00eab5e2cce4a17c9da1de10e5e23172fece86d6fcc0468a849f132e41b2aff8c3293e58
6
+ metadata.gz: 571cfbd2213bb6c48311f733ea291cfd0b5205e4c64db2d914122de840dd081047047a0fb47d9f818f4940308b42e7c8df7abeb1d55ddc458617a59dc71b67d5
7
+ data.tar.gz: a577b687803f7f10aa716a498ce0f2490627963133568b4cb77e6de605724406a7f8abae2095765ffffdd3f07a776eab250ce811173cb024d7a0b6654e04570e
@@ -1,3 +1,3 @@
1
1
  module Mkalias
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
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 = /\bmkalias_(.*)[(]/
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 = /\bmkalias_#{alias_name}[(]/
99
+ alias_regex = /mkalias_#{alias_name}\(/
100
100
  command_regex = /[{](.*)[;]/
101
101
 
102
102
  alias_commands = File.foreach(file_path).grep(alias_regex)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mkalias
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luciano Prestes Cavalcanti