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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac7765b9c6015b83768c4901e1cc7bc7d1978d7a2015bb4190c93b7cc472b70d
4
- data.tar.gz: b39d29076885fcdad7b5c8449e53a933a8ba0faffe058321754045e0e418e29e
3
+ metadata.gz: ffe81d1be1b6c40841d1ef926c3e4b6c42e3687532b8084a43db47196e4ff656
4
+ data.tar.gz: f38d4f69160258d5d434dd929f2f2f3eec535809d63af6185573ffa767334365
5
5
  SHA512:
6
- metadata.gz: fda641d636d8f3d2604deb9eceaaee1c2fa29310c04217779ec4af074555ca501ac7c0984e0b57e83a26ad32d1301af9dcba47b3759aa0ad56bbfb7e50b628af
7
- data.tar.gz: 04f0f5e7c1eb70c23c3155fb453e2f48fa58d778cc944155b1719c425d1732fe29b7c7b3d815d13801d575724f06580a835013bb47acd1e1c424a3a1012f6736
6
+ metadata.gz: 450d03cdbd7298f91951da687ddd5a36e12ca3f17fd028b5e17a79ac04944e034edfdc276139a2807219213e6ced2970473d801b7a056f7bf9e8d5050add0d4d
7
+ data.tar.gz: 7e12b06e99d3ce552e012d73c44058cc4258714bc98ca6a38f850bb3555894b2bfff2f4f8ec130644bde073670254d562561ec51e1e9c24b2c970e9e5056c773
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /tmp/
9
9
  Gemfile.lock
10
10
  tags
11
+ git_cli-0.1.0.gem
@@ -29,4 +29,6 @@ Gem::Specification.new do |spec|
29
29
 
30
30
  spec.add_dependency "tlogger", "~> 0.21"
31
31
  spec.add_dependency "toolrack", "~> 0.4.0"
32
+ spec.add_dependency "gvcs", "~> 0.1.0"
33
+ spec.add_dependency "ptools"
32
34
  end
@@ -16,6 +16,7 @@
16
16
 
17
17
  require "git_cli/version"
18
18
 
19
+ require 'gvcs'
19
20
  require 'toolrack'
20
21
 
21
22
  require_relative "git_cli/git_core"
@@ -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
- if Antrapol::ToolRack::RuntimeUtils.on_linux?
62
- require_relative 'os/linux/utils'
63
- GitCli::Global.instance.logger.debug "Running on Linux is detected"
64
- st, path = GitCli::OS::Linux::Utils.is_installed?("git")
65
- GitCli::Global.instance.logger.debug "'git' install check return [#{st},#{path}]"
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
- [st, path]
76
+ # [st, path]
68
77
 
69
- elsif Antrapol::ToolRack::RuntimeUtils.on_mac?
70
- GitCli::Global.instance.logger.debug "Running on MacOS is detected"
71
- require_relative 'os/macos/utils'
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
- GitCli::Global.instance.logger.debug "Running on MS Window is detected"
75
- require_relative 'os/win/utils'
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
- GitCli::Global.instance.logger.debug "Cannot determine which OS am i running...Confused"
79
- raise RuntimeError, "Unknown platform"
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
 
@@ -15,5 +15,5 @@
15
15
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
 
17
17
  module GitCli
18
- VERSION = "0.3.0"
18
+ VERSION = "0.4.0"
19
19
  end
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.3.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-10-31 00:00:00.000000000 Z
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