avst-wizard 0.0.37 → 0.0.38
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 +4 -4
- data/avst-wizard.gemspec +1 -1
- data/bin/avst-wizard +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 45a427693d4f8314637c030b2d4b83750d2fe0c4f3056c0181cc1e25e235f641
|
|
4
|
+
data.tar.gz: 0b5115e98213eb2c7d032bf4f6a9de051c8c687cb4ac1fd3e5416d6199587d23
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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 !=
|
|
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 !=
|
|
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.
|
|
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-
|
|
11
|
+
date: 2018-07-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|