cnvrg 0.9.8 → 0.9.9

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
  SHA1:
3
- metadata.gz: 553e909598e09f20e282f1ac1018fdc2eb0187ad
4
- data.tar.gz: 607ad3c763efea8a3d3861ef9ff0a430cf26088f
3
+ metadata.gz: 6572aa3545b7baff8665ee207ffda16c7143a76b
4
+ data.tar.gz: 0d42defdf2941c1b6f35cc146922a36d84c06449
5
5
  SHA512:
6
- metadata.gz: 80365b6145949776150f27f336fa4f84a934e59763fa3ff6c7864f19cd2f60cd52ceccda24daa739c98356677ff9ed9bc3169b02c5c19a1acd7784db299591fa
7
- data.tar.gz: b2fb878843bf73e73ea5cd4a9147f8a2208fd4f95bfd4d4b3ba334d5e68638f78b2b6d3d6551db9e08207ef353fc3c9a1908e87eb24676186cee89dc050436c0
6
+ metadata.gz: 965742d33f15fd22fc61ee6e8c5ad425667fc5cad83ab9b3e75cb26287475016bdb006f1d96c41bc66012c3cdb4e2c21c6b38ed81f052d3e5f993f30f854bdc4
7
+ data.tar.gz: 3ee81409f0655b5a1aec6693f0c87438b38cda40f150decd0019bc3359e9822fab0af15973a12217dd11fa9fdf6e4a2311f4ccdff9d3809adfa64fd1d6f44c04
@@ -784,6 +784,10 @@ module Cnvrg
784
784
  commit = options["commit"] || commit
785
785
  only_tree = options["only_tree"] || only_tree
786
786
  read = options["read"] || read || false
787
+ query = options['query'].presence || query.presence
788
+ if query.present? or
789
+ return clone_data_query(dataset_url, query)
790
+ end
787
791
 
788
792
 
789
793
  url_parts = dataset_url.split("/")
@@ -1107,7 +1111,7 @@ module Cnvrg
1107
1111
  desc '', '', :hide => true
1108
1112
  def data_put(dataset_url, files: [], dir: '', chunk_size: 1000)
1109
1113
  begin
1110
- verify_logged_in(true)
1114
+ verify_logged_in(false)
1111
1115
  log_start(__method__, args, options)
1112
1116
 
1113
1117
  #find owner and slug in url
@@ -21,7 +21,7 @@ module Cnvrg
21
21
  desc "task", "Running Flow tasks", :hide => true
22
22
  subcommand 'task', Cnvrg::Commands::Task
23
23
 
24
- desc "flow verify", "verify that the flow is well formated"
24
+ desc "flow verify", "verify that the flow is well formatted"
25
25
 
26
26
  def verify(path)
27
27
  unless @curr_dir.present?
@@ -11,7 +11,7 @@ module Cnvrg
11
11
  end
12
12
  end
13
13
 
14
- desc "flow task verify", "verify that the task is well formated"
14
+ desc "flow task verify", "verify that the task is well formatted"
15
15
  def verify(path)
16
16
  unless @curr_dir.present?
17
17
  @cli.log_message("Cant run this command because you are not in project directory", Thor::Color::RED)
@@ -833,7 +833,9 @@ module Cnvrg
833
833
  end
834
834
  def start_commit(new_branch,force=false,delete_commit=nil, chunks: 0, dataset: @dataset)
835
835
  begin
836
- idx = dataset.get_idx
836
+ #if we are pushing with force or to branch we dont need to send current/next commit cause we want to
837
+ # create a new commit.
838
+ idx = (force || new_branch) ? {} : dataset.get_idx
837
839
  commit = idx[:commit]
838
840
  next_commit = idx[:next_commit]
839
841
  response = Cnvrg::API.request("#{base_resource}/commit/start", 'POST', {dataset_slug: @dataset_slug, new_branch: new_branch,force:force,
@@ -1,4 +1,4 @@
1
1
  module Cnvrg
2
- VERSION = '0.9.8'
2
+ VERSION = '0.9.9'
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: 0.9.8
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yochay Ettun
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-12-17 00:00:00.000000000 Z
12
+ date: 2018-12-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler