git_cli 0.13.7 → 0.13.9

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: 952f15237a2e49d3e82598183eb30435bdeabfd225bb4b04019085c8eb4fa366
4
- data.tar.gz: 4ca2979fa6c816852bdcb7d3aa474ac404a6185ad53eaa3c73e90d6664898316
3
+ metadata.gz: f8983b489b61f601a856d5270ec54f6c3c86565a07d09dab27ce5e96fc7af844
4
+ data.tar.gz: 2c4531b69c722f6d4769f1f5697eeb69a7264a22baf5c25f72213bfabd08c8b5
5
5
  SHA512:
6
- metadata.gz: 50fb332c98fdcac1cddac55751b3ad99dbe80aa208c01fd34338eada1b5dd9d2ea4bf09ad1de994094fe23ff15def81f96c535365602888e88e97d284e23a2d3
7
- data.tar.gz: 7fd0949806ee2eb6a196b0415bf641379d73cff45bef62008bf4b56a1b685094492c501c3c2f8d5eea680a885a4a70d31f68de8b32262065ad706257a314737b
6
+ metadata.gz: f1ec3e699e6661927b86a2cd0783fca08a6a6f563e754c6542194e2ce199a3f144445216637869489cea9efc060ff7ff166aae0689b942c561efdf0c1fb29fb5
7
+ data.tar.gz: cc24fb4f1a2d237e42f3f595e886516306f476e1c304b7de42a205403be4cedb6708a03a55e49e052737050016f1cebc69ea6c234740cd0e3b5cb43076e176c1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- git_cli (0.13.7)
4
+ git_cli (0.13.9)
5
5
  ptools (~> 1.4.0)
6
6
  teLogger (> 0.2)
7
7
  toolrack (> 0.23)
data/lib/git_cli/delta.rb CHANGED
@@ -52,6 +52,9 @@ module GitCli
52
52
  def to_s
53
53
  "[N] #{@path}"
54
54
  end
55
+ def has_files?
56
+ not Dir.glob(File.join(full,"**/**")).empty?
57
+ end
55
58
  end
56
59
  class NewFile < VCSItem
57
60
  def initialize(path, full)
@@ -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.7"
18
+ VERSION = "0.13.9"
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.7
4
+ version: 0.13.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Liaw
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-10-09 00:00:00.000000000 Z
11
+ date: 2023-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: teLogger
@@ -125,7 +125,7 @@ homepage: https://github.com/chrisliaw/git_cli
125
125
  licenses:
126
126
  - GPL-3.0
127
127
  metadata: {}
128
- post_install_message:
128
+ post_install_message:
129
129
  rdoc_options: []
130
130
  require_paths:
131
131
  - lib
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  version: '0'
142
142
  requirements: []
143
143
  rubygems_version: 3.4.6
144
- signing_key:
144
+ signing_key:
145
145
  specification_version: 4
146
146
  summary: GIT command line interface
147
147
  test_files: []