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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e0cd3bbf017046f62eb1870b994d0f12a4921ace
4
- data.tar.gz: 26dbf66742696f51e8a5cc8d5ac0530bcbc2ecfc
3
+ metadata.gz: 47e23d533ecbed37ef7180604a76bcc5eb23b058
4
+ data.tar.gz: 0aa76dbd6ffc50e727c9111dfdb791c557e4b3bb
5
5
  SHA512:
6
- metadata.gz: c8109d81adf57ab428a2697a626c45e7dc7b0132ca6f75eae3331d0ee4fc2a1018b4391bc086bc23eb958153a10fc05f72a0e9f39b671a51a4611b3c359896fa
7
- data.tar.gz: b9564fcac608a5f5c64c4defd8a81cf344d746ba6eba0fd0444c9a784bc893546f3245b40fb99e4e499dcdc5e2ec3aefaba7b357cc8674f95bce84b6beabd4a0
6
+ metadata.gz: 6a70d8fb3b337a0e3359b289fa44eefdf61788b53a82bc5c35ebe604bf238a1e1fc43a0613b57da922a905089ef42d34012fcd770444f0dc162b82fc55838796
7
+ data.tar.gz: a3719bba8e60b3a1f087a7c7496e24cc679c7dc8c25da6719b1d3078f4578535e55b2bedf4bae07999f0a4a214b54699cf7623c3336d2bb73d2e62d700f9022d
data/ChangeLog CHANGED
@@ -1,3 +1,6 @@
1
+ === Release 0.5 / 2015-11-20
2
+ Updated Main ENV var panel
3
+
1
4
  === Release 0.4 / 2015-11-20
2
5
  Cleanup hashes before adding them to the debug output
3
6
 
@@ -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(UglyFace.pop_scenario) %></td>
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>Location: </th>
30
- <td><%= ENV['NODE'] %></td>
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>Debug?: </th>
38
- <td><%= ENV['DEBUG'] %></td>
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>Screenshots?: </th>
44
- <td><%= ENV['SCREENSHOTS'] %></td>
43
+ <th>Language: </th>
44
+ <td><%= ENV['LANGUAGE'] %></td>
45
45
  </tr>
46
46
  </table>
47
47
  </div>
@@ -1,3 +1,3 @@
1
1
  module UglyFace
2
- VERSION = "0.4"
2
+ VERSION = "0.5"
3
3
  end
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'
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-23 00:00:00.000000000 Z
12
+ date: 2015-11-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack