mkalias 0.1.5 → 0.1.6

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: 3332ca74918b35a6d27d7ef173150bd05f9b7d74
4
- data.tar.gz: 3aa9ca2fa013850e75d112c8e697409b590623f6
3
+ metadata.gz: 6b076cc05bdb07b57e78571bca2ad990aa0f90e3
4
+ data.tar.gz: 94cd48b2b6bc8e02897eecade063ee8d3a14658b
5
5
  SHA512:
6
- metadata.gz: b2798b52d53e86d351e6049686df0985b461743de559f5dbd02e12f989f8f3f2f1f984be8cacd84940a472a27a4c0dc82287366e39029f017d400d26b04fe30d
7
- data.tar.gz: eed568799152b9b4ee352713f09e502903e8f008b7cf678921341438502e7f93cdfeacba0677f9edd8c6700ba65ebfa84f7d9a4a11f18dc0b5868939b7971718
6
+ metadata.gz: e11d3031e02fc8676f8233b0db72be75bfaf42cdf42fe28e76e8cad5800e42e5ccecf5a3ca8373d94f7b88516b92908cf2e0520232e5936b6aff010e8442dd37
7
+ data.tar.gz: 16b089a5b4c12a15922a7e631479684baa0c9039c7c76aa0d570d6773c6ade68b8fe008c95be302d93e1b4c8087509f73bb3c16a057b1af12cb016bb03a65349
data/.travis.yml CHANGED
@@ -3,4 +3,6 @@ language: ruby
3
3
  rvm:
4
4
  - 2.3.1
5
5
  before_install: gem install bundler -v 1.12.3
6
- script: bundle exec rspec spec
6
+ script:
7
+ - bundle exec rspec spec
8
+ - rake build
data/bin/mkalias CHANGED
@@ -49,11 +49,13 @@ def show_alias
49
49
  usage
50
50
  end
51
51
  alias_name = ARGV[1]
52
- alias_function = Mkalias.show_alias(alias_name)
52
+ commands = Mkalias.show_alias(alias_name)
53
53
 
54
- if alias_function
54
+ if commands
55
55
  puts "#{alias_name}:"
56
- puts " #{alias_function}"
56
+ commands.each do |command|
57
+ puts " #{command}"
58
+ end
57
59
  else
58
60
  puts "Alias [#{alias_name}] not founded"
59
61
  end
@@ -1,3 +1,3 @@
1
1
  module Mkalias
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
data/lib/mkalias.rb CHANGED
@@ -50,7 +50,7 @@ module Mkalias
50
50
 
51
51
  alias_functions.each do |function|
52
52
  result = function.match(function_regex)
53
- return result.captures.first.strip if result
53
+ return result.captures.first.split(';').each{ |c| c.strip! } if result
54
54
  end
55
55
 
56
56
  nil
data/mkalias.gemspec CHANGED
@@ -10,9 +10,10 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ['lucianopcbr@gmail.com']
11
11
 
12
12
  spec.summary = 'A program to create bash alias'
13
- spec.description = 'MKalias is a alias manage, when you can just add' \
14
- ' a command and you can add a new alias, list the' \
15
- ' alias, show the alias command or remove the alias.'
13
+ spec.description = 'MKalias is a bash alias manage, when you can just' \
14
+ ' add a command and you can add a new alias, list' \
15
+ ' the alias, show the alias command or remove the' \
16
+ ' alias.'
16
17
  spec.homepage = 'https://github.com/LucianoPC/mkalias'
17
18
  spec.license = 'GPL-3.0'
18
19
 
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: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luciano Prestes Cavalcanti
@@ -52,8 +52,8 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
- description: MKalias is a alias manage, when you can just add a command and you can
56
- add a new alias, list the alias, show the alias command or remove the alias.
55
+ description: MKalias is a bash alias manage, when you can just add a command and you
56
+ can add a new alias, list the alias, show the alias command or remove the alias.
57
57
  email:
58
58
  - lucianopcbr@gmail.com
59
59
  executables: