itriagetestrail 0.6.5 → 0.6.6

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
  SHA1:
3
- metadata.gz: 17bc052adcda4579ed4ced8a48b37ff7f9b6dfc4
4
- data.tar.gz: e45dabc8375697445b9bd8362f01d9ac2491b0a9
3
+ metadata.gz: 3ccb80b7eb80899053c1b6c2dd30923ecc848b83
4
+ data.tar.gz: 89a682d4ef24bef3d7ab01062ef6073e9fb51d42
5
5
  SHA512:
6
- metadata.gz: f40636c26415de036061f540e1eac938cd9f4c5134eaa48fc586fdc245747b11b0c7943c822041ec561af427381a775c7b8bc8ec983286dd2137027a854ce10f
7
- data.tar.gz: 29ba218df9a116ee292fe3b100bedd919bfd1701c320e1d6db823de5e2d4a297d0aad1f8efbcb32139332efa66b747fe716101e0eeaa91caae4d11b09b19da24
6
+ metadata.gz: afa7848dee3a44b90b2ba64abe2eb1e84c5d01eb1c7f9fcfe6a18a5aae7ca761028bf39b77a7d3c026dd4add4baba69ca0753c5439ec94d178ebdbcc1a767927
7
+ data.tar.gz: b8c029b592421d4a75fa1b7c595e91ec7d5b78e14f465f024a14ff070ab265fe11477b1af59321e3562006660680b26f829db2048c2b4315d02100dec27c117d
@@ -1,3 +1,3 @@
1
1
  module Itriagetestrail
2
- VERSION = '0.6.5'
2
+ VERSION = '0.6.6'
3
3
  end
@@ -46,13 +46,17 @@ module Itriagetestrail
46
46
  @execute = true
47
47
  end
48
48
 
49
- @results = { results: [] }
49
+ clear_results
50
50
  @submitted = { results: [] }
51
51
 
52
52
  @external_results = { results: [] }
53
53
  @batch_size = @testrail_config[:batch_size] || 0
54
54
  end
55
55
 
56
+ def clear_results
57
+ @results = { results: [] }
58
+ end
59
+
56
60
  def config
57
61
  if ENV['TZINFO_TIME_ZONE'].nil? || ENV['TZINFO_TIME_ZONE'].empty?
58
62
  time_zone = 'America/Denver'
@@ -452,6 +456,7 @@ module Itriagetestrail
452
456
  begin
453
457
  send = { results: @results[:results] }
454
458
  res = @client.send_post("add_results_for_cases/#{@run_id}", send)
459
+ clear_results
455
460
  rescue StandardError => e
456
461
  raise e
457
462
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itriagetestrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - a801069
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-13 00:00:00.000000000 Z
11
+ date: 2017-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler