itriagetestrail 0.8.8 → 0.9.1

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: fd4bd50bd476b55f4f437ac33b23e3dfcea2f34b
4
- data.tar.gz: a10866854f5f2a19ce72fc9230a0e632a909a36b
3
+ metadata.gz: f8cd8cbde40ca574edb14a198422e4ae24b3652e
4
+ data.tar.gz: ed27c91c30724c5ba902dd69bddd1e579a0b0513
5
5
  SHA512:
6
- metadata.gz: ad2400657391fee61a48bf04679dc102ce53d4472c8cd0ddc0385767a2f7270554f6940250595414849bb835ece0a983d97a9cc797e415e21c8611258c7c3801
7
- data.tar.gz: 4ae0a0213d2939799528b006f655c52c88d02c1aea4f2d75c317b7a2166942c2e23915bb4b914e4f51b9a4c4ad3869ff0b5d796f35cdcb4766a072ca68cdb532
6
+ metadata.gz: 15fd4f7651653a6d5fddcc6cdd5b74f26c73a0d0e5ae6c7a591d2e3ed76a921d467239cb73404a94fc8540eae0816081b3fdb4d9a725311cb68f99f8d7c510f5
7
+ data.tar.gz: 83149814bc28c5f028c3909e0198c2f6b98f478cb1386464b6db40ebabcb16e3a75b88e2b094030a3ade5ba59ce1001d24cabe83e091574b42bba43e4481930e
@@ -1,3 +1,3 @@
1
1
  module Itriagetestrail
2
- VERSION = '0.8.8'
2
+ VERSION = '0.9.1'
3
3
  end
@@ -413,9 +413,9 @@ module Itriagetestrail
413
413
  @description.nil? ? [] : @description.split(",")
414
414
  end
415
415
 
416
- def existing_cases_from_run
416
+ def existing_cases_from_run(run_id = @run_id)
417
417
 
418
- tests = @client.send_get("get_tests/#{@run_id}&status_id=1,2,4,5") || []
418
+ tests = @client.send_get("get_tests/#{run_id}&status_id=1,2,4,5") || []
419
419
 
420
420
  cases = []
421
421
 
@@ -635,7 +635,7 @@ module Itriagetestrail
635
635
  add_testrail_plan if @plan_id == 0
636
636
  add_plan_entry if @run_id == 0
637
637
  else
638
- add_testrail_run if @run_id = 0
638
+ add_testrail_run if @run_id == 0
639
639
  end
640
640
 
641
641
  @pool = Pool.new(1)
@@ -697,11 +697,11 @@ module Itriagetestrail
697
697
  @shared_run = true
698
698
  end
699
699
 
700
- def close_run(message='')
701
- @client.send_post("update_run/#{@run_id}",
700
+ def close_run(run_id = @run_id, message='')
701
+ @client.send_post("update_run/#{run_id}",
702
702
  {include_all: false, case_ids: existing_cases_from_run, description: 'Timestamp: ' + @time_zone.now.strftime('%m/%d/%Y %I:%M %p') + ("\nBranch: #{@testrail_config[:origin]}") + "\n#{message}"})
703
703
 
704
- @client.send_post("close_run/#{@run_id}", {})
704
+ @client.send_post("close_run/#{run_id}", {})
705
705
  end
706
706
 
707
707
  def shutdown(message='')
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.8.8
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - a801069
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-24 00:00:00.000000000 Z
11
+ date: 2017-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler