itriagetestrail 1.0.38 → 1.1.1

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: 316ef8566e9b3a1eb558d8a78ce5b9968fd787f26ea0c3054fe5fa85eff4675a
4
- data.tar.gz: f22e0a3b34ff051d5163315521b0a88c355a061a4e83feee595de4e031657a65
3
+ metadata.gz: 94a7d9f797508d3326ce9509dd4635c9879356b5721c612cc5e27f741af7f437
4
+ data.tar.gz: 4005e0951435697a7ec6f9208d4915cd9daea9c31d17c4c37b52c294733c8879
5
5
  SHA512:
6
- metadata.gz: 68ec66a8b3ea432fd12a9c6edcbb99e74389b254c7b2334f4dc16e608871c7fb3f830268d7d2acfe35f7a8b6588e8e140f402cae892b1b133859634c76617cdb
7
- data.tar.gz: 1d76726f8cdbb942748de2847eab6bf763c39c23832bc3ffc9dd1673f74129fc2805a530ef180b4a6acd8a1ed48b8a1210c5710f35ea1035bec22e3911de0b0d
6
+ metadata.gz: 976d750b309b40322da19dcc8a29fb834c6539cd5ad434dd1477203a375be1a1742af94ddf8622a4ad9da31421dd72b2f56afb807d0e9bd5d2d444e62c5f7343
7
+ data.tar.gz: 877f2c7bab38531fb61de5d7762bb3f2a5b08a083fbc0ce705130c907bf41bc45fd1bed1ad7a73fbcb3baf5bdd0ce235d98f13f86c209cd88e0b0bde341285ba
@@ -188,7 +188,7 @@ module Itriagetestrail
188
188
  # Get the test rail sections
189
189
  testrail_sections
190
190
  # Get the test rail ids
191
- testrail_ids
191
+ testrail_ids true
192
192
  # Populate configurations
193
193
  configurations
194
194
  end
@@ -44,8 +44,8 @@ module TestRail
44
44
  # uri The API method to call including parameters
45
45
  # (e.g. get_case/1)
46
46
  #
47
- def send_get(uri)
48
- res = read_cache(uri)
47
+ def send_get(uri, read_cache = true)
48
+ res = read_cache(uri) if read_cache
49
49
  res || _send_request('GET', uri, nil, true)
50
50
  end
51
51
 
@@ -3,12 +3,12 @@
3
3
  module Itriagetestrail
4
4
  module TestCases
5
5
  # TestRail Cases
6
- def testrail_ids
6
+ def testrail_ids(read_cache = true)
7
7
  case @suite_mode
8
8
  when 2, 3
9
- @test_cases = @client.send_get("get_cases/#{@project_id}&suite_id=#{@suite_id}&type_id=3")
9
+ @test_cases = @client.send_get("get_cases/#{@project_id}&suite_id=#{@suite_id}&type_id=3", read_cache)
10
10
  else
11
- @test_cases = @client.send_get("get_cases/#{@project_id}&type_id=3")
11
+ @test_cases = @client.send_get("get_cases/#{@project_id}&type_id=3", read_cache)
12
12
  end
13
13
 
14
14
  @test_case_ids = []
@@ -47,7 +47,7 @@ module Itriagetestrail
47
47
  @client.send_post("add_case/#{section_id}", body)
48
48
 
49
49
  # refresh test case ids
50
- testrail_ids
50
+ testrail_ids false
51
51
  end
52
52
 
53
53
  def app_version_label
@@ -53,7 +53,7 @@ module Itriagetestrail
53
53
  run_id = nil
54
54
  results = []
55
55
  File.open("./tmp/batch").each do |line|
56
- content = JSON.parse(line)
56
+ content = JSON.parse(line, symbolize_names: true)
57
57
  unless run_id
58
58
  run_id = content[:runId]
59
59
  end
@@ -1,3 +1,3 @@
1
1
  module Itriagetestrail
2
- VERSION = '1.0.38'.freeze
2
+ VERSION = '1.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itriagetestrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.38
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - a801069
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-08 00:00:00.000000000 Z
11
+ date: 2020-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzinfo