itriagetestrail 0.7.1 → 0.7.2

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: 93247c5ad8802e9282c0f0c22cf97a7446bce14a
4
- data.tar.gz: f0479c1f1e2b0618e944daed44785bce7ca91c90
3
+ metadata.gz: f8cb8d734474cdbbd4c15ed23001bc80bd8ed7ef
4
+ data.tar.gz: 204fc890b6fffd8d38daa06f836093dff2fd5f11
5
5
  SHA512:
6
- metadata.gz: 005ec5bad69cadb99fbb30be2d66d10b485c331b5eea8392b8d53dec453e563fac36e754624349864fda3b325adaa97c6fc26c8c8daec4b3a956321ef57d2a5f
7
- data.tar.gz: 105439c1bc365d1443865252ec893dfab1636b63a37851f520b00f656ed92906065f101d38461078dcdfb244fa303ff856e5cf3e09edeb835f5b5d9ea45ea492
6
+ metadata.gz: 8a266fa0c218695f95f92f278b8534dce05b6599d12f2f360eff80d3e978e99e0efd2ad0ebe454027ffd46c4559f01ed130555fd2e828bc7a1155a0f0b589f41
7
+ data.tar.gz: 6882e6ecba80c0d3a0fe7a1820d3b110c242b753bd6a4e2b38d2fa9570b55bfb1238bb1d1e46728e4ffc9afbc69608283319286e35c8c293acb4b989d3f020d0
@@ -1,3 +1,3 @@
1
1
  module Itriagetestrail
2
- VERSION = '0.7.1'
2
+ VERSION = '0.7.2'
3
3
  end
@@ -22,8 +22,8 @@ module Itriagetestrail
22
22
  @setup = false
23
23
  config
24
24
 
25
- if File.exist?('./tmp/testrail_id')
26
- @run_id = File.read('./tmp/testrail_id')
25
+ if File.exist?(tempfile_name)
26
+ @run_id = File.read(tempfile_name)
27
27
  @shared_run = true
28
28
  else
29
29
  @run_id = 0
@@ -123,6 +123,10 @@ module Itriagetestrail
123
123
  testrail_ids
124
124
  end
125
125
 
126
+ def tempfile_name
127
+ "./tmp/#{@testrail_config[:jenkinsBuild]}_testrail_id"
128
+ end
129
+
126
130
  def make_connection
127
131
  @client = TestRail::APIClient.new(@testrail_config[:site])
128
132
  @client.user = @testrail_config[:user]
@@ -520,13 +524,13 @@ module Itriagetestrail
520
524
 
521
525
  # This method is only used publicly
522
526
  def delete_temp_files
523
- File.delete('./tmp/testrail_id') if File.exist?('./tmp/testrail_id')
527
+ File.delete(tempfile_name) if File.exist?(tempfile_name)
524
528
  end
525
529
 
526
530
  # This method is only used publicly
527
531
  def initialize_temp_files
528
532
  Dir.mkdir('./tmp') unless File.exists?('./tmp')
529
- File.write('./tmp/testrail_id', @run_id.to_s)
533
+ File.write(tempfile_name, @run_id.to_s)
530
534
 
531
535
  @shared_run = true
532
536
  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: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - a801069