gity 0.1.2 → 0.1.3

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: 24e3d82d4348b8657a8ffc591187831ab5035bb52f44cc5cf3213a64539af116
4
+ data.tar.gz: 400b059ab5c831620d775995cd52c4830a731fd8c922b742a3001a92c134eedd
5
5
  SHA512:
6
- metadata.gz: 4f9c78b33bc01121878c0424f7b7755154719fd801e1a334f889372b5694d27df9207a4a8e7bb064390a5ba60b861fb98c6b3f225b41cd0c11337617fc226aef
7
- data.tar.gz: c67f13bb05a7f2c157e495d07ea1d68f99022b360da5479ad8cf6eeab69b5b51c9c621828824995c3f7fbe3bf56e186d27c704a63ea5b28c26ca906155990ccb
6
+ metadata.gz: cc414e26ec6ed146f616dabfdd346c97c54797f9603752665eeb0f1ea8478f59d93a9cc49d243e291e9e8e7cc73871430b0ae8f3ba12216ca5c4c3843a5632c3
7
+ data.tar.gz: 14d24905024c00d7b22d66682b7fd6c9e10913c8cb75d74d588353736475138d12880b56873cecf48e78bb3dc43c07f14626fc91358f2570dee42529c0c984f0
data/exe/gity CHANGED
@@ -2,5 +2,11 @@
2
2
 
3
3
  require_relative '../lib/gity'
4
4
 
5
- Gity::Landing.new.run(Dir.getwd)
5
+ if ARGV.length == 0
6
+ path = Dir.getwd
7
+ else
8
+ path = File.expand_path(ARGV.first)
9
+ end
10
+
11
+ Gity::Landing.new.run(path)
6
12
 
data/lib/gity/common.rb CHANGED
@@ -25,6 +25,13 @@ module Gity
25
25
  opts.each do |f|
26
26
  res = _pastel.send(f, res)
27
27
  end
28
+ #opts.each do |k,v|
29
+ # case k
30
+ # when :color
31
+ # res = _pastel.send(v, res)
32
+ # else
33
+ # end
34
+ #end
28
35
  end
29
36
 
30
37
  " #{res}"
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.3"
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.3
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