gity 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/gity +17 -1
- data/lib/gity/common.rb +1 -1
- data/lib/gity/landing.rb +1 -1
- data/lib/gity/overview.rb +3 -0
- data/lib/gity/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c93ccf96bb60fd989212947809f38159a3c5ccb6c57028674f43a6cd297cb35c
|
4
|
+
data.tar.gz: 8bf176af3ce980d6e12df695485d67ede1cbb5ebe18f542a054392542229742e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78a4d1d582e553402dd24ce21fbdcfa9b6adf7fc737ad91d9971c76a39884eaa5b429e36f695fdf5e849c1e826801b668027a7395fa05a286deddf6ed918ff68
|
7
|
+
data.tar.gz: 6b8247cfc6cfd3f8a2bea5a5979e586b6f48cd425558dcfd9c2a187803e2d35b60851fe5c626e371fd62970ba08cc9e536b201b3d118a7fd7c3b46a21c58156b
|
data/exe/gity
CHANGED
@@ -2,5 +2,21 @@
|
|
2
2
|
|
3
3
|
require_relative '../lib/gity'
|
4
4
|
|
5
|
-
|
5
|
+
include TR::CondUtils
|
6
|
+
include Gity::Common
|
7
|
+
|
8
|
+
if ARGV.length == 0
|
9
|
+
path = Dir.getwd
|
10
|
+
else
|
11
|
+
path = File.expand_path(ARGV.first)
|
12
|
+
end
|
13
|
+
|
14
|
+
begin
|
15
|
+
Gity::Landing.new.run(path)
|
16
|
+
rescue Gity::Error => ex
|
17
|
+
print_header
|
18
|
+
_prmt.puts
|
19
|
+
STDERR.puts _fmt ex.message, :red
|
20
|
+
_prmt.puts
|
21
|
+
end
|
6
22
|
|
data/lib/gity/common.rb
CHANGED
data/lib/gity/landing.rb
CHANGED
@@ -16,7 +16,7 @@ module Gity
|
|
16
16
|
def run(root, opts = {}, &block)
|
17
17
|
|
18
18
|
@ws = GitCli::Workspace.new(root)
|
19
|
-
raise Error, "Given path '#{root}' is not a workspace" if not @ws.is_workspace?
|
19
|
+
raise Error, "Given path '#{root}' is not a Git workspace" if not @ws.is_workspace?
|
20
20
|
|
21
21
|
opts = {} if opts.nil?
|
22
22
|
opts[:loop] = true if is_empty?(opts[:loop])
|
data/lib/gity/overview.rb
CHANGED
@@ -24,10 +24,13 @@ module Gity
|
|
24
24
|
def print_workspace_items(ws, itm, opts = {})
|
25
25
|
|
26
26
|
opts = {} if opts.nil?
|
27
|
+
_prmt.puts _fmt "Workspace path : #{ws.workspace_root}", :bright_yellow
|
28
|
+
_prmt.puts
|
27
29
|
title = opts[:title] || "Workspace Status : "
|
28
30
|
_prmt.puts _fmt title
|
29
31
|
branch = ws.current_branch
|
30
32
|
_prmt.puts _fmt "Branch : #{branch}" if not_empty?(branch)
|
33
|
+
_prmt.puts
|
31
34
|
|
32
35
|
mfiles = itm
|
33
36
|
|
data/lib/gity/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: toolrack
|