cnvrg 1.2 → 1.2.1

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
  SHA1:
3
- metadata.gz: c521807a89abc0d51041110af1d5af2b4a2c6248
4
- data.tar.gz: 7643390b264154d01393199803d10496695e8589
3
+ metadata.gz: 0beee93f65465751907ec0a1e6b32533dbd7fe9c
4
+ data.tar.gz: 884e1a8bd9396595548938fce44fee9cc26b9de5
5
5
  SHA512:
6
- metadata.gz: f3a1e4275786314861824511a4baccb864e17a14990950743a0ddf1c686b09cc7b801bf6851a758feb0ff99b8331171d201ac137ac6d35746101895c13e14065
7
- data.tar.gz: b272efe2c50d66423320b378ef6bb7a7cfd1394d2dfa6231c4aec68872051f26b4407a1c00024460ac0e0933fe9af758760972615b5453643fd9b0c43400da34
6
+ metadata.gz: 24bb1898330f8d764654f9d6ee1ba6a1ef04475cf6f9a3ac5d7366ff204be75be03e61516f98b84b220862d83ef275326e83fd5316bd4c37686bf3cf12e620ac
7
+ data.tar.gz: 2bc73d116ab3e32c8b8e9c715d4d0db97d9b097e11901cb2ffc23047a8cb801c80625cfa0042c965186a7a2ac687b943ae2848845fbc29efe384ed2ffbab4a57
@@ -67,7 +67,7 @@ module Cnvrg
67
67
  if line.start_with? "#" or ignore_list.include? line or line.empty?
68
68
  next
69
69
  end
70
- if line.ends_with? "*"
70
+ if line.end_with? "*"
71
71
  list_regex = Dir.glob("**/#{line}", File::FNM_DOTMATCH).flatten
72
72
  list_regex.each do |l|
73
73
  ignore_list << l
@@ -78,7 +78,7 @@ module Cnvrg
78
78
  end
79
79
 
80
80
  end
81
- elsif line.ends_with? "/*"
81
+ elsif line.end_with? "/*"
82
82
  line = line.gsub("/*", "")
83
83
  regex_list = Dir.glob("**/#{line}/**/*", File::FNM_DOTMATCH).flatten
84
84
  ignore_list << regex_list
@@ -394,11 +394,13 @@ module Cnvrg
394
394
  list_ignore << ["main.py", "main.pyc", "__init__.py", "uwsgi.ini"]
395
395
  list_ignore.flatten!
396
396
  end
397
+ list_ignore_new = list_ignore.map{|x| x.gsub("//","/")} rescue []
397
398
 
398
-
399
+ # list.each do |e|
399
400
  Parallel.map(list, in_threads: IDXParallelThreads) do |e|
400
401
  label = e.gsub(self.local_path + "/", "")
401
- if list_ignore.include? label
402
+
403
+ if list_ignore_new.include? label
402
404
  next
403
405
  end
404
406
  if File.directory? e
@@ -415,7 +417,6 @@ module Cnvrg
415
417
  end
416
418
  end
417
419
  end
418
-
419
420
  old_idx[:tree] = tree_idx
420
421
  File.open("#{self.local_path}/.cnvrg/idx.yml", 'w') {|f| f.write old_idx.to_yaml}
421
422
  return YAML.load_file("#{self.local_path}/.cnvrg/idx.yml")
@@ -1,4 +1,4 @@
1
1
  module Cnvrg
2
- VERSION = '1.2'
2
+ VERSION = '1.2.1'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cnvrg
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.2'
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yochay Ettun