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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65d5e6d16badac8b20440fb70e3551540ea515d09da007043f6db1ae8c112d3f
4
- data.tar.gz: 87ab402f4559425b7d092d175165584e1a55e087022c8c8e17a7cb7b9801487b
3
+ metadata.gz: 44fe09e335b13045304c3000acfc128fe7e662cf01f6724d6c858b245f8e3f68
4
+ data.tar.gz: 8582f82d987b923862f1565aacebae06dccb8fd7249dbe9bd03ef2c0a763719c
5
5
  SHA512:
6
- metadata.gz: ab769484650486cca4441285e97085c7beba91e133e31608bf37aac39ae5fbe04c4ac5cdf74e7b93eee91c6f2fd15bcf8f78c84c903902f4ada4316f97c801d0
7
- data.tar.gz: 914652362807973632c56b01a026079d9143cfc15b442eb2f8045a42b3d2d35a618cf88724bb611bad508f1c57fc1ec4592e750f2b7549e34b17de6b025fe354
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.6)
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.1.29)
20
- colorize
21
- git_cli
22
- teLogger
23
- toolrack
24
- tty-command
25
- tty-prompt
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.2)
41
+ toolrack (0.23.3)
41
42
  tty-color (0.6.0)
42
43
  tty-command (0.10.1)
43
44
  pastel (~> 0.8)
@@ -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.13.6"
18
+ VERSION = "0.13.8"
19
19
  end
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
- if @repos.nil? or @repos.empty?
252
- load_remote_to_repos
253
- end
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.6
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-09-19 00:00:00.000000000 Z
11
+ date: 2023-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: teLogger