gitsh 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +21 -12
- data/gitsh.gemspec +1 -1
- data/lib/gitsh/shell.rb +5 -1
- data/lib/gitsh/version.rb +1 -1
- 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: 9339faf98dd7161fc9868da1ec271b0c7d10648f
|
4
|
+
data.tar.gz: a044f1c098c6e0492d004f5fda19c5e74fd95db1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3938f56dcd90b26c447f997e2423694f3e51e85199a5ebfc6b59d7b956b169789f1422b57ca7993e085bde48c1a14eee5e13e495430bffadca905a2ed1cc90cf
|
7
|
+
data.tar.gz: 47c7a78189b1f04cf5bc13da4fb2af886047a8ce628d70d1a4bc4806d89b3a5c44c85d4460d7258f996bcfeeb32b52f93b2c4adcb937b9880b80e42e49106856
|
data/README.md
CHANGED
@@ -1,24 +1,33 @@
|
|
1
1
|
# Gitsh
|
2
2
|
|
3
|
-
|
3
|
+
Git shell
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
Add this line to your application's Gemfile:
|
8
|
-
|
9
|
-
gem 'gitsh'
|
10
|
-
|
11
|
-
And then execute:
|
12
|
-
|
13
|
-
$ bundle
|
14
|
-
|
15
|
-
Or install it yourself as:
|
16
|
-
|
17
7
|
$ gem install gitsh
|
18
8
|
|
19
9
|
## Usage
|
20
10
|
|
21
|
-
|
11
|
+
```
|
12
|
+
$ gitsh
|
13
|
+
gitsh:master$ pull
|
14
|
+
gitsh:master$ add .
|
15
|
+
gitsh:master$ commit
|
16
|
+
gitsh:master$ push
|
17
|
+
gitsh:master$ exit
|
18
|
+
bye.
|
19
|
+
$
|
20
|
+
```
|
21
|
+
|
22
|
+
### Use shell command
|
23
|
+
|
24
|
+
```
|
25
|
+
gitsh:master$ pwd
|
26
|
+
/home/myun2/git-sh
|
27
|
+
gitsh:master$ ls
|
28
|
+
Gemfile Gemfile.lock LICENSE.txt README.md Rakefile bin gitsh.gemspec lib pkg
|
29
|
+
gitsh:master$
|
30
|
+
```
|
22
31
|
|
23
32
|
## Contributing
|
24
33
|
|
data/gitsh.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["myun2@nwhite.info"]
|
11
11
|
spec.description = "Git command line shell."
|
12
12
|
spec.summary = "Git command line shell."
|
13
|
-
spec.homepage = ""
|
13
|
+
spec.homepage = "https://github.com/myun2/git-sh"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
data/lib/gitsh/shell.rb
CHANGED
@@ -7,7 +7,11 @@ module Gitsh
|
|
7
7
|
init log merge mv pull push rebase reset rm show status tag
|
8
8
|
}
|
9
9
|
def prompt
|
10
|
-
"gitsh
|
10
|
+
"gitsh:#{_current_branch_name}$ "
|
11
|
+
end
|
12
|
+
|
13
|
+
def _current_branch_name
|
14
|
+
`git rev-parse --abbrev-ref HEAD`.strip
|
11
15
|
end
|
12
16
|
|
13
17
|
def method_missing(method_name, *args)
|
data/lib/gitsh/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitsh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- myun2
|
@@ -84,7 +84,7 @@ files:
|
|
84
84
|
- lib/gitsh.rb
|
85
85
|
- lib/gitsh/shell.rb
|
86
86
|
- lib/gitsh/version.rb
|
87
|
-
homepage:
|
87
|
+
homepage: https://github.com/myun2/git-sh
|
88
88
|
licenses:
|
89
89
|
- MIT
|
90
90
|
metadata: {}
|