ugly_face 0.4 → 0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +3 -0
- data/lib/ugly_face/templates/feature.erb +1 -1
- data/lib/ugly_face/templates/main.erb +6 -6
- data/lib/ugly_face/version.rb +1 -1
- data/lib/ugly_face.rb +0 -40
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47e23d533ecbed37ef7180604a76bcc5eb23b058
|
4
|
+
data.tar.gz: 0aa76dbd6ffc50e727c9111dfdb791c557e4b3bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a70d8fb3b337a0e3359b289fa44eefdf61788b53a82bc5c35ebe604bf238a1e1fc43a0613b57da922a905089ef42d34012fcd770444f0dc162b82fc55838796
|
7
|
+
data.tar.gz: a3719bba8e60b3a1f087a7c7496e24cc679c7dc8c25da6719b1d3078f4578535e55b2bedf4bae07999f0a4a214b54699cf7623c3336d2bb73d2e62d700f9022d
|
data/ChangeLog
CHANGED
@@ -128,7 +128,7 @@
|
|
128
128
|
<% end %>
|
129
129
|
<tr class="borderSeparator">
|
130
130
|
<td class="image_tag"> <%= raw(feature.image_tag_for('debug', feature.file)) %></td>
|
131
|
-
<td class= "debugData"> <%= raw(
|
131
|
+
<td class= "debugData"> <%= raw(BuellerData.pop_scenario) %></td>
|
132
132
|
<td></td>
|
133
133
|
</tr>
|
134
134
|
</table>
|
@@ -26,22 +26,22 @@
|
|
26
26
|
<td><%= report.start_time %></td>
|
27
27
|
</tr>
|
28
28
|
<tr>
|
29
|
-
<th>
|
30
|
-
<td><%= ENV['
|
29
|
+
<th>Banner: </th>
|
30
|
+
<td><%= ENV['BANNER'] %></td>
|
31
31
|
<th>Duration: </th>
|
32
32
|
<td><%= report.total_duration %></td>
|
33
33
|
</tr>
|
34
34
|
<tr>
|
35
35
|
<th>Browser: </th>
|
36
36
|
<td><%= ENV['CLIENT'] %></td>
|
37
|
-
<th>
|
38
|
-
<td><%= ENV['
|
37
|
+
<th>JIRA?: </th>
|
38
|
+
<td><%= ENV['JIRA'] %></td>
|
39
39
|
</tr>
|
40
40
|
<tr>
|
41
41
|
<th>Scope: </th>
|
42
42
|
<td><%= ENV['SCOPE'] %></td>
|
43
|
-
<th>
|
44
|
-
<td><%= ENV['
|
43
|
+
<th>Language: </th>
|
44
|
+
<td><%= ENV['LANGUAGE'] %></td>
|
45
45
|
</tr>
|
46
46
|
</table>
|
47
47
|
</div>
|
data/lib/ugly_face/version.rb
CHANGED
data/lib/ugly_face.rb
CHANGED
@@ -2,47 +2,7 @@ require "ugly_face/version"
|
|
2
2
|
require "ugly_face/formatter/html"
|
3
3
|
|
4
4
|
module UglyFace
|
5
|
-
@index = 0
|
6
|
-
@scenario_msgs = Hash.new
|
7
|
-
@msg_storage = Array.new
|
8
|
-
@cli_output=''
|
9
|
-
@html_output=''
|
10
5
|
|
11
|
-
def self.add_msg(key='', msg='')
|
12
|
-
hash_data=''
|
13
|
-
msg.each { |k, v| hash_data << "#{k}: #{v}+ " } if msg.is_a?(Hash)
|
14
|
-
@scenario_msgs[:"#{key}"] = "#{(hash_data == '') ? msg : hash_data}"
|
15
|
-
end
|
16
|
-
|
17
|
-
|
18
|
-
def self.process_scenario
|
19
|
-
raw_output=''
|
20
|
-
@scenario_msgs.each { |key, value| raw_output << "+#{key}:+ #{value}+" }
|
21
|
-
raw_output= raw_output.gsub("+ ++","++")
|
22
|
-
@cli_output= raw_output.gsub("+","\n")
|
23
|
-
@html_output= raw_output.gsub("+","<br />")
|
24
|
-
@msg_storage.push(@html_output)
|
25
|
-
$stdout.puts @cli_output unless ENV['DEBUG']== 'FALSE'
|
26
|
-
end
|
27
|
-
|
28
|
-
def self.reset
|
29
|
-
@scenario_msgs= {}
|
30
|
-
@cli_output= ''
|
31
|
-
@html_output= ''
|
32
|
-
end
|
33
|
-
|
34
|
-
def self.pop_scenario
|
35
|
-
@index+=1 #Do this first so last line (returned data) is the array readout.
|
36
|
-
@msg_storage.at(@index-1)
|
37
|
-
end
|
38
|
-
|
39
|
-
def self.formatted_cli
|
40
|
-
@cli_output
|
41
|
-
end
|
42
|
-
|
43
|
-
def self.formatted_html
|
44
|
-
@html_output
|
45
|
-
end
|
46
6
|
|
47
7
|
|
48
8
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ugly_face
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.5'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Commmu
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-11-
|
12
|
+
date: 2015-11-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|