rootee 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -4
- data/lib/rootee.rb +2 -2
- metadata +2 -2
data/README.md
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
This short script tries to find project root path based on common source control directory structure and project related files.
|
9
9
|
|
10
|
-
It is not 100%
|
10
|
+
It is not 100% accurate but works for most common cases.
|
11
11
|
|
12
12
|
## INSTALLATION:
|
13
13
|
|
@@ -19,15 +19,15 @@ It is not 100% accurately but works for most common cases.
|
|
19
19
|
|
20
20
|
To quickly jump to current project root in the shell. Add an alias to your zshrc or bshrc.
|
21
21
|
```sh
|
22
|
-
alias r='cd `rootee`'
|
22
|
+
alias r='cd "`rootee`"' # cd project root
|
23
23
|
```
|
24
24
|
|
25
25
|
### 2. Launch Source Management Tool
|
26
26
|
|
27
27
|
To quickly launch Source Tree, for example.
|
28
28
|
```sh
|
29
|
-
st ()
|
30
|
-
open -a SourceTree ${1:-`rootee`}
|
29
|
+
st (){
|
30
|
+
open -a SourceTree "${1:-`rootee`}"
|
31
31
|
}
|
32
32
|
```
|
33
33
|
|
data/lib/rootee.rb
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
# HomePage : https://github.com/zhaocai/rootee
|
8
8
|
# Version : 0.1
|
9
9
|
# Date Created : Fri 22 Mar 2013 11:09:31 PM EDT
|
10
|
-
# Last Modified :
|
10
|
+
# Last Modified : Sat 23 Mar 2013 06:54:03 PM EDT
|
11
11
|
# Tag : [ ruby, project, path ]
|
12
12
|
# Copyright : © 2013 by Zhao Cai,
|
13
13
|
# Released under current GPL license.
|
@@ -16,7 +16,7 @@
|
|
16
16
|
require 'pathname'
|
17
17
|
|
18
18
|
class Rootee
|
19
|
-
VERSION = "1.0.
|
19
|
+
VERSION = "1.0.2"
|
20
20
|
|
21
21
|
attr_accessor :marker
|
22
22
|
attr_accessor :end_path
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rootee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -47,7 +47,7 @@ description: ! 'This short script tries to find project root path based on commo
|
|
47
47
|
source control directory structure and project related files.
|
48
48
|
|
49
49
|
|
50
|
-
It is not 100%
|
50
|
+
It is not 100% accurate but works for most common cases.'
|
51
51
|
email:
|
52
52
|
- caizhaoff@gmail.com
|
53
53
|
executables:
|