cuke_sniffer 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/cuke_sniffer +6 -1
- data/lib/cuke_sniffer/cli.rb +35 -14
- data/lib/cuke_sniffer/cuke_sniffer_helper.rb +165 -164
- data/lib/cuke_sniffer/formatter.rb +2 -19
- data/lib/cuke_sniffer/report/css.html.erb +133 -0
- data/lib/cuke_sniffer/report/dead_steps.html.erb +62 -35
- data/lib/cuke_sniffer/report/features.html.erb +104 -50
- data/lib/cuke_sniffer/report/hooks.html.erb +78 -48
- data/lib/cuke_sniffer/report/improvement_list.html.erb +12 -6
- data/lib/cuke_sniffer/report/js.html.erb +65 -0
- data/lib/cuke_sniffer/report/min_template.html.erb +16 -125
- data/lib/cuke_sniffer/report/rules.html.erb +75 -8
- data/lib/cuke_sniffer/report/standard_template.html.erb +14 -127
- data/lib/cuke_sniffer/report/step_definitions.html.erb +68 -49
- data/lib/cuke_sniffer/report/summary.html.erb +40 -15
- data/lib/cuke_sniffer/report/title.html.erb +9 -0
- data/lib/cuke_sniffer/rule_config.rb +508 -483
- metadata +5 -3
- data/lib/cuke_sniffer/report/sub_rules.html.erb +0 -24
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cuke_sniffer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-
|
14
|
+
date: 2013-10-01 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: roxml
|
@@ -37,13 +37,15 @@ extensions: []
|
|
37
37
|
extra_rdoc_files: []
|
38
38
|
files:
|
39
39
|
- lib/cuke_sniffer/report/dead_steps.html.erb
|
40
|
+
- lib/cuke_sniffer/report/js.html.erb
|
41
|
+
- lib/cuke_sniffer/report/css.html.erb
|
42
|
+
- lib/cuke_sniffer/report/title.html.erb
|
40
43
|
- lib/cuke_sniffer/report/features.html.erb
|
41
44
|
- lib/cuke_sniffer/report/hooks.html.erb
|
42
45
|
- lib/cuke_sniffer/report/improvement_list.html.erb
|
43
46
|
- lib/cuke_sniffer/report/min_template.html.erb
|
44
47
|
- lib/cuke_sniffer/report/standard_template.html.erb
|
45
48
|
- lib/cuke_sniffer/report/rules.html.erb
|
46
|
-
- lib/cuke_sniffer/report/sub_rules.html.erb
|
47
49
|
- lib/cuke_sniffer/report/step_definitions.html.erb
|
48
50
|
- lib/cuke_sniffer/report/summary.html.erb
|
49
51
|
- lib/cuke_sniffer/report/legend.html.erb
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<ol class="rule_style">
|
2
|
-
<p class="rule_heading"><%= heading %></p>
|
3
|
-
<% cuke_sniffer.rules.select { |rule| rule.enabled == state }.each do |rule| %>
|
4
|
-
<li class="rule_notes">
|
5
|
-
<div class="rule_details">Phrase: <%= rule.phrase %></div>
|
6
|
-
<div class="rule_details">Score: <%= rule.score %></div>
|
7
|
-
<% rule.conditions.each do |key, value| %>
|
8
|
-
<% if value.kind_of?(Array) %>
|
9
|
-
<div class="rule_details"><%= key.capitalize %>:</div>
|
10
|
-
|
11
|
-
<% result = CukeSniffer::Formatter.convert_array_condition_into_list_of_strings(value) %>
|
12
|
-
<% result.first.prepend("[") %>
|
13
|
-
<% result.last << "]" %>
|
14
|
-
<% result.each do |words| %>
|
15
|
-
<div><%= words %></div>
|
16
|
-
<% end %>
|
17
|
-
|
18
|
-
<% else %>
|
19
|
-
<div class="rule_details"><%= key.capitalize %>: <%= value %></div>
|
20
|
-
<% end %>
|
21
|
-
</li>
|
22
|
-
<% end %>
|
23
|
-
<% end %>
|
24
|
-
</ol>
|