mustard_client 0.1.53 → 0.1.54
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/MustardClient/executions.rb +8 -5
- data/lib/MustardClient/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 884d7789b3fdecfdcfd8cee76f216f89e8a55360
|
4
|
+
data.tar.gz: 510141eb7569a5aa936fd5b627b6534111a33573
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 074452fe6dcf38619ebb157c852029dac8e2ec1c8f36ff43106e01760ea8de3b0c6252ae01fdb0f98a8f0de5c4670721b3e008b015fcd5179d341abcf0789d0c
|
7
|
+
data.tar.gz: d85e24e6c5cff0e09c9cf0237aa562c903c5506d77a36e34c5cce03d06ffc3242504ceff447e2ab0dd24dd7e4b8132f153714e8f3aae9e5927776ba33e3edfb7
|
@@ -145,18 +145,21 @@ module MustardClient
|
|
145
145
|
|
146
146
|
end
|
147
147
|
|
148
|
-
def next_test execution_id, keywords: []
|
148
|
+
def next_test execution_id, keywords: [], environment: nil
|
149
149
|
|
150
150
|
keywords = [keywords] unless keywords.kind_of? Array
|
151
151
|
|
152
152
|
command = {}
|
153
153
|
command[:method] = :get
|
154
|
+
keyword_string = ''
|
155
|
+
keyword_string += keywords.map{|keyword| "keyword[]=#{keyword.upcase}"}.join('&') unless keywords.blank?
|
156
|
+
keyword_string += "#{keyword_string != '' ? '&' : ''}environment=#{environment}"
|
154
157
|
|
155
|
-
if
|
156
|
-
command[:route] = @mustard_url + "/executions/#{execution_id}/next_test"
|
157
|
-
else
|
158
|
-
keywords_string = keywords.map{|keyword| "keyword[]=#{keyword.upcase}"}.join('&')
|
158
|
+
if keyword_string == ''
|
159
159
|
command[:route] = @mustard_url + "/executions/#{execution_id}/next_test?#{keywords_string}"
|
160
|
+
|
161
|
+
else
|
162
|
+
command[:route] = @mustard_url + "/executions/#{execution_id}/next_test"
|
160
163
|
end
|
161
164
|
|
162
165
|
command[:headers] = {'User-Token' => @user_token}
|
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.
|
4
|
+
version: 0.1.54
|
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-06-
|
11
|
+
date: 2017-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.
|
85
|
+
rubygems_version: 2.6.12
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: Ruby Client for Mustard Results Server
|