gitsh 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54d889f7314ed9cdbd302a903b4b5f2e2ea9662d
4
- data.tar.gz: a564c4e6d15adaa0182a32be53c7f758ce043967
3
+ metadata.gz: 9339faf98dd7161fc9868da1ec271b0c7d10648f
4
+ data.tar.gz: a044f1c098c6e0492d004f5fda19c5e74fd95db1
5
5
  SHA512:
6
- metadata.gz: 2e2fd484901dc2ef6d9d81c2d134c6b6cad293864b1d38be7f64964da237853f9f6de879eed27c2ce15ce55a5b5222bcca3d81590247f59fc709d736e6b23812
7
- data.tar.gz: 3a1c871c134be339eaedf66c8456acc476cab4498f540058d8fbf20ffd650643ad19e4028caaddc92511ca892e443ad0b8d05f839431a87ebb888b7380fd5f70
6
+ metadata.gz: 3938f56dcd90b26c447f997e2423694f3e51e85199a5ebfc6b59d7b956b169789f1422b57ca7993e085bde48c1a14eee5e13e495430bffadca905a2ed1cc90cf
7
+ data.tar.gz: 47c7a78189b1f04cf5bc13da4fb2af886047a8ce628d70d1a4bc4806d89b3a5c44c85d4460d7258f996bcfeeb32b52f93b2c4adcb937b9880b80e42e49106856
data/README.md CHANGED
@@ -1,24 +1,33 @@
1
1
  # Gitsh
2
2
 
3
- TODO: Write a gem description
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
- TODO: Write usage instructions here
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
 
@@ -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($/)
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Gitsh
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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: {}