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 +4 -4
- data/lib/cnvrg/cli.rb +5 -1
- data/lib/cnvrg/cli/flow.rb +1 -1
- data/lib/cnvrg/cli/task.rb +1 -1
- data/lib/cnvrg/datafiles.rb +3 -1
- data/lib/cnvrg/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6572aa3545b7baff8665ee207ffda16c7143a76b
|
|
4
|
+
data.tar.gz: 0d42defdf2941c1b6f35cc146922a36d84c06449
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 965742d33f15fd22fc61ee6e8c5ad425667fc5cad83ab9b3e75cb26287475016bdb006f1d96c41bc66012c3cdb4e2c21c6b38ed81f052d3e5f993f30f854bdc4
|
|
7
|
+
data.tar.gz: 3ee81409f0655b5a1aec6693f0c87438b38cda40f150decd0019bc3359e9822fab0af15973a12217dd11fa9fdf6e4a2311f4ccdff9d3809adfa64fd1d6f44c04
|
data/lib/cnvrg/cli.rb
CHANGED
|
@@ -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(
|
|
1114
|
+
verify_logged_in(false)
|
|
1111
1115
|
log_start(__method__, args, options)
|
|
1112
1116
|
|
|
1113
1117
|
#find owner and slug in url
|
data/lib/cnvrg/cli/flow.rb
CHANGED
|
@@ -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
|
|
24
|
+
desc "flow verify", "verify that the flow is well formatted"
|
|
25
25
|
|
|
26
26
|
def verify(path)
|
|
27
27
|
unless @curr_dir.present?
|
data/lib/cnvrg/cli/task.rb
CHANGED
|
@@ -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
|
|
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)
|
data/lib/cnvrg/datafiles.rb
CHANGED
|
@@ -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
|
-
|
|
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,
|
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: 0.9.
|
|
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-
|
|
12
|
+
date: 2018-12-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|