cnvrg 1.6.10 → 1.6.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cnvrg/project.rb +6 -1
- data/lib/cnvrg/version.rb +1 -1
- 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: db79276d371e935c975cd2d2fe7fcb3f1d985449020af0b5dfede60b36780809
|
4
|
+
data.tar.gz: 7ef2e4d49b13dbc5228b420bb3f64fa948be10b9fe92cfc0782c5eb3512c11ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f48d7c7175f2bb59d2cab9d13dca6cbeac5a217d63241741ef8e92ba32dbf89ac656e7f55b2bcebfd774117f83a74143e7535270e7d593de4ddd1987786a806b
|
7
|
+
data.tar.gz: 5568cbef469f2e72f43b9c8713e850121e03a1f2039db2a023eed8a480514bb0334b17ec50a9c7b3b11946b74e696ee995bdc74fcdf4520f8d4a77aa23e8c14b
|
data/lib/cnvrg/project.rb
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
require 'fileutils'
|
2
|
+
require 'pathname'
|
3
|
+
|
4
|
+
|
2
5
|
module Cnvrg
|
3
6
|
class Project
|
4
7
|
attr_reader :slug, :owner, :title, :local_path, :working_dir, :is_git, :is_branch, :machines
|
@@ -426,8 +429,10 @@ module Cnvrg
|
|
426
429
|
end
|
427
430
|
list_ignore_new = list_ignore.map{|x| x.gsub("//","/")} rescue []
|
428
431
|
# list.each do |e|
|
432
|
+
project_root = Pathname.new(self.local_path)
|
429
433
|
Parallel.map(list, in_threads: IDXParallelThreads) do |e|
|
430
|
-
|
434
|
+
relative_path = Pathname.new(File.expand_path(e))
|
435
|
+
label = relative_path.relative_path_from(project_root)
|
431
436
|
if not Cnvrg::Files.valid_file_name?(label)
|
432
437
|
raise StandardError.new("#{label} is not a valid file name")
|
433
438
|
end
|
data/lib/cnvrg/version.rb
CHANGED
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.6.
|
4
|
+
version: 1.6.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yochay Ettun
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-01-
|
13
|
+
date: 2020-01-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|