testrail-ruby 0.0.7 → 0.0.8

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 +19 -0
  3. data/lib/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e752f6f2bfe9993b01a164db160f853b8112344
4
- data.tar.gz: 32d0ffd73f570382c12594d51bfa327536d7c194
3
+ metadata.gz: 966f43685640d88c1be60e24a71b63113ee50fe4
4
+ data.tar.gz: 042a7940f3645a2cda1fe349fce5e5f556e6a8a1
5
5
  SHA512:
6
- metadata.gz: eaa3be02dbbe23ddf73c8512b262d2b06d501d1207ed6fb4caaa180ad1b512369cf4dcb408f6ec99f6898083ff526d72b00492a046473739bfbed05f42830ed4
7
- data.tar.gz: fcfcab1bc4bd4c5047cb6115652b30f17ad99f28e04658c071491a42c2150b014ffcc6de855f0c4cb4ec9fd5b0d5adad733b0e6382ee7406e3f4ca9e5518ddcc
6
+ metadata.gz: cf54d28e67b3e694c585438df9c42383e017ac4943a17ea0e3b5516ef0b2bec62a3516f1b6e523e08f0543770774bbe7a7a8fc64fb1a18bb1981ce5259427bc7
7
+ data.tar.gz: 2e27b6bb3d6afc8ecc86404d8d2bbdf781c849a235a2a9b9622ee559f38b96672ba779464b5c5f1992fea9fa595f97cbe3681a45ab36337eea80584533cc74f8
@@ -15,6 +15,25 @@ module Endpoints
15
15
  send_get("get_cases/#{project_id.to_s}", opts)
16
16
  end
17
17
 
18
+ # Return all test cases in a given project by suite_id and section_id
19
+ # @param project_id [int] The id of the project that contains your tests
20
+ # @param suite_id [int] The id of the suite within the project
21
+ # @param section_id [int] The id of the section within the suite
22
+ # @param opts [hash]
23
+ # @see http://docs.gurock.com/testrail-api2/reference-cases
24
+ def get_cases_by_section(project_id, suite_id, section_id, opts = {})
25
+ send_get("get_cases/#{project_id.to_s}&suite_id=#{suite_id.to_s}&section_id=#{section_id.to_s}", opts)
26
+ end
27
+
28
+ # Return all test cases in a given project by suite_id
29
+ # @param project_id [int] The id of the project that contains your tests
30
+ # @param suite_id [int] The id of the suite within the project
31
+ # @param opts [hash]
32
+ # @see http://docs.gurock.com/testrail-api2/reference-cases
33
+ def get_cases_by_suite(project_id, suite_id, opts = {})
34
+ send_get("get_cases/#{project_id.to_s}&suite_id=#{suite_id.to_s}", opts)
35
+ end
36
+
18
37
  # Add results to a geven test case
19
38
  # @param case_id [int] The id of the test case
20
39
  # @param opts [hash]
@@ -1,3 +1,3 @@
1
1
  module Testrail
2
- VERSION = '0.0.7'.freeze
2
+ VERSION = '0.0.8'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testrail-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frances Morales
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-09 00:00:00.000000000 Z
11
+ date: 2017-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler