yoke 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -26,7 +26,7 @@ Prepare your current shell (bash or zsh) so that it loads the .yoke file every t
26
26
 
27
27
  yoke setup
28
28
 
29
- ### up
29
+ ### Up
30
30
 
31
31
  Create a new alias for the current directory with the name of the current directory.
32
32
 
@@ -36,7 +36,7 @@ Create a new alias for the current directory with the name of the current direct
36
36
 
37
37
  You can pass an extra parameter (the\_alias\_name) so that the alias will be this name instead of the current directory name.
38
38
 
39
- ### down
39
+ ### Down
40
40
 
41
41
  Remove the alias that exists with the name of the current directory.
42
42
 
@@ -45,7 +45,7 @@ Remove the alias that exists with the name of the current directory.
45
45
 
46
46
  You can pass an extra parameter (the\_alias\_name) so that the alias with this name will be removed instead of the current directory name.
47
47
 
48
- ### list
48
+ ### List
49
49
 
50
50
  Show the list of aliases created with yoke.
51
51
 
data/lib/yoke/alias.rb CHANGED
@@ -70,7 +70,7 @@ module Yoke
70
70
  end
71
71
 
72
72
  def alias_string(name, path)
73
- "alias #{name.squish.downcase.tr(" ","_")}=\"cd #{path}\""
73
+ "alias #{name.split.join('_').downcase}=\"cd #{path}\""
74
74
  end
75
75
  end
76
76
  end
data/lib/yoke/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Yoke
2
- VERSION = "0.1"
2
+ VERSION = "0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yoke
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: