mkalias 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/lib/mkalias/version.rb +1 -1
- data/lib/mkalias.rb +1 -1
- data/spec/mkalias_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28010201075ddc8366f5dcfe9749579ebcb55df7
|
4
|
+
data.tar.gz: 816c00133d329902687966811f7a3844fbea1fbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d4405320f47073af6da8a797f834ad70e37f3145f851f1d5d497d9fbcb26ae7f2aa51f1e8e8489a23536dbe04566701c9c00d33ef1611cf84f69c8a1ccb356f
|
7
|
+
data.tar.gz: ad3e77a380d37c96b0f341b4d21be135e47dda510c80e753fb0d406206c2358a5d47271cd07de16fe9411fd02f95a5cb4ea6f08990a586855ed8e59791ff16b4
|
data/ChangeLog
CHANGED
data/lib/mkalias/version.rb
CHANGED
data/lib/mkalias.rb
CHANGED
@@ -95,7 +95,7 @@ module Mkalias
|
|
95
95
|
|
96
96
|
file_text = File.open(file_path, &:read)
|
97
97
|
commands = file_text.scan(command_regex).flatten.first
|
98
|
-
commands = commands.split(';').each(&:strip!)
|
98
|
+
commands = commands.split(';').each(&:strip!) if commands
|
99
99
|
|
100
100
|
commands
|
101
101
|
end
|
data/spec/mkalias_spec.rb
CHANGED
@@ -82,8 +82,8 @@ describe Mkalias do
|
|
82
82
|
alias_commands = Mkalias.show_alias(%w(cd mv fkd), FILE_PATH)
|
83
83
|
|
84
84
|
expect(alias_commands['cd']).to include 'ls -la'
|
85
|
-
expect(alias_commands['mv']).to
|
86
|
-
expect(alias_commands['mv']).to
|
85
|
+
expect(alias_commands['mv'][0]).to eq 'touch'
|
86
|
+
expect(alias_commands['mv'][1]).to eq 'pwd'
|
87
87
|
expect(alias_commands['fkd']).to include 'flake8 $(git ls-files -m) $@'
|
88
88
|
end
|
89
89
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mkalias
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luciano Prestes Cavalcanti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|