gity 0.1.2 → 0.1.4

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
  SHA256:
3
- metadata.gz: a7b88428dddbf037a5df49d58554541add9012728a718fb0af4f746915d7f329
4
- data.tar.gz: 1f9f993d3c332212a3e2e2e3d2a18447c98ae6cced9bea174ad3b9d80b77bf9e
3
+ metadata.gz: c93ccf96bb60fd989212947809f38159a3c5ccb6c57028674f43a6cd297cb35c
4
+ data.tar.gz: 8bf176af3ce980d6e12df695485d67ede1cbb5ebe18f542a054392542229742e
5
5
  SHA512:
6
- metadata.gz: 4f9c78b33bc01121878c0424f7b7755154719fd801e1a334f889372b5694d27df9207a4a8e7bb064390a5ba60b861fb98c6b3f225b41cd0c11337617fc226aef
7
- data.tar.gz: c67f13bb05a7f2c157e495d07ea1d68f99022b360da5479ad8cf6eeab69b5b51c9c621828824995c3f7fbe3bf56e186d27c704a63ea5b28c26ca906155990ccb
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
- Gity::Landing.new.run(Dir.getwd)
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
@@ -48,7 +48,7 @@ module Gity
48
48
  end
49
49
 
50
50
  def print_header
51
- _prmt.puts _fmt "gity version #{Gity::VERSION}"
51
+ _prmt.puts _fmt "gity version #{Gity::VERSION}", :bright_yellow
52
52
  end
53
53
 
54
54
 
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gity
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.4"
5
5
  end
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.2
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-09 00:00:00.000000000 Z
11
+ date: 2023-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: toolrack