mustard_client 0.1.31 → 0.1.32

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: cee517a84dcf3577a5ea9a4dad23f3b1e8e3e46b
4
- data.tar.gz: 1aafe003213a413e461f8e6c098be9504111732c
3
+ metadata.gz: 130fc0faacac8cc488afac101dca78d0a9810f58
4
+ data.tar.gz: 165de5dcff32864307174b6e86561f91afc86f42
5
5
  SHA512:
6
- metadata.gz: 099595f0af915c215a228c28b908ee872b91ca953dd9f862a3c801c72fbb574d5cb19fa1962c817e6a77c77d7fb53a11700b4ea29faaa1532f43d4b7dcd8522f
7
- data.tar.gz: 0b4e770030029ab656e9f48de3f1217d30e47567bc5d1dadda5bf5264716d36361790f21c29ce248a5551d86e9c1aa531562cc0e0b7f7350a84747c6bb778755
6
+ metadata.gz: 8909ad10fa413e6aa871c0fd2f8902ee7e9e20ba2d39bde566f50c4bc700489581bddb732d2ab39d2e4d9b96acdc465e11042c7295709de87da68babaa9130ee
7
+ data.tar.gz: 6a7e8f217d61eb91efe499f049bca7a5618c69e0b50e15ae2de9fb8bcb59e189912e07db7619541829b45080e5c0127bbae67f7462cde606df4b577e272e437a
@@ -48,25 +48,25 @@ module MustardClient
48
48
 
49
49
  end
50
50
 
51
- def import project_id, testcase_params, preview: false, update: false
51
+ def import project_id, json, preview: false, update: false
52
52
 
53
53
  command = {}
54
54
  command[:method] = :post
55
55
  command[:route] = @mustard_url + "/projects/#{project_id}/import"
56
56
  command[:headers] = {'User-Token' => @user_token}
57
- command[:params] = {preview: preview, update: update, csv: testcase_params}
57
+ command[:params] = { update: update, json: json}
58
58
 
59
59
  execute(command)
60
60
 
61
61
  end
62
62
 
63
- def import_file project_id, file, preview: false, update: false
63
+ def parse project_id, file
64
64
 
65
65
  command = {}
66
66
  command[:method] = :post
67
67
  command[:route] = @mustard_url + "/projects/#{project_id}/import"
68
68
  command[:headers] = {'User-Token' => @user_token}
69
- command[:params] = {preview: preview, update: update, file: file}
69
+ command[:params] = { file: file}
70
70
 
71
71
  execute(command)
72
72
 
@@ -1,3 +1,3 @@
1
1
  module MustardClient
2
- VERSION = "0.1.31"
2
+ VERSION = "0.1.32"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mustard_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.31
4
+ version: 0.1.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Watson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-28 00:00:00.000000000 Z
11
+ date: 2017-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler