git_cli 0.13.6 → 0.13.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +10 -9
- data/lib/git_cli/version.rb +1 -1
- data/lib/git_cli.rb +20 -13
- 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: 44fe09e335b13045304c3000acfc128fe7e662cf01f6724d6c858b245f8e3f68
|
4
|
+
data.tar.gz: 8582f82d987b923862f1565aacebae06dccb8fd7249dbe9bd03ef2c0a763719c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57a8dec845d4825ab2995f3cdd31bebcd17511dbf7f8bb87f2fca0d14bd817dfec614436ecdaa95a1dfaa493266ab33c25549c51fa4dd9edf4dc7f0a8c8465fe
|
7
|
+
data.tar.gz: b55f5d6c19a9af99bcc5af368ba1a6280ddf727146103c6e55ab4d9b1407b81b8edca3ee937f3c861396523b9c212c4b5c203f5b1e5ab1c0db0abb24339612c9
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
git_cli (0.13.
|
4
|
+
git_cli (0.13.8)
|
5
5
|
ptools (~> 1.4.0)
|
6
6
|
teLogger (> 0.2)
|
7
7
|
toolrack (> 0.23)
|
@@ -16,13 +16,14 @@ GEM
|
|
16
16
|
tty-color (~> 0.5)
|
17
17
|
ptools (1.4.3)
|
18
18
|
rake (12.3.3)
|
19
|
-
release-gem (0.
|
20
|
-
colorize
|
21
|
-
git_cli
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
tty-
|
19
|
+
release-gem (0.3.3)
|
20
|
+
colorize (~> 1.1)
|
21
|
+
git_cli (~> 0.13)
|
22
|
+
pastel (~> 0.8)
|
23
|
+
teLogger (~> 0.2)
|
24
|
+
toolrack (~> 0.23)
|
25
|
+
tty-command (~> 0.10)
|
26
|
+
tty-prompt (~> 0.23)
|
26
27
|
rspec (3.12.0)
|
27
28
|
rspec-core (~> 3.12.0)
|
28
29
|
rspec-expectations (~> 3.12.0)
|
@@ -37,7 +38,7 @@ GEM
|
|
37
38
|
rspec-support (~> 3.12.0)
|
38
39
|
rspec-support (3.12.1)
|
39
40
|
teLogger (0.2.2)
|
40
|
-
toolrack (0.23.
|
41
|
+
toolrack (0.23.3)
|
41
42
|
tty-color (0.6.0)
|
42
43
|
tty-command (0.10.1)
|
43
44
|
pastel (~> 0.8)
|
data/lib/git_cli/version.rb
CHANGED
data/lib/git_cli.rb
CHANGED
@@ -237,23 +237,18 @@ module GitCli
|
|
237
237
|
alias_method :root_path, :workspace_root
|
238
238
|
#end
|
239
239
|
|
240
|
-
def load_remote_to_repos
|
241
|
-
conf = remote_config
|
242
|
-
conf.each do |k,v|
|
243
|
-
repo = GitCli::Repository.new(k, v.values.first)
|
244
|
-
repo.support_fetch if v.keys.include?("fetch")
|
245
|
-
repo.support_push if v.keys.include?("push")
|
246
|
-
add_repos(repo)
|
247
|
-
end
|
248
|
-
end
|
249
|
-
|
250
240
|
def repos
|
251
|
-
|
252
|
-
|
253
|
-
|
241
|
+
@repos.clear
|
242
|
+
#if @repos.nil? or @repos.empty?
|
243
|
+
load_remote_to_repos
|
244
|
+
#end
|
254
245
|
@repos
|
255
246
|
end
|
256
247
|
|
248
|
+
def has_remote_repos?
|
249
|
+
not_empty?(repos)
|
250
|
+
end
|
251
|
+
|
257
252
|
def is_clean?
|
258
253
|
nd, nf = new_files
|
259
254
|
md, mf = modified_files
|
@@ -288,6 +283,18 @@ module GitCli
|
|
288
283
|
res
|
289
284
|
end
|
290
285
|
|
286
|
+
|
287
|
+
private
|
288
|
+
def load_remote_to_repos
|
289
|
+
conf = remote_config
|
290
|
+
conf.each do |k,v|
|
291
|
+
repo = GitCli::Repository.new(k, v.values.first)
|
292
|
+
repo.support_fetch if v.keys.include?("fetch")
|
293
|
+
repo.support_push if v.keys.include?("push")
|
294
|
+
add_repos(repo)
|
295
|
+
end
|
296
|
+
end
|
297
|
+
|
291
298
|
end # Gvcs::Workspace
|
292
299
|
|
293
300
|
|
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.13.
|
4
|
+
version: 0.13.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Liaw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: teLogger
|