itriagetestrail 1.0.28 → 1.0.29

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
  SHA256:
3
- metadata.gz: 5cb7340d35c7a41c162505bb3df8702970e007c89c9f233d20868b1897a6768d
4
- data.tar.gz: 6d4a1f6a6bc3aa5ddf71c8bdb81ddb1fe849ac9b621af1ec55794f1e3d4c12ba
3
+ metadata.gz: 898fa6b771b837a565622643331fb0e7bb002e158902e02f63d45850d052753c
4
+ data.tar.gz: c42798bc295c0c385ca0b710fde77f94fab90497c36d638175ed560237a951dd
5
5
  SHA512:
6
- metadata.gz: f7ec0e1d1a915c81fa4b0f24caafe6c9c1fb54869e6d0b95e15a35fb0e9122cc7d2223950d3cb346cad6f31d1762ed22839da4ab3be0675938aa85f508edf567
7
- data.tar.gz: 64fae936833ee725633cac62f4af98ca0ff70375486e92dba6b0316e0fb8eb736bef667f7b184adf59f1860c692dfff4d68725ee29744a83c0c0ba1f941ea66a
6
+ metadata.gz: 14c01636f49eb622acf4d068c6c52360c09d1ad3c1a88cfaa41f617ae5db5f47466653ed4b0ba5ad9cb19321c75818030d9ec65bef5342b11cd056d3dd18d2df
7
+ data.tar.gz: 89cca8f3fc18e6c862d8804247a79c3b962b0539a74a573c18d225124956de879c23ee201aac52655c8cb3324897465a3a11462cc798632b2333da14cfad25a9
@@ -48,9 +48,8 @@ module Itriagetestrail
48
48
  def testrail_online
49
49
  # This is the very first call to TestRail
50
50
  make_connection
51
- @client.send_get('get_projects')
52
-
53
- if @client.response_code == '200'
51
+ projects
52
+ if @projects.response_code == '200'
54
53
  true
55
54
  else
56
55
  puts "**** TESTRAIL IS OFFLINE for maintenance or other reason with status code #{@client.response_code}"
@@ -24,10 +24,15 @@ module Itriagetestrail
24
24
  entry = {runId: @run_id, results: @results[:results]}
25
25
 
26
26
  Dir.mkdir('./tmp') unless File.exist?('./tmp')
27
- Dir.mkdir('./tmp/batch') unless File.exist?('./tmp/batch')
28
- file = File.open("./tmp/batch/#{@run_id}", 'a')
27
+ file = File.open("./tmp/batch", 'a')
29
28
  file.write("#{entry}\n")
30
29
  file.close
30
+
31
+ # keep track of what is submitted
32
+ @submitted[:results] << @results[:results]
33
+
34
+ # clear the buffer for next class
35
+ @results[:results] = []
31
36
  end
32
37
 
33
38
  # Use this method to read bulk records of results stored in the temp file, and send entire set as a
@@ -51,7 +56,6 @@ module Itriagetestrail
51
56
  content = eval(line)
52
57
  unless run_id
53
58
  run_id = content[:runId]
54
- puts run_id
55
59
  end
56
60
  content[:results].each { |result| results << result }
57
61
  end
@@ -1,3 +1,3 @@
1
1
  module Itriagetestrail
2
- VERSION = '1.0.28'.freeze
2
+ VERSION = '1.0.29'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itriagetestrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.28
4
+ version: 1.0.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - a801069