itriagetestrail 1.0.3 → 1.0.4

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: 2cf1256452b3bb7d41e2eaa822e7139af10acf1e
4
- data.tar.gz: b9864514855c3cdaba1d96d518f3da7fad81479c
3
+ metadata.gz: 9d21b60356ba0ddfe516b011a8a912bd61181f7d
4
+ data.tar.gz: 4dcfa425b6a4c62d861ccf2578832c3cb2062b61
5
5
  SHA512:
6
- metadata.gz: 27c259fd9132e190b92559fa4959e15b135c8ef6562ea83f2c56669701f21420a842f8001c20338a8c661c67eacb232a6f9ac9f02d8c39c9a9f96f6e6f836a60
7
- data.tar.gz: e5d82b254b2d99305d1c92696c55c169d7aaf8af2e67438f92e1e7e8e42c5404d20aff9891fd162da4f4731060564419101e2455628c4272cabcb8934d30a80b
6
+ metadata.gz: '02390035683f9cd1ff2264f20af584ee039d7630aea9d134f04975a4fb9914c671b08357c636343a462d553f533f5e6df08c5e9d3bfcae6add3e3832565b76aa'
7
+ data.tar.gz: 77e5e1831e7e7596203944bd3c4f7bd68f206d21e81994c53ce3b816020e2d32af6387b97733609f5f93e106e8ada7456cfebfcee0620cae3549b82710b14770
@@ -52,13 +52,28 @@ module Itriagetestrail
52
52
  testrail_ids
53
53
  end
54
54
 
55
+ def app_version_label
56
+ ''
57
+ "App Version:#{@app_version}" unless @app_version.nil? || @app_version == ''
58
+ end
59
+
60
+ def jenkins_build_label
61
+ ''
62
+ " Jenkins Build:#{@jenkins_build}" unless @jenkins_build .nil? || @jenkins_build == ''
63
+ end
64
+
65
+ def time_zone_label
66
+ ' (' + @time_zone.now.strftime('%-I:%M %p') + ')'
67
+ end
68
+
55
69
  def test_name
56
- label = ''
57
- label += "App Version:#{@app_version}" unless @app_version.nil? || @app_version == ''
58
- label += " Jenkins Build:#{@jenkins_build}" unless @jenkins_build .nil? || @jenkins_build == ''
59
- label.strip!
60
- label = 'Regression' if label == ''
61
- label + ' (' + @time_zone.now.strftime('%-I:%M %p') + ')'
70
+ ci_label = "#{app_version_label}#{jenkins_build_label}"
71
+
72
+ if ci_label.dup.strip == ''
73
+ 'Regression' + time_zone_label
74
+ else
75
+ ci_label + time_zone_label
76
+ end
62
77
  end
63
78
  end
64
79
  end
@@ -1,3 +1,3 @@
1
1
  module Itriagetestrail
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
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.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - a801069