itriagetestrail 0.4.9 → 0.5.0

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: c9c33fa190a600e512d30ed65de7c94409416bef
4
- data.tar.gz: 5f0903b417e1c28172192242607f31334ee3dca0
3
+ metadata.gz: bc684e04f4f4367b3a0fe9c2104c250eedc39304
4
+ data.tar.gz: 586dbf0681a02925b11788cf0b6633d4247aa131
5
5
  SHA512:
6
- metadata.gz: 60447828eabe47ff1c0cbb71f4685b6d3e4a0e669f30434a3f62085183ce2ab22b794aeea1ed5b7ca7e7a907a7eed9eeade9c2c66dc2e350de8b356feb82b08d
7
- data.tar.gz: f585469eebb54f80b90fdabe13339ddc4b0811c715669007e6f389e87bd02b5361edf2792276726bae13277c014c886dfefcec193cdc506cf6ea887710fc64a5
6
+ metadata.gz: 01ea883c568fa11d0d1c7a52cc65a0cab38ee3238c81c2592712a47e1b2cfddc8cd63250e956848f5d168503ed09f1ef710161e21e5d71afa37bf4a6e38c0632
7
+ data.tar.gz: db89f35e0d2506316ead2a9b50cbdbfa9a9ec921509af530edaac709ab94f06c48a896ad80e9d2347aba6e3368da45a31f8c1842740384502bc5edde6b595a77
@@ -1,3 +1,3 @@
1
1
  module Itriagetestrail
2
- VERSION = '0.4.9'
2
+ VERSION = '0.5.0'
3
3
  end
@@ -48,13 +48,6 @@ module Itriagetestrail
48
48
 
49
49
  @external_results = { results: [] }
50
50
  @batch_size = @testrail_config[:batch_size] || 0
51
- make_connection
52
- # Set the project id
53
- set_project_id
54
- # Get the test rail sections
55
- testrail_sections
56
- # Get the test rail ids
57
- testrail_ids
58
51
  end
59
52
 
60
53
  def setup?
@@ -70,6 +63,8 @@ module Itriagetestrail
70
63
  @external_results = { results: [] }
71
64
  @batch_size = @testrail_config[:batch_size] || 0
72
65
 
66
+ initialize_variables
67
+
73
68
  @milestone_id = fetch_milestone(@milestone_name)
74
69
 
75
70
  reset_milestone(@milestone_name)
@@ -85,6 +80,16 @@ module Itriagetestrail
85
80
  @setup = true
86
81
  end
87
82
 
83
+ def initialize_variables
84
+ make_connection
85
+ # Set the project id
86
+ set_project_id
87
+ # Get the test rail sections
88
+ testrail_sections
89
+ # Get the test rail ids
90
+ testrail_ids
91
+ end
92
+
88
93
  def make_connection
89
94
  @client = TestRail::APIClient.new(@testrail_config[:site])
90
95
  @client.user = @testrail_config[:user]
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: 0.4.9
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - a801069
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-22 00:00:00.000000000 Z
11
+ date: 2016-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler