git_cli 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/git_cli.gemspec +2 -0
- data/lib/git_cli.rb +1 -0
- data/lib/git_cli/git_core.rb +25 -16
- data/lib/git_cli/version.rb +1 -1
- metadata +30 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffe81d1be1b6c40841d1ef926c3e4b6c42e3687532b8084a43db47196e4ff656
|
4
|
+
data.tar.gz: f38d4f69160258d5d434dd929f2f2f3eec535809d63af6185573ffa767334365
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 450d03cdbd7298f91951da687ddd5a36e12ca3f17fd028b5e17a79ac04944e034edfdc276139a2807219213e6ced2970473d801b7a056f7bf9e8d5050add0d4d
|
7
|
+
data.tar.gz: 7e12b06e99d3ce552e012d73c44058cc4258714bc98ca6a38f850bb3555894b2bfff2f4f8ec130644bde073670254d562561ec51e1e9c24b2c970e9e5056c773
|
data/.gitignore
CHANGED
data/git_cli.gemspec
CHANGED
data/lib/git_cli.rb
CHANGED
data/lib/git_cli/git_core.rb
CHANGED
@@ -17,6 +17,8 @@
|
|
17
17
|
|
18
18
|
require_relative 'global'
|
19
19
|
|
20
|
+
require 'ptools'
|
21
|
+
|
20
22
|
module GitCli
|
21
23
|
module GitCore
|
22
24
|
|
@@ -58,26 +60,33 @@ module GitCli
|
|
58
60
|
private
|
59
61
|
def is_installed?
|
60
62
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
63
|
+
gpath = File.which('git')
|
64
|
+
if is_empty?(gpath)
|
65
|
+
[false, ""]
|
66
|
+
else
|
67
|
+
[true, gpath]
|
68
|
+
end
|
69
|
+
|
70
|
+
#if Antrapol::ToolRack::RuntimeUtils.on_linux?
|
71
|
+
# require_relative 'os/linux/utils'
|
72
|
+
# GitCli::Global.instance.logger.debug "Running on Linux is detected"
|
73
|
+
# st, path = GitCli::OS::Linux::Utils.is_installed?("git")
|
74
|
+
# GitCli::Global.instance.logger.debug "'git' install check return [#{st},#{path}]"
|
66
75
|
|
67
|
-
|
76
|
+
# [st, path]
|
68
77
|
|
69
|
-
elsif Antrapol::ToolRack::RuntimeUtils.on_mac?
|
70
|
-
|
71
|
-
|
78
|
+
#elsif Antrapol::ToolRack::RuntimeUtils.on_mac?
|
79
|
+
# GitCli::Global.instance.logger.debug "Running on MacOS is detected"
|
80
|
+
# require_relative 'os/macos/utils'
|
72
81
|
|
73
|
-
elsif Antrapol::ToolRack::RuntimeUtils.on_window?
|
74
|
-
|
75
|
-
|
82
|
+
#elsif Antrapol::ToolRack::RuntimeUtils.on_window?
|
83
|
+
# GitCli::Global.instance.logger.debug "Running on MS Window is detected"
|
84
|
+
# require_relative 'os/win/utils'
|
76
85
|
|
77
|
-
else
|
78
|
-
|
79
|
-
|
80
|
-
end
|
86
|
+
#else
|
87
|
+
# GitCli::Global.instance.logger.debug "Cannot determine which OS am i running...Confused"
|
88
|
+
# raise RuntimeError, "Unknown platform"
|
89
|
+
#end
|
81
90
|
|
82
91
|
end # is_installed?
|
83
92
|
|
data/lib/git_cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Liaw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +38,34 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.4.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.1.0
|
47
|
+
name: gvcs
|
48
|
+
prerelease: false
|
49
|
+
type: :runtime
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.1.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
name: ptools
|
62
|
+
prerelease: false
|
63
|
+
type: :runtime
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
41
69
|
description: Interface to GIT via command line interface instead of some sor of library
|
42
70
|
email:
|
43
71
|
- chrisliaw@antrapol.com
|