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 +4 -4
- data/lib/cnvrg/project.rb +6 -5
- data/lib/cnvrg/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0beee93f65465751907ec0a1e6b32533dbd7fe9c
|
4
|
+
data.tar.gz: 884e1a8bd9396595548938fce44fee9cc26b9de5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24bb1898330f8d764654f9d6ee1ba6a1ef04475cf6f9a3ac5d7366ff204be75be03e61516f98b84b220862d83ef275326e83fd5316bd4c37686bf3cf12e620ac
|
7
|
+
data.tar.gz: 2bc73d116ab3e32c8b8e9c715d4d0db97d9b097e11901cb2ffc23047a8cb801c80625cfa0042c965186a7a2ac687b943ae2848845fbc29efe384ed2ffbab4a57
|
data/lib/cnvrg/project.rb
CHANGED
@@ -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.
|
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.
|
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
|
-
|
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")
|
data/lib/cnvrg/version.rb
CHANGED