onlyoffice_testrail_wrapper 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/onlyoffice_testrail_wrapper/helpers/rspec_helper.rb +2 -0
  3. data/lib/onlyoffice_testrail_wrapper/helpers/ruby_helper.rb +2 -0
  4. data/lib/onlyoffice_testrail_wrapper/helpers/string_helper.rb +4 -0
  5. data/lib/onlyoffice_testrail_wrapper/mock/rspec_example_mock.rb +8 -3
  6. data/lib/onlyoffice_testrail_wrapper/testrail/requests_helper.rb +52 -0
  7. data/lib/onlyoffice_testrail_wrapper/testrail.rb +29 -70
  8. data/lib/onlyoffice_testrail_wrapper/testrail_api_object.rb +26 -0
  9. data/lib/onlyoffice_testrail_wrapper/testrail_case.rb +12 -6
  10. data/lib/onlyoffice_testrail_wrapper/testrail_helper/example_failed_got_expected_exception.rb +26 -0
  11. data/lib/onlyoffice_testrail_wrapper/testrail_helper/example_lpv_exception.rb +20 -0
  12. data/lib/onlyoffice_testrail_wrapper/testrail_helper/example_service_unavailable_exception.rb +20 -0
  13. data/lib/onlyoffice_testrail_wrapper/testrail_helper.rb +28 -51
  14. data/lib/onlyoffice_testrail_wrapper/testrail_milestone.rb +22 -4
  15. data/lib/onlyoffice_testrail_wrapper/testrail_plan.rb +10 -4
  16. data/lib/onlyoffice_testrail_wrapper/testrail_plan_entry.rb +3 -1
  17. data/lib/onlyoffice_testrail_wrapper/testrail_project/testrail_project_milestone_methods.rb +23 -4
  18. data/lib/onlyoffice_testrail_wrapper/testrail_project/testrail_project_plan_helper.rb +14 -11
  19. data/lib/onlyoffice_testrail_wrapper/testrail_project/testrail_project_runs_methods.rb +9 -6
  20. data/lib/onlyoffice_testrail_wrapper/testrail_project/testrail_project_suite_methods.rb +9 -7
  21. data/lib/onlyoffice_testrail_wrapper/testrail_project.rb +7 -6
  22. data/lib/onlyoffice_testrail_wrapper/testrail_result.rb +2 -1
  23. data/lib/onlyoffice_testrail_wrapper/testrail_run.rb +12 -7
  24. data/lib/onlyoffice_testrail_wrapper/testrail_section.rb +14 -8
  25. data/lib/onlyoffice_testrail_wrapper/testrail_suite.rb +19 -11
  26. data/lib/onlyoffice_testrail_wrapper/testrail_test.rb +19 -7
  27. data/lib/onlyoffice_testrail_wrapper/testrail_tools/testrail_tools.rb +4 -2
  28. data/lib/onlyoffice_testrail_wrapper/version.rb +1 -1
  29. data/lib/onlyoffice_testrail_wrapper.rb +1 -1
  30. metadata +17 -131
  31. data/lib/onlyoffice_testrail_wrapper/helpers/hash_helper.rb +0 -21
  32. data/lib/onlyoffice_testrail_wrapper/testrail_helper/testrail_status_helper.rb +0 -18
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'onlyoffice_logger_helper'
4
+ require_relative 'onlyoffice_testrail_wrapper/testrail_api_object'
4
5
  require_relative 'onlyoffice_testrail_wrapper/rspec_extension'
5
6
  require_relative 'onlyoffice_testrail_wrapper/testrail_helper'
6
7
  require_relative 'onlyoffice_testrail_wrapper/mock/rspec_example_mock'
7
- require_relative 'onlyoffice_testrail_wrapper/helpers/hash_helper'
8
8
  require_relative 'onlyoffice_testrail_wrapper/helpers/rspec_helper'
9
9
  require_relative 'onlyoffice_testrail_wrapper/helpers/string_helper'
10
10
  require_relative 'onlyoffice_testrail_wrapper/testrail_tools/testrail_tools'
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.3.0
4
+ version: 0.4.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-04-05 00:00:00.000000000 Z
13
+ date: 2023-08-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: onlyoffice_bugzilla_helper
@@ -27,151 +27,33 @@ dependencies:
27
27
  - !ruby/object:Gem::Version
28
28
  version: '0.1'
29
29
  - !ruby/object:Gem::Dependency
30
- name: onlyoffice_logger_helper
30
+ name: onlyoffice_file_helper
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - "~>"
33
+ - - "<"
34
34
  - !ruby/object:Gem::Version
35
- version: '1'
35
+ version: '2'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - "~>"
41
- - !ruby/object:Gem::Version
42
- version: '1'
43
- - !ruby/object:Gem::Dependency
44
- name: codecov
45
- requirement: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '0'
50
- type: :development
51
- prerelease: false
52
- version_requirements: !ruby/object:Gem::Requirement
53
- requirements:
54
- - - "~>"
55
- - !ruby/object:Gem::Version
56
- version: '0'
57
- - !ruby/object:Gem::Dependency
58
- name: overcommit
59
- requirement: !ruby/object:Gem::Requirement
60
- requirements:
61
- - - "~>"
62
- - !ruby/object:Gem::Version
63
- version: '0'
64
- type: :development
65
- prerelease: false
66
- version_requirements: !ruby/object:Gem::Requirement
67
- requirements:
68
- - - "~>"
69
- - !ruby/object:Gem::Version
70
- version: '0'
71
- - !ruby/object:Gem::Dependency
72
- name: rake
73
- requirement: !ruby/object:Gem::Requirement
74
- requirements:
75
- - - "~>"
76
- - !ruby/object:Gem::Version
77
- version: '13'
78
- type: :development
79
- prerelease: false
80
- version_requirements: !ruby/object:Gem::Requirement
81
- requirements:
82
- - - "~>"
83
- - !ruby/object:Gem::Version
84
- version: '13'
85
- - !ruby/object:Gem::Dependency
86
- name: rspec
87
- requirement: !ruby/object:Gem::Requirement
88
- requirements:
89
- - - "~>"
90
- - !ruby/object:Gem::Version
91
- version: '3'
92
- type: :development
93
- prerelease: false
94
- version_requirements: !ruby/object:Gem::Requirement
95
- requirements:
96
- - - "~>"
40
+ - - "<"
97
41
  - !ruby/object:Gem::Version
98
- version: '3'
99
- - !ruby/object:Gem::Dependency
100
- name: rubocop
101
- requirement: !ruby/object:Gem::Requirement
102
- requirements:
103
- - - "~>"
104
- - !ruby/object:Gem::Version
105
- version: '1'
106
- type: :development
107
- prerelease: false
108
- version_requirements: !ruby/object:Gem::Requirement
109
- requirements:
110
- - - "~>"
111
- - !ruby/object:Gem::Version
112
- version: '1'
42
+ version: '2'
113
43
  - !ruby/object:Gem::Dependency
114
- name: rubocop-performance
44
+ name: onlyoffice_logger_helper
115
45
  requirement: !ruby/object:Gem::Requirement
116
46
  requirements:
117
47
  - - "~>"
118
48
  - !ruby/object:Gem::Version
119
49
  version: '1'
120
- type: :development
50
+ type: :runtime
121
51
  prerelease: false
122
52
  version_requirements: !ruby/object:Gem::Requirement
123
53
  requirements:
124
54
  - - "~>"
125
55
  - !ruby/object:Gem::Version
126
56
  version: '1'
127
- - !ruby/object:Gem::Dependency
128
- name: rubocop-rake
129
- requirement: !ruby/object:Gem::Requirement
130
- requirements:
131
- - - "~>"
132
- - !ruby/object:Gem::Version
133
- version: '0'
134
- type: :development
135
- prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
- requirements:
138
- - - "~>"
139
- - !ruby/object:Gem::Version
140
- version: '0'
141
- - !ruby/object:Gem::Dependency
142
- name: rubocop-rspec
143
- requirement: !ruby/object:Gem::Requirement
144
- requirements:
145
- - - "~>"
146
- - !ruby/object:Gem::Version
147
- version: '2'
148
- type: :development
149
- prerelease: false
150
- version_requirements: !ruby/object:Gem::Requirement
151
- requirements:
152
- - - "~>"
153
- - !ruby/object:Gem::Version
154
- version: '2'
155
- - !ruby/object:Gem::Dependency
156
- name: yard
157
- requirement: !ruby/object:Gem::Requirement
158
- requirements:
159
- - - "~>"
160
- - !ruby/object:Gem::Version
161
- version: '0'
162
- - - ">="
163
- - !ruby/object:Gem::Version
164
- version: 0.9.20
165
- type: :development
166
- prerelease: false
167
- version_requirements: !ruby/object:Gem::Requirement
168
- requirements:
169
- - - "~>"
170
- - !ruby/object:Gem::Version
171
- version: '0'
172
- - - ">="
173
- - !ruby/object:Gem::Version
174
- version: 0.9.20
175
57
  description: Wrapper for Testrail by OnlyOffice
176
58
  email:
177
59
  - shockwavenn@gmail.com
@@ -181,7 +63,6 @@ extensions: []
181
63
  extra_rdoc_files: []
182
64
  files:
183
65
  - lib/onlyoffice_testrail_wrapper.rb
184
- - lib/onlyoffice_testrail_wrapper/helpers/hash_helper.rb
185
66
  - lib/onlyoffice_testrail_wrapper/helpers/rspec_helper.rb
186
67
  - lib/onlyoffice_testrail_wrapper/helpers/ruby_helper.rb
187
68
  - lib/onlyoffice_testrail_wrapper/helpers/string_helper.rb
@@ -190,10 +71,14 @@ files:
190
71
  - lib/onlyoffice_testrail_wrapper/name.rb
191
72
  - lib/onlyoffice_testrail_wrapper/rspec_extension.rb
192
73
  - lib/onlyoffice_testrail_wrapper/testrail.rb
74
+ - lib/onlyoffice_testrail_wrapper/testrail/requests_helper.rb
75
+ - lib/onlyoffice_testrail_wrapper/testrail_api_object.rb
193
76
  - lib/onlyoffice_testrail_wrapper/testrail_case.rb
194
77
  - lib/onlyoffice_testrail_wrapper/testrail_helper.rb
78
+ - lib/onlyoffice_testrail_wrapper/testrail_helper/example_failed_got_expected_exception.rb
79
+ - lib/onlyoffice_testrail_wrapper/testrail_helper/example_lpv_exception.rb
80
+ - lib/onlyoffice_testrail_wrapper/testrail_helper/example_service_unavailable_exception.rb
195
81
  - lib/onlyoffice_testrail_wrapper/testrail_helper/testrail_helper_rspec_metadata.rb
196
- - lib/onlyoffice_testrail_wrapper/testrail_helper/testrail_status_helper.rb
197
82
  - lib/onlyoffice_testrail_wrapper/testrail_milestone.rb
198
83
  - lib/onlyoffice_testrail_wrapper/testrail_plan.rb
199
84
  - lib/onlyoffice_testrail_wrapper/testrail_plan_entry.rb
@@ -219,6 +104,7 @@ metadata:
219
104
  documentation_uri: https://www.rubydoc.info/gems/onlyoffice_testrail_wrapper
220
105
  homepage_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_testrail_wrapper
221
106
  source_code_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_testrail_wrapper
107
+ rubygems_mfa_required: 'true'
222
108
  post_install_message:
223
109
  rdoc_options: []
224
110
  require_paths:
@@ -227,14 +113,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
227
113
  requirements:
228
114
  - - ">="
229
115
  - !ruby/object:Gem::Version
230
- version: '2.5'
116
+ version: '2.7'
231
117
  required_rubygems_version: !ruby/object:Gem::Requirement
232
118
  requirements:
233
119
  - - ">="
234
120
  - !ruby/object:Gem::Version
235
121
  version: '0'
236
122
  requirements: []
237
- rubygems_version: 3.2.14
123
+ rubygems_version: 3.4.18
238
124
  signing_key:
239
125
  specification_version: 4
240
126
  summary: ONLYOFFICE Testrail Wrapper Gem
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module OnlyofficeTestrailWrapper
4
- class HashHelper
5
- class << self
6
- def get_hash_from_array_with_two_parameters(array, key_parameter, value_parameter)
7
- raise 'First argument must be Array!' unless array.is_a?(Array)
8
-
9
- result_hash = {}
10
- array.reverse_each { |element| result_hash[element[key_parameter]] = element[value_parameter] }
11
- result_hash
12
- end
13
-
14
- def parse_to_class_variable(hash, class_name)
15
- object = class_name.new
16
- hash.each { |key, value| object.instance_variable_set("@#{key}", value) }
17
- object
18
- end
19
- end
20
- end
21
- end
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module OnlyofficeTestrailWrapper
4
- module TestrailStatusHelper
5
- # check the statuses is exist
6
- # @param [Array] status with symbols
7
- def check_status_exist(status)
8
- status = [status] unless status.is_a?(Array)
9
- status.each do |current_status|
10
- unless current_status.is_a?(Symbol)
11
- raise "Founded status '#{current_status}' is a '#{current_status.class}'! " \
12
- 'All statuses must be symbols'
13
- end
14
- raise 'One or some statuses is not found. Pls, check it' unless TestrailResult::RESULT_STATUSES.key?(current_status)
15
- end
16
- end
17
- end
18
- end