mustard_client 0.1.42 → 0.1.43

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: 29a2a37e0d170d08eef1d2c7de75dc63c6e11a45
4
- data.tar.gz: 256b6f7c523e0165a5ca3e28516a07969799c328
3
+ metadata.gz: 7af5e2a3b3dc62e3f102164bececb550572d9b85
4
+ data.tar.gz: 185f53fa3a45051a9e3cfa3aa34bfbed9725eef4
5
5
  SHA512:
6
- metadata.gz: 41fb6f1d9b177d2d681d2cccbc4e065fdeb38f7cc1ed8af2b68001e1ac164ae05a1947bbe702a96fa910461faa82f37be30ee94cadd55374c52b8f4faee1b423
7
- data.tar.gz: 592b8cafb0c7ac57e352fbc29f450ff1a9262ecca5648a11dd5d958d6748a3d3adefd559b7da153e32f23093e74c20db94a8f343411252e292e25d30e080fc15
6
+ metadata.gz: 065ad859cf84215e6f5c13897fa00bada789d4f96b8523ff54339341b4a8959fb8453f8aa257ec0483befcee8d6282c3ff511814e0e6179fda8a52517a15b949
7
+ data.tar.gz: 901ae781373dc67cd55133551d437bbd88e63afc622581fe93a01acaf9a6929cfe51ba9ce5b0696a56d01957da0a87cd382f059828b101eefc06590418ef066c
@@ -13,12 +13,18 @@ module MustardClient
13
13
 
14
14
  end
15
15
 
16
- def add keyword_params
16
+ def add keyword_params, testcase_ids: false
17
17
 
18
18
  command = {}
19
19
  command[:method] = :post
20
20
  command[:route] = @mustard_url + "/keywords"
21
- command[:params] = {keyword: keyword_params}
21
+
22
+ if testcase_ids
23
+ command[:params] = {keyword: keyword_params, testcase_ids: testcase_ids}
24
+ else
25
+ command[:params] = {keyword: keyword_params}
26
+ end
27
+
22
28
  command[:headers] = {'User-Token' => @user_token}
23
29
 
24
30
  execute(command)
@@ -36,13 +42,18 @@ module MustardClient
36
42
 
37
43
  end
38
44
 
39
- def update keyword_id, keyword_params
45
+ def update keyword_id, keyword_params, testcase_ids: false
40
46
 
41
47
  command = {}
42
48
  command[:method] = :put
43
49
  command[:route] = @mustard_url + "/keywords/#{keyword_id}"
44
50
  command[:headers] = {'User-Token' => @user_token}
45
- command[:params] = {keyword: keyword_params}
51
+
52
+ if testcase_ids
53
+ command[:params] = {keyword: keyword_params, testcase_ids: testcase_ids}
54
+ else
55
+ command[:params] = {keyword: keyword_params}
56
+ end
46
57
 
47
58
  execute(command)
48
59
 
@@ -1,3 +1,3 @@
1
1
  module MustardClient
2
- VERSION = "0.1.42"
2
+ VERSION = "0.1.43"
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.42
4
+ version: 0.1.43
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-05-03 00:00:00.000000000 Z
11
+ date: 2017-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler