itriagetestrail 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: ca184602865faed2cddddc923bbf3cba340a7c03
4
- data.tar.gz: 7424622d43d58c797c2caae9bfb32a1b11c2937a
3
+ metadata.gz: de99aa91a1b1cfd4c36a14726de04ee4a4391730
4
+ data.tar.gz: 03dba8ae536a3ee66a29e7481fcaecb5df44fdf9
5
5
  SHA512:
6
- metadata.gz: 97d4a13b3e89e9325c6c80ecfe0822d463db4d4830f7b64ecc45e0f2a7b7f5c0206ab5169f21e7df2880d991ed9878a01f0cfa1aeb2358f648175c5318f0f0da
7
- data.tar.gz: bce81ab788adc8bf1b78a5c3d2b10d355e17e40023242c7cb7e70f9951257957c1371161ab93b79a8cc824db106e44f8e97ac39807d484aea3b9b8719e3c2d69
6
+ metadata.gz: 2de9ed80a3a51a1a9e22a9181c836d0116dd729b1ea88f4449394e0ebd9a8614123905941b152ce58a5a725f4d2894374142702e017b8cb387772b1853d20854
7
+ data.tar.gz: b7b58cba1a2ed419d7d80b6f6bfd9101db487e7d7341841e9697fe568154030d84a1358f79a1d2ec7b19bd1414c2a062b3360563cc083e258d33157942b02dc5
@@ -1,3 +1,3 @@
1
1
  module Itriagetestrail
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -22,7 +22,7 @@ module Itriagetestrail
22
22
  @run_id = 0
23
23
  @setup = false
24
24
  @testrail_config = testrail_config
25
- @project_id = @testrail_config.project_id
25
+ @project_id = @testrail_config['project_id']
26
26
  @execute = execute
27
27
  end
28
28
 
@@ -37,7 +37,7 @@ module Itriagetestrail
37
37
  @submitted = { results: [] }
38
38
 
39
39
  @external_results = { results: [] }
40
- @batch_size = @testrail_config.batch_size
40
+ @batch_size = @testrail_config['batch_size']
41
41
 
42
42
  make_connection
43
43
 
@@ -55,9 +55,9 @@ module Itriagetestrail
55
55
  end
56
56
 
57
57
  def make_connection
58
- @client = TestRail::APIClient.new(@testrail_config.site)
59
- @client.user = @testrail_config.user
60
- @client.password = @testrail_config.password
58
+ @client = TestRail::APIClient.new(@testrail_config['site'])
59
+ @client.user = @testrail_config['user']
60
+ @client.password = @testrail_config['password']
61
61
  end
62
62
 
63
63
  # TestRail Sections
@@ -143,7 +143,7 @@ module Itriagetestrail
143
143
  # open a test run to submit test results
144
144
  def add_testrail_run
145
145
 
146
- if @testrail_config.include_all? then
146
+ if @testrail_config['include_all?'] then
147
147
 
148
148
  body = {
149
149
  :name => "POC Regression on #{Time.now}",
@@ -226,7 +226,7 @@ module Itriagetestrail
226
226
  def shutdown
227
227
  @pool.shutdown
228
228
 
229
- if @testrail_config.close_run?
229
+ if @testrail_config['close_run?']
230
230
  @client.send_post("close_run/#{@run_id}", {})
231
231
  end
232
232
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itriagetestrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - a801069