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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f26bcf1444013719cae23a296b2c289749cc6581
4
- data.tar.gz: 1798b163446ae08f8e53fc401e1a9e07a4863129
3
+ metadata.gz: 28010201075ddc8366f5dcfe9749579ebcb55df7
4
+ data.tar.gz: 816c00133d329902687966811f7a3844fbea1fbb
5
5
  SHA512:
6
- metadata.gz: eda527f8759fcf1b75ab4937fce1da812f08f153661f5e97b5d6b76f709b40d7f8f7c9961e8c8a5cf0c5582eda9330809c3a6b26ff8235961280a4ea878c6e24
7
- data.tar.gz: 317271400eef6aeaa5fc345520ebeb5fe32dc0a642c1c14905921a26b2f5cabea65d053b86192f8e1c56266ab9605d298ff9e29cfabf2168f2363c52d5d3f4ef
6
+ metadata.gz: 1d4405320f47073af6da8a797f834ad70e37f3145f851f1d5d497d9fbcb26ae7f2aa51f1e8e8489a23536dbe04566701c9c00d33ef1611cf84f69c8a1ccb356f
7
+ data.tar.gz: ad3e77a380d37c96b0f341b4d21be135e47dda510c80e753fb0d406206c2358a5d47271cd07de16fe9411fd02f95a5cb4ea6f08990a586855ed8e59791ff16b4
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Mon Jun 20 10:46:33 BRT 2016 Luciano Prestes Cavalcanti <lucianopcbr@gmail.com>
2
+
3
+ * Fix bug on mkalias show
4
+
1
5
  Fri Jun 17 16:49:50 BRT 2016 Luciano Prestes Cavalcanti <lucianopcbr@gmail.com>
2
6
 
3
7
  * Add spec files on gemspec
@@ -1,3 +1,3 @@
1
1
  module Mkalias
2
- VERSION = '1.0.7'.freeze
2
+ VERSION = '1.0.8'.freeze
3
3
  end
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!) unless commands
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 include 'touch'
86
- expect(alias_commands['mv']).to include 'pwd'
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.7
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-17 00:00:00.000000000 Z
11
+ date: 2016-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler