cnvrg 1.6.12 → 1.6.13

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: 576dbac84a7975420e8426cb58cfe9cc9d910d7b9dc3e450dbf989d01f35e271
4
- data.tar.gz: 11dd438b5a53293bcbc9018cf5163b31e62bc092a1b6ad5eb1fc7d08f773de42
3
+ metadata.gz: afddb5aa2de4afe1cdf2511c561ce7ebd8ac0e977ccb8c463bba4b0d85e777d5
4
+ data.tar.gz: cd4a92cc789b06b33095aec72a74e07de4d4bf186abdb8a720bc6a21c8450664
5
5
  SHA512:
6
- metadata.gz: 4ab66d8e8a63f4657b29929c6d437905357639428c478d1cd9d28d0df1048e7ff0c3938fb894464289a11b9cb5f7f25ec9ffaf12f03ca16fa71d8f5e2025f184
7
- data.tar.gz: 176fd553f8b293156bcbeeef49d529656261a668fc8286612aa3ca0048915d4bddf9481c65f2b4b6a5020a53ac9a21352e9f61341919d86c46c9f0b65ce539ed
6
+ metadata.gz: ff9f9fa18c8f4dc9f7e1bb2a4ae8df45e158c34c808d17887a0f4502342dbc67e9c23bc9922e47ecdfef2e7f8b1edb65ac148d386ba71a48671c92ba33a7bd16
7
+ data.tar.gz: 7b6d213535ddf7e7564da30a25c20284cee94bba178263ef0ed3b6221ad93c6c9e09292e3842ac72699923c28864a6cb4ad4e9f43b544958f48b0f105a497690
@@ -2860,8 +2860,9 @@ module Cnvrg
2860
2860
  log_start(__method__, args, options)
2861
2861
  log_message('Checking for new updates from remote version', Thor::Shell::Color::BLUE, options["verbose"])
2862
2862
  log_message('Syncing project', Thor::Shell::Color::BLUE, !options["verbose"])
2863
- job_slug = options['job_slug']
2864
- job_type = options['job_type']
2863
+ job_slug = options['job_slug'] || ENV['CNVRG_JOB_ID']
2864
+ job_type = options['job_type'] || ENV['CNVRG_JOB_TYPE']
2865
+ is_git = ENV['CNVRG_GIT_PROJECT'] == "true" || @project.is_git
2865
2866
  in_exp = options["in_exp"] || (job_slug.present? and job_type.present?)
2866
2867
  in_exp = false if job_type.present? and job_type == "NotebookSession"
2867
2868
  run_download = true
@@ -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.sub(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,3 @@
1
1
  module Cnvrg
2
- VERSION = '1.6.12'
2
+ VERSION = '1.6.13'
3
3
  end
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.12
4
+ version: 1.6.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yochay Ettun