tl-api-client 0.1.1 → 0.1.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da194dbebc79e9af007840f3a33e177282d0a6b8
4
- data.tar.gz: c4ca66129143b4136d9ff116d6e2a479546727d2
3
+ metadata.gz: 35f6847f92b30470bb096b7f2a9a3a98705aa785
4
+ data.tar.gz: bea35aeb955e8d464d3bccb558445afc7f168452
5
5
  SHA512:
6
- metadata.gz: 0baa55154914d9b842e325c1d2e6451a3c1448a0b5ffeba03354bdb9bfe5b6180df7cad1c88d5ee0e58b3bebe635f80068c5392b75958d3f49cda53b779dfe27
7
- data.tar.gz: b06df37e2de54829493c812259e5bb34a5a674beb053e60438a075e21f14ab70c0e38a64e3d07fc886fc32c05ad8c545282d56fa871aa8756a6b6e7a5334341d
6
+ metadata.gz: c81a1b9756f81a74d1f88379e61aeba91c4824b320280eebfab15a980f5664e93b55159220c92a77b43b6387e649b3c12ade36ab779c765ccfd0f3ff3fa703ad
7
+ data.tar.gz: 25c710e52840bfb9fdd1aaab6d01ebff29ebb56022b34b53e090f6127d40a3add7ed019c790820e6fd4de8b615ea16d673457042ff1a4afd406e5bd5d8d5c876
@@ -39,6 +39,12 @@ module Testlink
39
39
  end
40
40
  end
41
41
 
42
+
43
+ def check_dev_key dev_key
44
+
45
+ get_result "checkDevKey"
46
+ end
47
+
42
48
 
43
49
  def get_latest_build_for_test_plan tplanid
44
50
 
@@ -77,8 +83,11 @@ module Testlink
77
83
 
78
84
  def get_test_case_keywords tcid = nil, tcexternalid = nil
79
85
 
80
- input = { "testcaseid" => tcid,
81
- "testcaseexternalid" => tcexternalid }
86
+ if tcexternalid.nil?
87
+ input = { "testcaseexternalid" => tcexternalid }
88
+ else
89
+ input = { "testcaseid" => tcid }
90
+ end
82
91
  get_result "tl.getTestCaseKeywords", input
83
92
  end
84
93
 
@@ -159,8 +168,11 @@ module Testlink
159
168
 
160
169
  def get_test_case tcid = nil, tcexternalid = nil
161
170
 
162
- input = { "testcaseid" => tcid,
163
- "testcaseexternalid" => tcexternalid }
171
+ if tcexternali.nil?
172
+ input = { "testcaseexternalid" => tcexternalid }
173
+ else
174
+ input = { "testcaseid" => tcid }
175
+ end
164
176
  get_result "tl.getTestCase", input
165
177
  end
166
178
 
@@ -1,7 +1,7 @@
1
1
  module Tl
2
2
  module Api
3
3
  module Client
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tl-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emma Chen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-16 00:00:00.000000000 Z
11
+ date: 2017-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler