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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d7a1dfb1fab846422b5e81d8cbace730d2063ee
4
- data.tar.gz: 0d40afd7f2ccec60c75e9d30bc7f7f381075dff0
3
+ metadata.gz: 884d7789b3fdecfdcfd8cee76f216f89e8a55360
4
+ data.tar.gz: 510141eb7569a5aa936fd5b627b6534111a33573
5
5
  SHA512:
6
- metadata.gz: cbd9fe65de7d0a7861f725dc686bfe42d453ea474f0481b50e81526c8de52e24a8aa820f597a6544076f4d8a44a9328459a540d961a5e933426fb42af2d6da04
7
- data.tar.gz: 81419cdca828ded5710d1ff477eceda2e78aee5b8405e4cb4e6135860f55bb61c1c7c23614b7a1aefd163269859056834ed07e52efc63d5dcd5a1d473f496df6
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 keywords.blank?
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}
@@ -1,3 +1,3 @@
1
1
  module MustardClient
2
- VERSION = "0.1.53"
2
+ VERSION = "0.1.54"
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.53
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-20 00:00:00.000000000 Z
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.5.1
85
+ rubygems_version: 2.6.12
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Ruby Client for Mustard Results Server