wrata_api 1.0.0 → 1.1.0

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
  SHA256:
3
- metadata.gz: 640eef20434b6c404876a8e1ba485f5a996b3e176a85f719cb62650e5e1fd2e9
4
- data.tar.gz: 6cb44e65eb0a69f83129b1e631d3a9ddda161da0127ac65042854161c5e6a010
3
+ metadata.gz: 3a3b8448132c8dccbc9d625a22159b9227864a0c51c84d2868c524df9332be4c
4
+ data.tar.gz: a7f037b52c5bbe1d7cbb436e423f985fc1a70fc5d0e93673c2cabc371c517837
5
5
  SHA512:
6
- metadata.gz: 486b088799264af6295f5db2f5f1f1f66c98d8f35124d9cae14d85bff4611fc3b83bb21b53270e9f1399c044b5dabb21677de28cc255cf52db64f05ec8f1a31c
7
- data.tar.gz: 8a759e7c6babe7fe68de87d0bce43d9aac921751ab00a894e1e0431f45c33d3ac3bef4addf1b20d8b5763ead69833b781b82997c5a9a7f125e88b44d02cb80ae
6
+ metadata.gz: 4a94294a0a8115198b992c0211d34b35a4efb83e1c55ed307f62b54672dba08ac74ead0578dd5d0d928aeb7c034e70e01fad00af3474d0b22815241954d066b4
7
+ data.tar.gz: 606c81351b51841b61ed4638f3794794b2a79762179c2ce5cad1a172c8fc9ba52b6fad87c00d0469e9c48656ee092fad8b67ea5aac0d45715985fb77423dcdc6
@@ -50,9 +50,16 @@ module WrataApi
50
50
  # @param options [Hash] option to each test
51
51
  # @return [Nothing]
52
52
  def add_tests_to_queue(test_list, options = {})
53
- test_list.each do |current_test|
54
- add_to_queue(current_test, options)
55
- end
53
+ uri = URI.parse("#{@uri}/queue/add_tests")
54
+
55
+ options = queue_item_default_values(options)
56
+ body = {
57
+ 'test_paths[]' => test_list,
58
+ 'branch' => options[:branch],
59
+ 'location' => options[:location],
60
+ 'spec_browser' => options[:browser]
61
+ }
62
+ perform_post(uri, body)
56
63
  end
57
64
  end
58
65
  end
@@ -4,6 +4,6 @@ module WrataApi
4
4
  # This module holds the WrataApi version information.
5
5
  module Version
6
6
  # @return [String] current gem version
7
- STRING = '1.0.0'
7
+ STRING = '1.1.0'
8
8
  end
9
9
  end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'cgi'
3
4
  require 'net/http'
4
5
  module WrataApi
5
6
  # Module for describing base request actions
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wrata_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ONLYOFFICE
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-01-28 00:00:00.000000000 Z
12
+ date: 2022-04-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: codecov
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  requirements: []
182
- rubygems_version: 3.3.4
182
+ rubygems_version: 3.3.10
183
183
  signing_key:
184
184
  specification_version: 4
185
185
  summary: Wrata API Gem