gunter_reporter 0.1.7 → 0.1.8

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: 602b11ff73c578d91cc73e2669e32f1f9faaba6d47acb65af10366fc3a2bddbd
4
- data.tar.gz: d78a1ac39f8b33c908a84276c9ac2c7b8850cca441eea8b40261febb75e5a625
3
+ metadata.gz: 3660b25705f75b11dd52549bed49101bddc503253e5488174b8450006611fb18
4
+ data.tar.gz: 331f9553cd919fd60eb1577bee480886971cfe4a8dc31ed323b39d09760d6cd1
5
5
  SHA512:
6
- metadata.gz: d2b2c548647f68bf06af9567f37ef2ea2229ae2c2febab865a02c6f77ed11d89a7d42386df56d77cfdc0fdfec1e02f3ccaffd639d79f5bda324918641a418c09
7
- data.tar.gz: 9c082643f5dd3589843bc8545479b706ff4c9a6ec8dec81191f46da513432a1cb074b527c1f1214f160b38b1f04bae9a4fb7c2ee35c01b1e544a81e5d350fd70
6
+ metadata.gz: a2740f7e7b2e7abddf3f2f69508f2517124ceabc286206b335dc3ee74ca17a6e903501818261f70ff03bcf368281f2772527424b56a7c4b80b04f9d3cc00b9e5
7
+ data.tar.gz: 62baf0646a6c6ffab2a01c872a6a8e5d2f3e1128c1200e4c4c427b768aaaeb05db686b4ca6f1713f2e51026b5833674d30a496d5f32b0ccd1a3e5613d0d2fd03
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gunter_reporter (0.1.7)
4
+ gunter_reporter (0.1.8)
5
5
  xml-simple (~> 1.1, >= 1.1.5)
6
6
 
7
7
  GEM
@@ -1,3 +1,3 @@
1
1
  class GunterReporter
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
@@ -18,14 +18,16 @@ class GunterReporter
18
18
 
19
19
  def submit_results(environment_variables)
20
20
  files = Dir.glob("tmp/gunter/#{environment_variables['TASK_ID']}/*")
21
- files.each do |file|
21
+ responses = files.map do |file|
22
22
  report = File.read(file)
23
23
  next unless XmlSimple.xml_in(report).key?('testcase') || XmlSimple.xml_in(report).dig('testsuite', 0, 'testcase')
24
24
 
25
25
  form_data = environment_variables.merge(build_data).merge('report' => report)
26
26
  response = submit_result(form_data)
27
27
  print_result(response)
28
+ response
28
29
  end
30
+ JSON.parse(responses.first.body)
29
31
  end
30
32
 
31
33
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gunter_reporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Calaway
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-02 00:00:00.000000000 Z
11
+ date: 2019-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xml-simple
@@ -111,8 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
113
  requirements: []
114
- rubyforge_project:
115
- rubygems_version: 2.7.6
114
+ rubygems_version: 3.0.3
116
115
  signing_key:
117
116
  specification_version: 4
118
117
  summary: Report test results to Gunter.