onlyoffice_testrail_wrapper 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 161af1b6e6f06e66270943b7c6d3fc72d7afd3a89af0b0811c507423f87fd3d5
4
- data.tar.gz: e4ae37a550ac9850354d22407045bd54df2d76fe3b6fb2214c0092e3ecf4618e
3
+ metadata.gz: 19634fbfe2b46911fd5e1f2cb47fd4d832bb0daea5ef9696ee1b8af9c3437b6e
4
+ data.tar.gz: 3fb395f8bf1ae4f6358de89f79c2fa84aab9841981c7708c3e1c2238606683cc
5
5
  SHA512:
6
- metadata.gz: b017d8b8d9080189d9983f84feb4e4f079474607131b3aad1b8694da51624981594065fcc726337a14be748d437e0a26b56c8c630deb530cab1ad09a33c69e83
7
- data.tar.gz: 2b87d5d15d003072ccf3809473ea6055834090f539b02a8182ad9de3ef68be40c7a6955f9077edd8e338e8c2cb79a635d00e8ed0350089c72b98ca821b278495
6
+ metadata.gz: a4adc0fea2c094fa440e75af45428e11d3c5e719ebe2b0bf1448fc827ae26d70dcac81ac6bbc0b70941a2bc2ac647415f711efa2b02648d294167261863d9960
7
+ data.tar.gz: b84ee3c105b0266d153dd095f27303af39620d75342018c71eaab625d10d533496628e0b9801ecfb9589b5b680cdb5a82253764162cbe34390c38ec2603fc823
@@ -22,6 +22,8 @@ module OnlyofficeTestrailWrapper
22
22
  attr_reader :created_on
23
23
  # @return [String] url to current test plan
24
24
  attr_reader :url
25
+ # @return [String] error message if any happens
26
+ attr_reader :error
25
27
 
26
28
  def initialize(name = '', entries = [], description = '', milestone_id = nil, id = nil)
27
29
  @name = name
@@ -22,6 +22,8 @@ module OnlyofficeTestrailWrapper
22
22
  def get_plan_by_id(id)
23
23
  plan = HashHelper.parse_to_class_variable(Testrail2.http_get("index.php?/api/v2/get_plan/#{id}"), TestrailPlan)
24
24
  OnlyofficeLoggerHelper.log("Initialized plan: #{plan.name}")
25
+ raise("`get_plan_by_id(#{id})` return an error: `#{plan.error}`") if plan.error
26
+
25
27
  plan.entries.each_with_index do |test_entry, index|
26
28
  entry = HashHelper.parse_to_class_variable(test_entry, TestrailPlanEntry)
27
29
  entry.runs.each_with_index { |run, i| entry.runs[i] = HashHelper.parse_to_class_variable(run, TestrailRun) }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OnlyofficeTestrailWrapper
4
4
  module Version
5
- STRING = '0.2.0'
5
+ STRING = '0.3.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onlyoffice_testrail_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ONLYOFFICE
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-02-18 00:00:00.000000000 Z
13
+ date: 2021-04-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: onlyoffice_bugzilla_helper
@@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
234
  - !ruby/object:Gem::Version
235
235
  version: '0'
236
236
  requirements: []
237
- rubygems_version: 3.2.11
237
+ rubygems_version: 3.2.14
238
238
  signing_key:
239
239
  specification_version: 4
240
240
  summary: ONLYOFFICE Testrail Wrapper Gem