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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd6065b7fe98eebf485fe2813928c509d9f23700c0e6e34f6cbf880f6717e39b
4
- data.tar.gz: 9bc650433cd77fba6de2edd9b15ad380c9302dc9eb250c35ffa7b2e3c9668e3f
3
+ metadata.gz: db79276d371e935c975cd2d2fe7fcb3f1d985449020af0b5dfede60b36780809
4
+ data.tar.gz: 7ef2e4d49b13dbc5228b420bb3f64fa948be10b9fe92cfc0782c5eb3512c11ba
5
5
  SHA512:
6
- metadata.gz: a175f7aaeda31208f381beeefd924bad22e42421d3da023e14e6468460cbd9b3a0fc36602fd4113f7e023ee81877c9cc9f0e659d18e539a774fcc5dc292038aa
7
- data.tar.gz: 3dfcbf2f22735ad612cea0974ba75709742371737fc3bfd8a6c6b84c79acdcca30e736b21e39cd397b7394f59891cb649f30ac58ab3ae1be426e1c9a376aa1e8
6
+ metadata.gz: f48d7c7175f2bb59d2cab9d13dca6cbeac5a217d63241741ef8e92ba32dbf89ac656e7f55b2bcebfd774117f83a74143e7535270e7d593de4ddd1987786a806b
7
+ data.tar.gz: 5568cbef469f2e72f43b9c8713e850121e03a1f2039db2a023eed8a480514bb0334b17ec50a9c7b3b11946b74e696ee995bdc74fcdf4520f8d4a77aa23e8c14b
@@ -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
- label = e.gsub(self.local_path + "/", "")
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
@@ -1,4 +1,4 @@
1
1
  module Cnvrg
2
- VERSION = '1.6.10'
2
+ VERSION = '1.6.11'
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.6.10
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-12 00:00:00.000000000 Z
13
+ date: 2020-01-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler