testrail-ruby 0.0.14 → 0.0.15

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/endpoints.rb +45 -45
  3. data/lib/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b575c08db64ee0a7b997ec0901ee65f2ff262d1f
4
- data.tar.gz: e9fef4fedc9f83caf4d217fe6e2306a7560821af
3
+ metadata.gz: f56769ff1aeaa9a6d2e8e832d274875329a36ffa
4
+ data.tar.gz: cd15ee3536832d8cce5bf93f2b4c7eb039dbe217
5
5
  SHA512:
6
- metadata.gz: 1890a33a24a370e6dac389282b425f70369257be1212f2ef587aa7a3db689a118380580b4c1b1f76be14fd23590c766d1e9adf8b3f8878dce44fcfb4e8eb2f9f
7
- data.tar.gz: 640b5048b3f32a6fd161cda40eb611ce62952b6a0a1e844e501e3fae9a881d1b40fc6377a7dbb618c9db9a9391e0a9c831c21808641001db072eeb256088eb4a
6
+ metadata.gz: 8fd7dc7ff512b8a8d90d7733f2d26b9768ac25ca931a6e959e9517a4bed3739fbb5bd336210587e76e1ea8f914b67d0ec5d07b577fa010fc8405b5d5b4722ba4
7
+ data.tar.gz: b8e582103d853efb2d5f391e3fe3f670f84284b17a4c82fbcc13f8b08cb3b9652790c2b3e6ede6e393e98188b86abb433dfcff89d981bfb54cdce676baa56e18
@@ -5,7 +5,7 @@ module Endpoints
5
5
  # @example GET index.php?/api/v2/get_case/:case_id
6
6
  # @see http://docs.gurock.com/testrail-api2/reference-cases
7
7
  def get_case(case_id, opts = {})
8
- send_get("get_case/:#{case_id.to_s}", opts)
8
+ send_get("get_case/#{case_id.to_s}", opts)
9
9
  end
10
10
 
11
11
  # Returns a list of test cases for a test suite or specific section in a test suite.
@@ -14,7 +14,7 @@ module Endpoints
14
14
  # @example GET index.php?/api/v2/get_cases/:project_id
15
15
  # @see http://docs.gurock.com/testrail-api2/reference-cases
16
16
  def get_cases(project_id, opts = {})
17
- send_get("get_cases/:#{project_id.to_s}", opts)
17
+ send_get("get_cases/#{project_id.to_s}", opts)
18
18
  end
19
19
 
20
20
  # Return all test cases in a given project by suite_id and section_id
@@ -25,7 +25,7 @@ module Endpoints
25
25
  # @example GET index.php?/api/v2/get_cases/:project_id&suite_id=:suite_id&section_id=:section_id
26
26
  # @see http://docs.gurock.com/testrail-api2/reference-cases
27
27
  def get_cases_by_section(project_id, suite_id, section_id, opts = {})
28
- send_get("get_cases/:#{project_id.to_s}&suite_id=:#{suite_id.to_s}&section_id=:#{section_id.to_s}", opts)
28
+ send_get("get_cases/#{project_id.to_s}&suite_id=#{suite_id.to_s}&section_id=#{section_id.to_s}", opts)
29
29
  end
30
30
 
31
31
  # Return all test cases in a given project by suite_id
@@ -44,7 +44,7 @@ module Endpoints
44
44
  # @example POST index.php?/api/v2/add_case/:section_id
45
45
  # @see http://docs.gurock.com/testrail-api2/reference-cases
46
46
  def add_case(section_id, opts = {})
47
- send_post("add_case/:#{section_id.to_s}", opts)
47
+ send_post("add_case/#{section_id.to_s}", opts)
48
48
  end
49
49
 
50
50
  # Update test result by case id
@@ -53,7 +53,7 @@ module Endpoints
53
53
  # @example POST index.php?/api/v2/update_case/:case_id
54
54
  # @see http://docs.gurock.com/testrail-api2/reference-cases
55
55
  def update_case(case_id, opts = {})
56
- send_post("update_case/:#{case_id.to_s}", opts)
56
+ send_post("update_case/#{case_id.to_s}", opts)
57
57
  end
58
58
 
59
59
  # Delete test case by case id
@@ -62,7 +62,7 @@ module Endpoints
62
62
  # @example POST index.php?/api/v2/delete_case/:case_id
63
63
  # @see http://docs.gurock.com/testrail-api2/reference-cases
64
64
  def delete_case(case_id, opts = {})
65
- send_post("delete_case/:#{case_id.to_s}", opts)
65
+ send_post("delete_case/#{case_id.to_s}", opts)
66
66
  end
67
67
 
68
68
  # Return suite by suite id
@@ -71,7 +71,7 @@ module Endpoints
71
71
  # @example GET index.php?/api/v2/get_suite/:suite_id
72
72
  # @see http://docs.gurock.com/testrail-api2/reference-suites
73
73
  def get_suite(suite_id, opts = {})
74
- send_get("get_suite/:#{suite_id.to_s}", opts)
74
+ send_get("get_suite/#{suite_id.to_s}", opts)
75
75
  end
76
76
 
77
77
  # Return all suites in project by project id
@@ -80,7 +80,7 @@ module Endpoints
80
80
  # @example GET index.php?/api/v2/get_suites/:project_id
81
81
  # @see http://docs.gurock.com/testrail-api2/reference-suites
82
82
  def get_suites(project_id, opts = {})
83
- send_get("get_suites/:#{project_id.to_s}", opts)
83
+ send_get("get_suites/#{project_id.to_s}", opts)
84
84
  end
85
85
 
86
86
  # Add a test suite
@@ -89,7 +89,7 @@ module Endpoints
89
89
  # @example POST index.php?/api/v2/add_suite/:project_id
90
90
  # @see http://docs.gurock.com/testrail-api2/reference-suites
91
91
  def add_suite(project_id, opts = {})
92
- send_post("add_suite/:#{project_id.to_s}", opts)
92
+ send_post("add_suite/#{project_id.to_s}", opts)
93
93
  end
94
94
 
95
95
  # update a test suite
@@ -98,7 +98,7 @@ module Endpoints
98
98
  # @example POST index.php?/api/v2/update_suite/:suite_id
99
99
  # @see http://docs.gurock.com/testrail-api2/reference-suites
100
100
  def update_suite(suite_id, opts = {})
101
- send_post("update_suite/:#{suite_id.to_s}", opts)
101
+ send_post("update_suite/#{suite_id.to_s}", opts)
102
102
  end
103
103
 
104
104
  # Delete a test suite
@@ -107,7 +107,7 @@ module Endpoints
107
107
  # @example POST index.php?/api/v2/delete_suite/:suite_id
108
108
  # @see http://docs.gurock.com/testrail-api2/reference-suites
109
109
  def delete_suite(suite_id, opts = {})
110
- send_post("delete_suite/:#{suite_id.to_s}", opts)
110
+ send_post("delete_suite/#{suite_id.to_s}", opts)
111
111
  end
112
112
 
113
113
  # Return section by id
@@ -116,7 +116,7 @@ module Endpoints
116
116
  # @example GET index.php?/api/v2/get_section/:section_id
117
117
  # @see http://docs.gurock.com/testrail-api2/reference-sections
118
118
  def get_section(section_id, opts = {})
119
- send_get("get_section/:#{section_id.to_s}", opts)
119
+ send_get("get_section/#{section_id.to_s}", opts)
120
120
  end
121
121
 
122
122
  # Get sections for suite
@@ -125,7 +125,7 @@ module Endpoints
125
125
  # @example GET index.php?/api/v2/get_sections/:project_id&suite_id=:suite_id
126
126
  # @see http://docs.gurock.com/testrail-api2/reference-sections
127
127
  def get_sections(project_id, suite_id, opts = {})
128
- send_get("get_sections/:#{project_id.to_s}&suite_id=:#{suite_id.to_s}", opts)
128
+ send_get("get_sections/#{project_id.to_s}&suite_id=#{suite_id.to_s}", opts)
129
129
  end
130
130
 
131
131
  # Add section to suite
@@ -135,7 +135,7 @@ module Endpoints
135
135
  # @see http://docs.gurock.com/testrail-api2/reference-sections
136
136
  # @note suite_id is required unless running in single suite mode
137
137
  def add_section(project_id, suite_id, opts = {})
138
- send_post("add_section/:#{project_id.to_s}&suite_id=:#{suite_id.to_s}", opts)
138
+ send_post("add_section/#{project_id.to_s}&suite_id=#{suite_id.to_s}", opts)
139
139
  end
140
140
 
141
141
  # Get milestone by milestone id
@@ -144,7 +144,7 @@ module Endpoints
144
144
  # @example GET index.php?/api/v2/get_milestone/:milestone_id
145
145
  # @see http://docs.gurock.com/testrail-api2/reference-milestones
146
146
  def get_milestone(milestone_id, opts = {})
147
- send_get("get_milestone/:#{milestone_id.to_s}", opts)
147
+ send_get("get_milestone/#{milestone_id.to_s}", opts)
148
148
  end
149
149
 
150
150
  # Get project milestones by project id
@@ -153,7 +153,7 @@ module Endpoints
153
153
  # @example GET index.php?/api/v2/get_milestones/:project_id
154
154
  # @see http://docs.gurock.com/testrail-api2/reference-milestones
155
155
  def get_milestones(project_id, opts = {})
156
- send_get("get_milestones/:#{project_id.to_s}", opts)
156
+ send_get("get_milestones/#{project_id.to_s}", opts)
157
157
  end
158
158
 
159
159
  # Add milestone to project id
@@ -162,7 +162,7 @@ module Endpoints
162
162
  # @example POST index.php?/api/v2/add_milestone/:project_id
163
163
  # @see http://docs.gurock.com/testrail-api2/reference-milestones
164
164
  def add_milestone(project_id, opts = {})
165
- send_post("add_milestone/:#{project_id.to_s}", opts)
165
+ send_post("add_milestone/#{project_id.to_s}", opts)
166
166
  end
167
167
 
168
168
  # Add milestone to project id
@@ -171,7 +171,7 @@ module Endpoints
171
171
  # @example POST index.php?/api/v2/update_milestone/:milestone_id
172
172
  # @see http://docs.gurock.com/testrail-api2/reference-milestones
173
173
  def update_milestone(milestone_id, opts = {})
174
- send_post("update_milestone/:#{milestone_id.to_s}", opts)
174
+ send_post("update_milestone/#{milestone_id.to_s}", opts)
175
175
  end
176
176
 
177
177
  # Add milestone to project id
@@ -180,7 +180,7 @@ module Endpoints
180
180
  # @example POST index.php?/api/v2/delete_milestone/:milestone_id
181
181
  # @see http://docs.gurock.com/testrail-api2/reference-milestones
182
182
  def delete_milestone(milestone_id, opts = {})
183
- send_post("delete_milestone/:#{milestone_id.to_s}", opts)
183
+ send_post("delete_milestone/#{milestone_id.to_s}", opts)
184
184
  end
185
185
 
186
186
  # Get plan by id
@@ -189,7 +189,7 @@ module Endpoints
189
189
  # @example GET index.php?/api/v2/get_plan/:plan_id
190
190
  # @see http://docs.gurock.com/testrail-api2/reference-plans
191
191
  def get_plan(plan_id, opts = {})
192
- send_get("get_plan/:#{plan_id.to_s}", opts)
192
+ send_get("get_plan/#{plan_id.to_s}", opts)
193
193
  end
194
194
 
195
195
  # Get plans in project by project id
@@ -198,7 +198,7 @@ module Endpoints
198
198
  # @example GET index.php?/api/v2/get_plans/:project_id
199
199
  # @see http://docs.gurock.com/testrail-api2/reference-plans
200
200
  def get_plans(project_id, opts = {})
201
- send_get("get_plans/:#{project_id.to_s}", opts)
201
+ send_get("get_plans/#{project_id.to_s}", opts)
202
202
  end
203
203
 
204
204
  # Add plan to project by project id
@@ -207,7 +207,7 @@ module Endpoints
207
207
  # @example POST index.php?/api/v2/add_plan/:project_id
208
208
  # @see http://docs.gurock.com/testrail-api2/reference-plans
209
209
  def add_plan(project_id, opts = {})
210
- send_post("add_plan/:#{project_id.to_s}", opts)
210
+ send_post("add_plan/#{project_id.to_s}", opts)
211
211
  end
212
212
 
213
213
  # Add plan entries by plan id
@@ -216,7 +216,7 @@ module Endpoints
216
216
  # @example POST index.php?/api/v2/add_plan_entry/:plan_id
217
217
  # @see http://docs.gurock.com/testrail-api2/reference-plans
218
218
  def add_plan_entry(plan_id, opts = {})
219
- send_post("add_plan_entry/:#{plan_id.to_s}", opts)
219
+ send_post("add_plan_entry/#{plan_id.to_s}", opts)
220
220
  end
221
221
 
222
222
  # Update plan by plan id
@@ -225,7 +225,7 @@ module Endpoints
225
225
  # @example POST index.php?/api/v2/update_plan/:plan_id
226
226
  # @see http://docs.gurock.com/testrail-api2/reference-plans
227
227
  def update_plan(plan_id, opts = {})
228
- send_post("update_plan/:#{plan_id.to_s}", opts)
228
+ send_post("update_plan/#{plan_id.to_s}", opts)
229
229
  end
230
230
 
231
231
  # Update plan entry by plan id
@@ -235,7 +235,7 @@ module Endpoints
235
235
  # @example POST index.php?/api/v2/update_plan_entry/:plan_id/:entry_id
236
236
  # @see http://docs.gurock.com/testrail-api2/reference-plans
237
237
  def update_plan_entry(plan_id, entry_id, opts = {})
238
- send_post("update_plan_entry/:#{plan_id.to_s}/:#{entry_id.to_s}", opts)
238
+ send_post("update_plan_entry/#{plan_id.to_s}/#{entry_id.to_s}", opts)
239
239
  end
240
240
 
241
241
  # Close plan by plan id
@@ -244,18 +244,18 @@ module Endpoints
244
244
  # @example POST index.php?/api/v2/close_plan/:plan_id
245
245
  # @see http://docs.gurock.com/testrail-api2/reference-plans
246
246
  def close_plan(plan_id, opts = {})
247
- send_post("close_plan/:#{plan_id.to_s}", opts)
247
+ send_post("close_plan/#{plan_id.to_s}", opts)
248
248
  end
249
249
 
250
250
  # @example POST index.php?/api/v2/delete_plan/:plan_id
251
251
  # @see http://docs.gurock.com/testrail-api2/reference-plans
252
252
  def delete_plan(plan_id, opts)
253
- send_post("delete_plan/:#{plan_id.to_s}", opts)
253
+ send_post("delete_plan/#{plan_id.to_s}", opts)
254
254
  end
255
255
 
256
256
  # @example POST index.php?/api/v2/delete_plan_entry/:plan_id/:entry_id
257
257
  def delete_plan_entry(plan_id, entry_id, opts = {})
258
- send_post("delete_plan_entry/:#{plan_id.to_s}/:#{entry_id.to_s}", opts)
258
+ send_post("delete_plan_entry/#{plan_id.to_s}/#{entry_id.to_s}", opts)
259
259
  end
260
260
 
261
261
  # Get project by project id
@@ -264,7 +264,7 @@ module Endpoints
264
264
  # @example GET index.php?/api/v2/get_project/:project_id
265
265
  # @see http://docs.gurock.com/testrail-api2/reference-projects
266
266
  def get_project(project_id, opts = {})
267
- send_get("get_project/:#{project_id.to_s}", opts)
267
+ send_get("get_project/#{project_id.to_s}", opts)
268
268
  end
269
269
 
270
270
  # Get all projects
@@ -289,7 +289,7 @@ module Endpoints
289
289
  # @example POST index.php?/api/v2/update_project/:project_id
290
290
  # @see http://docs.gurock.com/testrail-api2/reference-projects
291
291
  def update_project(project_id, opts)
292
- send_post("update_project/:#{project_id.to_s}", opts)
292
+ send_post("update_project/#{project_id.to_s}", opts)
293
293
  end
294
294
 
295
295
 
@@ -299,7 +299,7 @@ module Endpoints
299
299
  # @example POST index.php?/api/v2/delete_project/:project_id
300
300
  # @see http://docs.gurock.com/testrail-api2/reference-projects
301
301
  def delete_project(project_id, opts)
302
- send_post("delete_project/:#{project_id.to_s}", opts)
302
+ send_post("delete_project/#{project_id.to_s}", opts)
303
303
  end
304
304
 
305
305
  # Returns a list of test results for a test
@@ -308,7 +308,7 @@ module Endpoints
308
308
  # @example GET index.php?/api/v2/get_results/:test_id
309
309
  # @see http://docs.gurock.com/testrail-api2/reference-results
310
310
  def get_results(test_id, opts = {})
311
- send_get("get_results/:#{test_id.to_s}", opts)
311
+ send_get("get_results/#{test_id.to_s}", opts)
312
312
  end
313
313
 
314
314
  # Returns a list of test results for a test run and case combination
@@ -318,7 +318,7 @@ module Endpoints
318
318
  # @example GET index.php?/api/v2/get_results_for_case/:run_id/:case_id
319
319
  # @see http://docs.gurock.com/testrail-api2/reference-results
320
320
  def get_results_for_case(run_id, case_id, opts = {})
321
- send_get("get_results_for_case/:#{run_id.to_s}/:#{case_id.to_s}", opts)
321
+ send_get("get_results_for_case/#{run_id.to_s}/#{case_id.to_s}", opts)
322
322
  end
323
323
 
324
324
  # Returns a list of test results for a test run
@@ -327,7 +327,7 @@ module Endpoints
327
327
  # @example GET index.php?/api/v2/get_results_for_run/:run_id
328
328
  # @see http://docs.gurock.com/testrail-api2/reference-results
329
329
  def get_results_for_run(run_id, opts = {})
330
- send_get("get_results_for_run/:#{run_id.to_s}", opts)
330
+ send_get("get_results_for_run/#{run_id.to_s}", opts)
331
331
  end
332
332
 
333
333
  # Adds a new test result, comment or assigns a test. It's recommended to use add_results instead if you plan to add results for multiple tests.
@@ -336,7 +336,7 @@ module Endpoints
336
336
  # @example POST index.php?/api/v2/add_result/:test_id
337
337
  # @see http://docs.gurock.com/testrail-api2/reference-results
338
338
  def add_result(test_id, opts = {})
339
- send_post("add_result/:#{test_id.to_s}", opts)
339
+ send_post("add_result/#{test_id.to_s}", opts)
340
340
  end
341
341
 
342
342
  # Adds a new test result, comment or assigns a test (for a test run and case combination)
@@ -346,7 +346,7 @@ module Endpoints
346
346
  # @example POST index.php?/api/v2/add_result_for_case/:run_id/:case_id
347
347
  # @see http://docs.gurock.com/testrail-api2/reference-results
348
348
  def add_result_for_case(run_id, case_id, opts = {})
349
- send_post("add_result_for_case/:#{run_id.to_s}/:#{case_id.to_s}", opts)
349
+ send_post("add_result_for_case/#{run_id.to_s}/#{case_id.to_s}", opts)
350
350
  end
351
351
 
352
352
  # Adds one or more new test results, comments or assigns one or more tests
@@ -355,7 +355,7 @@ module Endpoints
355
355
  # @example POST index.php?/api/v2/add_results/:run_id
356
356
  # @see http://docs.gurock.com/testrail-api2/reference-results
357
357
  def add_results(run_id, opts = {})
358
- send_post("add_results/:#{run_id.to_s}", opts)
358
+ send_post("add_results/#{run_id.to_s}", opts)
359
359
  end
360
360
 
361
361
  # Adds one or more new test results, comments or assigns one or more tests (using the case IDs)
@@ -364,7 +364,7 @@ module Endpoints
364
364
  # @example POST index.php?/api/v2/add_results_for_cases/:run_id
365
365
  # @see http://docs.gurock.com/testrail-api2/reference-results
366
366
  def add_results_for_cases(run_id, opts = {})
367
- send_post("add_results_for_cases/:#{run_id.to_s}", opts)
367
+ send_post("add_results_for_cases/#{run_id.to_s}", opts)
368
368
  end
369
369
 
370
370
  # Get run by run id
@@ -373,7 +373,7 @@ module Endpoints
373
373
  # @example GET index.php?/api/v2/get_run/:run_id
374
374
  # @see http://docs.gurock.com/testrail-api2/reference-runs
375
375
  def get_run(run_id, opts = {})
376
- send_get("get_run/:#{run_id.to_s}", opts)
376
+ send_get("get_run/#{run_id.to_s}", opts)
377
377
  end
378
378
 
379
379
  # Get runs by project id
@@ -383,7 +383,7 @@ module Endpoints
383
383
  # @example GET index.php?/api/v2/get_runs/:project_id
384
384
  # @see http://docs.gurock.com/testrail-api2/reference-runs
385
385
  def get_runs(project_id, opts = {})
386
- send_get("get_runs/:#{project_id.to_s}", opts)
386
+ send_get("get_runs/#{project_id.to_s}", opts)
387
387
  end
388
388
 
389
389
  # Add run by suite id
@@ -392,7 +392,7 @@ module Endpoints
392
392
  # @example POST index.php?/api/v2/add_run/:project_id
393
393
  # @see http://docs.gurock.com/testrail-api2/reference-runs
394
394
  def add_run(project_id, opts = {})
395
- send_post("add_run/:#{project_id.to_s}", opts)
395
+ send_post("add_run/#{project_id.to_s}", opts)
396
396
  end
397
397
 
398
398
  # Updates existing test run
@@ -401,7 +401,7 @@ module Endpoints
401
401
  # @example POST index.php?/api/v2/update_run/:run_id
402
402
  # @see http://docs.gurock.com/testrail-api2/reference-runs
403
403
  def update_run(run_id, opts = {})
404
- send_post("update_run/:#{run_id.to_s}", opts)
404
+ send_post("update_run/#{run_id.to_s}", opts)
405
405
  end
406
406
 
407
407
  # Closes an existing test run and archives its tests & results
@@ -419,7 +419,7 @@ module Endpoints
419
419
  # @example POST index.php?/api/v2/delete_run/:run_id
420
420
  # @see http://docs.gurock.com/testrail-api2/reference-runs
421
421
  def delete_run(run_id, opts = {})
422
- send_post("delete_run/:#{run_id.to_s}", opts)
422
+ send_post("delete_run/#{run_id.to_s}", opts)
423
423
  end
424
424
 
425
425
  # Returns an existing test
@@ -428,7 +428,7 @@ module Endpoints
428
428
  # @example GET index.php?/api/v2/get_test/:test_id
429
429
  # @see http://docs.gurock.com/testrail-api2/reference-tests
430
430
  def get_test(test_id, opts = {})
431
- send_get("get_test/:#{test_id.to_s}", opts)
431
+ send_get("get_test/#{test_id.to_s}", opts)
432
432
  end
433
433
 
434
434
  # Returns a list of tests for a test run
@@ -437,7 +437,7 @@ module Endpoints
437
437
  # @example GET index.php?/api/v2/get_tests/:run_id
438
438
  # @see http://docs.gurock.com/testrail-api2/reference-tests
439
439
  def get_tests(run_id, opts = {})
440
- send_get("get_tests/:#{run_id.to_s}", opts)
440
+ send_get("get_tests/#{run_id.to_s}", opts)
441
441
  end
442
442
 
443
443
  end
@@ -1,3 +1,3 @@
1
1
  module Testrail
2
- VERSION = '0.0.14'.freeze
2
+ VERSION = '0.0.15'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testrail-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frances Morales