avst-wizard 0.0.37 → 0.0.38

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: a8d37c5820ea2f6fd92a477ccdee3c2e05678005cad08336d4872ccb7624ef71
4
- data.tar.gz: 10c1045d59f7c9c2e1b4e935a790f784e26180b3c6098cfdf5e7240f3932087a
3
+ metadata.gz: 45a427693d4f8314637c030b2d4b83750d2fe0c4f3056c0181cc1e25e235f641
4
+ data.tar.gz: 0b5115e98213eb2c7d032bf4f6a9de051c8c687cb4ac1fd3e5416d6199587d23
5
5
  SHA512:
6
- metadata.gz: 38dc274c2f493edd5313a2f56598b94311b18758b7828d6220dc6c8e4bfb847a7a230eb15dff67c9d378b531210a0e4506c80704f17b3515052f344a7861b74e
7
- data.tar.gz: d4be9c5face01d2a53d450c8bd315304056d214de0fac8b1a351fad3a9dac40c36db5400cf8612ca549e80f3ee0dd56b70ce60c2169dd0d3a63af981307dcfcc
6
+ metadata.gz: 6728c8c6afd20a0c59b35dec021e7ae5a6f8ab389b34040d90b79b0382a1a1c46243b7987ea88c24de5295ef1535a720c063575af3d5d42a99b411c9af604c9b
7
+ data.tar.gz: 55a3daa82c13d34c71e98dcfd2d542bb5ea42a0c42b0e213eddb274a94dd82f6a4ce9777e372a431755f76ec91f187b2a4e225d72dc18df77cab9cb2d775a15f
data/avst-wizard.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "avst-wizard"
7
- spec.version = '0.0.37'
7
+ spec.version = '0.0.38'
8
8
  spec.authors = ["Martin Brehovsky"]
9
9
  spec.email = ["mbrehovsky@adaptavist.com"]
10
10
  spec.summary = %q{Avstwizard}
data/bin/avst-wizard CHANGED
@@ -151,7 +151,7 @@ begin
151
151
  end
152
152
  runner = AvstWizard::AvstWizard.new(base_url, context_path, required_config, url_required_part, host_url)
153
153
 
154
-
154
+ initial_path = context_path ? context_path : "/"
155
155
  # wait for app to start
156
156
  # until get_stage returns recognized state or time out
157
157
  number_of_retries = 60
@@ -159,7 +159,7 @@ begin
159
159
  code = runner.get_stage_and_fetch_cookie
160
160
  to_search_for = runner.get_current_url
161
161
  puts "Searching for #{to_search_for}"
162
- if to_search_for != "/" and final_stages_config[%r{#{to_search_for}}] != nil
162
+ if to_search_for != initial_path and final_stages_config[%r{#{to_search_for}}] != nil
163
163
  not_recognized = false
164
164
  else
165
165
  not_recognized = true
@@ -176,7 +176,7 @@ begin
176
176
  code = runner.get_stage_and_fetch_cookie
177
177
  to_search_for = runner.get_current_url
178
178
  puts "Looping: Searching for #{to_search_for}"
179
- if to_search_for != "/" and code.to_i == 200 and final_stages_config[%r{#{to_search_for}}] != nil
179
+ if to_search_for != initial_path and code.to_i == 200 and final_stages_config[%r{#{to_search_for}}] != nil
180
180
  not_recognized = false
181
181
  else
182
182
  puts "Stage with url #{to_search_for} not recognized, retrying in 5 secs, attempt #{counter}/#{number_of_retries}, response code #{code}".yellow
@@ -187,7 +187,7 @@ begin
187
187
  retries = 0
188
188
  done = false
189
189
  called = false
190
- while !done and to_search_for != "/"
190
+ while !done and to_search_for != initial_path
191
191
  puts "Searching for config for #{to_search_for}".green
192
192
  stage_config = final_stages_config[%r{#{to_search_for}}]
193
193
  unless stage_config
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avst-wizard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.37
4
+ version: 0.0.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Brehovsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-25 00:00:00.000000000 Z
11
+ date: 2018-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler