c80_git_bash 0.1.0.2 → 0.1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/c80_git_bash/app.rb +3 -3
- data/lib/c80_git_bash/utils.rb +2 -2
- data/lib/c80_git_bash/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6580e56850be083c0f47ec7200f0c3210c9f2c17
|
4
|
+
data.tar.gz: 63800be3738ceec72dd1fce81aeccbc1d0f6d668
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09e8c6426e4cad906b8ca75f9984934291378e206ac31513ea3f4a83028533d01f60b3885939ff47fd89d7f22ac49480cb78c43d62e55be3dccd87c28da76dfa'
|
7
|
+
data.tar.gz: 1327587ff61fa5405917b550ea54abd2f7def4fc749f57903bdcbabdf485753f7186f1d7b493603d0faaad1813dfe349d52eaf4940c5710053f2829776322924
|
data/lib/c80_git_bash/app.rb
CHANGED
@@ -58,15 +58,15 @@ module C80GitBash
|
|
58
58
|
# noinspection RubyEmptyRescueBlockInspection
|
59
59
|
begin
|
60
60
|
g = Git.open(d)
|
61
|
-
log_last = g.log.
|
61
|
+
log_last = g.log.first
|
62
62
|
|
63
63
|
d = format_git_date(log_last.date)
|
64
64
|
m = format_git_message_join(log_last.message)
|
65
65
|
|
66
66
|
|
67
|
-
puts "
|
67
|
+
puts " #{f}#{d} #{m}"
|
68
68
|
rescue Git::GitExecuteError
|
69
|
-
puts "
|
69
|
+
puts " #{f}[#{''.ljust(10,'-')}] #{RED}GitExecuteError#{CLEAR}"
|
70
70
|
rescue ArgumentError
|
71
71
|
end
|
72
72
|
|
data/lib/c80_git_bash/utils.rb
CHANGED
@@ -12,7 +12,7 @@ module C80GitBash
|
|
12
12
|
CYAN = "\e[36m"
|
13
13
|
WHITE = "\e[37m"
|
14
14
|
|
15
|
-
LOG_MESSAGE_LINE_SIZE =
|
15
|
+
LOG_MESSAGE_LINE_SIZE = 85
|
16
16
|
FILENAME_PADDING = 25
|
17
17
|
DATE_PADDING = 13
|
18
18
|
|
@@ -34,7 +34,7 @@ module C80GitBash
|
|
34
34
|
|
35
35
|
def format_git_message_join(s)
|
36
36
|
m = self.format_git_message(s)
|
37
|
-
m.join("#{BLACK}\n
|
37
|
+
m.join("#{BLACK}\n #{''.ljust(FILENAME_PADDING + DATE_PADDING - 1, '.')}#{CLEAR} ")
|
38
38
|
end
|
39
39
|
|
40
40
|
def format_git_date(d)
|
data/lib/c80_git_bash/version.rb
CHANGED