report_builder 1.4 → 1.5
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/CHANGELOG.md +9 -1
- data/README.md +26 -17
- data/bin/report_builder +16 -6
- data/lib/report_builder.rb +3 -0
- data/lib/report_builder/builder.rb +3 -1
- data/report_builder.gemspec +1 -1
- data/template/error.erb +2 -2
- data/template/feature.erb +2 -2
- data/template/footer.erb +29 -3
- data/template/group_errors.erb +1 -1
- data/template/group_features.erb +2 -2
- data/template/group_report.erb +5 -5
- data/template/group_summary.erb +1 -1
- data/template/head.erb +1 -1
- data/template/header.erb +9 -9
- data/template/hook.erb +4 -1
- data/template/report.erb +5 -5
- data/template/summary.erb +1 -1
- 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: 4e040f4e0aab45099f7c665d0ff4ccf69f49f348
|
4
|
+
data.tar.gz: 95c2949aa0d294f0dbfe677243d0386f90d9414a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ac1cbd9679f7fb626c54a1932e8882d862cc0dddf2300a2ae87ae72b128a929a5e90122dc17ae774ca9d0bb848231d95b064ddfca6b4c0a43a5f59276a52073
|
7
|
+
data.tar.gz: b0e8ecb77d1d4af4608a1a26f2f0cf2fc42f3b2afee74929385ce372708631425b060551a88f3dc9b42f659bc3086d9feb3976be7fee2aeb13bbb933fa35e5c2
|
data/CHANGELOG.md
CHANGED
@@ -3,7 +3,15 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5
5
|
|
6
|
-
## [Unreleased](https://github.com/rajatthareja/ReportBuilder/compare/v1.
|
6
|
+
## [Unreleased](https://github.com/rajatthareja/ReportBuilder/compare/v1.5...master)
|
7
|
+
|
8
|
+
## [1.5](https://github.com/rajatthareja/ReportBuilder/compare/v1.4...v1.5) - 2017-03-03
|
9
|
+
### Added
|
10
|
+
- Voice Commands
|
11
|
+
- Tabs name
|
12
|
+
- Color option
|
13
|
+
### Fixed
|
14
|
+
- js and css cli option
|
7
15
|
|
8
16
|
## [1.4](https://github.com/rajatthareja/ReportBuilder/compare/v1.3...v1.4) - 2017-10-29
|
9
17
|
### Fixed
|
data/README.md
CHANGED
@@ -42,9 +42,11 @@ gem install report_builder
|
|
42
42
|
| report_types | [Array] | [:html] | :json, :html, :retry (output file types) |
|
43
43
|
| report_title | [String] | 'Test Results' | report and html title |
|
44
44
|
| include_images | [Boolean] | true | true / false (If false, the size of HTML report is reduced by excluding embedded images) |
|
45
|
+
| voice_commands | [Boolean] | false | true / false (Enable voice commands for easy navigation and search) |
|
45
46
|
| additional_info | [Hash] | {} | additional info for report summary |
|
46
47
|
| additional_css | [String] | nil | additional CSS string or CSS file path or CSS file url for customizing html report |
|
47
48
|
| additional_js | [String] | nil | additional JS string or JS file path or JS file url for customizing html report |
|
49
|
+
| color | [String] | brown | report color, Ex: indigo, cyan, purple, grey, lime etc. |
|
48
50
|
|
49
51
|
### Code Examples:
|
50
52
|
|
@@ -83,7 +85,7 @@ gem install report_builder
|
|
83
85
|
```ruby
|
84
86
|
|
85
87
|
ReportBuilder.configure do |config|
|
86
|
-
|
88
|
+
config.json_path = {
|
87
89
|
'Group A' => ['path/of/json/files/dir1', 'path/of/json/files/dir2'],
|
88
90
|
'Group B' => ['path/of/json/file1', 'path/of/json/file2'],
|
89
91
|
'Group C' => 'path/of/json/files/dir'}
|
@@ -96,21 +98,23 @@ ReportBuilder.build_report
|
|
96
98
|
|
97
99
|
### CLI Options:
|
98
100
|
|
99
|
-
| Option
|
100
|
-
|
101
|
-
| -s, --source
|
102
|
-
| -o, --out
|
103
|
-
| --json_out
|
104
|
-
| --html_out
|
105
|
-
| --retry_out
|
106
|
-
| -f, --format
|
107
|
-
| --[no-]images
|
108
|
-
| -T, --title
|
109
|
-
| -
|
110
|
-
| --
|
111
|
-
| --
|
112
|
-
|
|
113
|
-
| -
|
101
|
+
| Option | Values | Explanation |
|
102
|
+
|-----------------------|--------------|------------------------------------------------------------------------------------|
|
103
|
+
| -s, --source | x,y,z | List of input json path or files |
|
104
|
+
| -o, --out | [PATH]NAME | Reports path with name without extension |
|
105
|
+
| --json_out | [PATH]NAME | JSON report path with name without extension |
|
106
|
+
| --html_out | [PATH]NAME | HTML report path with name without extension |
|
107
|
+
| --retry_out | [PATH]NAME | Retry report path with name without extension |
|
108
|
+
| -f, --format | x,y,z | List of report format - html,json,retry |
|
109
|
+
| --[no-]images | | Reduce HTML report size by excluding embedded images |
|
110
|
+
| -T, --title | TITLE | Report title |
|
111
|
+
| -c, --color | COLOR | Report color |
|
112
|
+
| -I, --info | a:x,b:y,c:z | List of additional info about test - key:value |
|
113
|
+
| --css | CSS/PATH/URL | Additional CSS string or CSS file path or CSS file url for customizing html report |
|
114
|
+
| --js | JS/PATH/URL | Additional JS string or JS file path or JS file url for customizing html report |
|
115
|
+
| -vc, --voice_commands | | Enable voice commands for easy navigation and search |
|
116
|
+
| -h, --help | | Show available command line switches |
|
117
|
+
| -v, --version | | Show gem version |
|
114
118
|
|
115
119
|
### CLI Example:
|
116
120
|
|
@@ -149,13 +153,18 @@ Then run rake task report_builder
|
|
149
153
|
|
150
154
|
```
|
151
155
|
|
156
|
+
### Voice Commands:
|
157
|
+
Use voice commands for easy navigation and search
|
158
|
+
* show ( overview | features | summary | errors )
|
159
|
+
* search { Keywords }
|
160
|
+
|
152
161
|
## Contributing
|
153
162
|
|
154
163
|
We're open to any contribution. It has to be tested properly though.
|
155
164
|
|
156
165
|
## Collaborators
|
157
166
|
|
158
|
-
* [Rajat Thareja](
|
167
|
+
* [Rajat Thareja](http://rajatthareja.com)
|
159
168
|
* [Justin Commu](https://github.com/tk8817)
|
160
169
|
* [Eric Kessler](https://github.com/enkessler)
|
161
170
|
* [Jeff Morgan](https://github.com/cheezy)
|
data/bin/report_builder
CHANGED
@@ -9,6 +9,8 @@ options = {
|
|
9
9
|
:report_types => [:html],
|
10
10
|
:report_title => 'Test Results',
|
11
11
|
:include_images => true,
|
12
|
+
:voice_commands => false,
|
13
|
+
:color => 'brown',
|
12
14
|
:additional_info => {}
|
13
15
|
}
|
14
16
|
|
@@ -16,7 +18,7 @@ opt_parser = OptionParser.new do |opts|
|
|
16
18
|
opts.banner = "Usage: \n report_builder [options]"
|
17
19
|
opts.separator 'Configuration options:'
|
18
20
|
|
19
|
-
opts.on('-s','--source x,y,z', Array, 'List of json path or files') do |list|
|
21
|
+
opts.on('-s', '--source x,y,z', Array, 'List of json path or files') do |list|
|
20
22
|
options[:json_path] = list
|
21
23
|
end
|
22
24
|
|
@@ -36,7 +38,7 @@ opt_parser = OptionParser.new do |opts|
|
|
36
38
|
options[:retry_report_path] = report_path
|
37
39
|
end
|
38
40
|
|
39
|
-
opts.on('-f','--format x,y,z', Array, 'List of report format - html,json,retry') do |list|
|
41
|
+
opts.on('-f', '--format x,y,z', Array, 'List of report format - html,json,retry') do |list|
|
40
42
|
options[:report_types] = list
|
41
43
|
end
|
42
44
|
|
@@ -44,22 +46,30 @@ opt_parser = OptionParser.new do |opts|
|
|
44
46
|
options[:include_images] = include_images
|
45
47
|
end
|
46
48
|
|
49
|
+
opts.on('-vc', '--voice_commands', 'Enable voice commands for easy navigation and search') do |voice_commands|
|
50
|
+
options[:voice_commands] = voice_commands
|
51
|
+
end
|
52
|
+
|
53
|
+
opts.on('-c', '--color COLOR', String, 'Report color') do |color|
|
54
|
+
options[:color] = color
|
55
|
+
end
|
56
|
+
|
47
57
|
opts.on('-T', '--title TITLE', String, 'Report title') do |report_title|
|
48
58
|
options[:report_title] = report_title
|
49
59
|
end
|
50
60
|
|
51
|
-
opts.on('-I','--info a:x,b:y,c:z', Array, 'List of additional info') do |list|
|
61
|
+
opts.on('-I', '--info a:x,b:y,c:z', Array, 'List of additional info') do |list|
|
52
62
|
list.each do |i|
|
53
63
|
key, value = i.split(':')
|
54
64
|
options[:additional_info][key] = value
|
55
65
|
end
|
56
66
|
end
|
57
67
|
|
58
|
-
opts.on('--css', 'Additional CSS string or CSS file path or CSS file url for customizing html report') do |additional_css|
|
68
|
+
opts.on('--css CSS', String, 'Additional CSS string or CSS file path or CSS file url for customizing html report') do |additional_css|
|
59
69
|
options[:additional_css] = additional_css
|
60
70
|
end
|
61
71
|
|
62
|
-
opts.on('--js', 'Additional JS string or JS file path or JS file url for customizing html report') do |additional_js|
|
72
|
+
opts.on('--js JS', String, 'Additional JS string or JS file path or JS file url for customizing html report') do |additional_js|
|
63
73
|
options[:additional_js] = additional_js
|
64
74
|
end
|
65
75
|
|
@@ -70,7 +80,7 @@ opt_parser = OptionParser.new do |opts|
|
|
70
80
|
exit
|
71
81
|
end
|
72
82
|
|
73
|
-
opts.on_tail('-v','--version', 'Show version') do
|
83
|
+
opts.on_tail('-v', '--version', 'Show version') do
|
74
84
|
puts 'ReportBuilder v' + Gem.loaded_specs['report_builder'].version.to_s rescue puts "Something want wrong. \nUse 'gem list report_builder'"
|
75
85
|
exit
|
76
86
|
end
|
data/lib/report_builder.rb
CHANGED
@@ -15,6 +15,7 @@ module ReportBuilder
|
|
15
15
|
# config.report_types = [:JSON, :HTML]
|
16
16
|
# config.report_title = 'My Test Results'
|
17
17
|
# config.include_images = true
|
18
|
+
# config.voice_commands = true
|
18
19
|
# config.additional_info = {Browser: 'Chrome', Environment: 'Stage 5'}
|
19
20
|
# end
|
20
21
|
#
|
@@ -52,6 +53,8 @@ module ReportBuilder
|
|
52
53
|
# report_types: ['json', 'html'],
|
53
54
|
# report_title: 'My Test Results',
|
54
55
|
# include_images: true,
|
56
|
+
# voice_commands: true,
|
57
|
+
# color: 'deep-purple',
|
55
58
|
# additional_info: {'browser' => 'Chrome', 'environment' => 'Stage 5'}
|
56
59
|
# }
|
57
60
|
#
|
@@ -67,13 +67,15 @@ module ReportBuilder
|
|
67
67
|
report_types: [:html],
|
68
68
|
report_title: 'Test Results',
|
69
69
|
include_images: true,
|
70
|
+
voice_commands: false,
|
70
71
|
additional_info: {},
|
71
72
|
report_path: 'test_report',
|
72
73
|
json_report_path: nil,
|
73
74
|
html_report_path: nil,
|
74
75
|
retry_report_path: nil,
|
75
76
|
additional_css: nil,
|
76
|
-
additional_js: nil
|
77
|
+
additional_js: nil,
|
78
|
+
color: 'brown'
|
77
79
|
)
|
78
80
|
end
|
79
81
|
|
data/report_builder.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'report_builder'
|
3
|
-
s.version = '1.
|
3
|
+
s.version = '1.5'
|
4
4
|
s.bindir = 'bin'
|
5
5
|
s.summary = 'ReportBuilder'
|
6
6
|
s.description = 'Ruby gem to merge Cucumber JSON reports and build mobile-friendly HTML Test Report, JSON report and retry file.'
|
data/template/error.erb
CHANGED
@@ -3,13 +3,13 @@
|
|
3
3
|
<i class="material-icons">bug_report</i><%= error %>
|
4
4
|
</div>
|
5
5
|
|
6
|
-
<div class="collapsible-body
|
6
|
+
<div class="collapsible-body <%= options[:color] %> lighten-4">
|
7
7
|
<ul class="collection failedScenarioList">
|
8
8
|
<% features.each_with_index do |feature, f| %>
|
9
9
|
<% feature['elements'].each_with_index do |scenario, s| %>
|
10
10
|
<% if scenario['error'] %>
|
11
11
|
<% if scenario['error'] == error %>
|
12
|
-
<li class="collection-item failedScenario
|
12
|
+
<li class="collection-item failedScenario <%= options[:color] %> lighten-5 red-text">
|
13
13
|
<i class="material-icons">highlight_off</i> <a class="modal-trigger red-text" href="#<%= "#{gid}f#{f}s#{s}" %>"><%= scenario['name'] %></a>
|
14
14
|
</li>
|
15
15
|
<% end %>
|
data/template/feature.erb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
<li class="feature <%= feature['status'] %>">
|
2
|
-
<div class="collapsible-header
|
2
|
+
<div class="collapsible-header <%= options[:color] %> lighten-1 waves-effect waves-light">
|
3
3
|
<i class="material-icons">featured_play_list</i>
|
4
4
|
<b><%= feature['keyword'] %></b> <%= feature['name'] %> (<%= duration(feature['duration']) %>)
|
5
5
|
</div>
|
6
6
|
|
7
|
-
<div class="collapsible-body
|
7
|
+
<div class="collapsible-body <%= options[:color] %> lighten-4">
|
8
8
|
<ul class="collection scenarioList">
|
9
9
|
<% feature['elements'].each_with_index do |scenario, s| %>
|
10
10
|
<li class="collection-item scenario <%= scenario['status'] %>">
|
data/template/footer.erb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
<footer class="page-footer
|
2
|
-
<div class="footer-copyright
|
1
|
+
<footer class="page-footer <%= options[:color] %> lighten-4">
|
2
|
+
<div class="footer-copyright <%= options[:color] %> lighten-1">
|
3
3
|
<div class="container">
|
4
4
|
Happy Reporting!
|
5
5
|
<a class="white-text text-lighten-4 right" href="http://reportbuilder.rajatthareja.com">Generated by Report Builder</a>
|
@@ -7,7 +7,33 @@
|
|
7
7
|
</div>
|
8
8
|
</footer>
|
9
9
|
|
10
|
-
<script type="text/javascript" src="https://cdn.rawgit.com/rajatthareja/ReportBuilder/v1.
|
10
|
+
<script type="text/javascript" src="https://cdn.rawgit.com/rajatthareja/ReportBuilder/v1.5/js/report.builder.min.js"></script>
|
11
|
+
|
12
|
+
<% if options[:voice_commands] %>
|
13
|
+
<script src="//cdnjs.cloudflare.com/ajax/libs/annyang/2.6.0/annyang.min.js"></script>
|
14
|
+
<script>
|
15
|
+
var commands = {
|
16
|
+
'show :tab': function(tab) {
|
17
|
+
if (tab === "overview") {
|
18
|
+
$("a[data-tooltip='Results Overview']").click();
|
19
|
+
} else if (tab === "features" || tab === "feature") {
|
20
|
+
$("a[data-tooltip='Scenarios by Features']").click();
|
21
|
+
} else if (tab === "summary") {
|
22
|
+
$("a[data-tooltip='Scenarios Summary Table']").click();
|
23
|
+
} else if (tab === "errors" || tab === "error" || tab === "failed" || tab === "bugs") {
|
24
|
+
$("a[data-tooltip='Failed Scenarios']").click();
|
25
|
+
}
|
26
|
+
},
|
27
|
+
'search *search': function (search) {
|
28
|
+
$("a[data-tooltip='Scenarios Summary Table']").click();
|
29
|
+
$("input[type='search']").val(search);
|
30
|
+
$('table#summaryTable').DataTable().search(search).draw();
|
31
|
+
}
|
32
|
+
};
|
33
|
+
annyang.addCommands(commands);
|
34
|
+
annyang.start();
|
35
|
+
</script>
|
36
|
+
<% end %>
|
11
37
|
|
12
38
|
<% if options[:additional_js] %>
|
13
39
|
<% if options[:additional_js] =~ /^http(|s):\/\/.*\.js$/ %>
|
data/template/group_errors.erb
CHANGED
data/template/group_features.erb
CHANGED
@@ -5,12 +5,12 @@
|
|
5
5
|
<% features = group['features'] %>
|
6
6
|
<li class="group">
|
7
7
|
|
8
|
-
<div class="collapsible-header
|
8
|
+
<div class="collapsible-header <%= options[:color] %> lighten-1 waves-effect waves-light">
|
9
9
|
<i class="material-icons">group_work</i>
|
10
10
|
<b><%= group['name'] %></b> (<%= duration(total_time(features)) %>)
|
11
11
|
</div>
|
12
12
|
|
13
|
-
<div class="collapsible-body
|
13
|
+
<div class="collapsible-body <%= options[:color] %> lighten-4">
|
14
14
|
<%= get('features').result(binding) %>
|
15
15
|
</div>
|
16
16
|
</li>
|
data/template/group_report.erb
CHANGED
@@ -12,21 +12,21 @@
|
|
12
12
|
<%= get('scenarios').result(binding) %>
|
13
13
|
<% end %>
|
14
14
|
|
15
|
-
<main class="
|
15
|
+
<main class="<%= options[:color] %> lighten-5">
|
16
16
|
<div class="row">
|
17
|
-
<div id="overview" class="col s12
|
17
|
+
<div id="overview" class="col s12 <%= options[:color] %> lighten-5">
|
18
18
|
<%= get('group_overview').result(binding) %>
|
19
19
|
</div>
|
20
20
|
|
21
|
-
<div id="features" class="col s12
|
21
|
+
<div id="features" class="col s12 <%= options[:color] %> lighten-5 white-text">
|
22
22
|
<%= get('group_features').result(binding) %>
|
23
23
|
</div>
|
24
24
|
|
25
|
-
<div id="summary" class="col s12
|
25
|
+
<div id="summary" class="col s12 <%= options[:color] %> lighten-5">
|
26
26
|
<%= get('group_summary').result(binding) %>
|
27
27
|
</div>
|
28
28
|
|
29
|
-
<div id="errors" class="col s12
|
29
|
+
<div id="errors" class="col s12 <%= options[:color] %> lighten-5">
|
30
30
|
<%= get('group_errors').result(binding) %>
|
31
31
|
</div>
|
32
32
|
</div>
|
data/template/group_summary.erb
CHANGED
data/template/head.erb
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
9
9
|
<link href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" rel="stylesheet">
|
10
10
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css" media="screen,projection"/>
|
11
|
-
<link href="https://cdn.rawgit.com/rajatthareja/ReportBuilder/v1.
|
11
|
+
<link href="https://cdn.rawgit.com/rajatthareja/ReportBuilder/v1.5/css/report.builder.min.css" rel="stylesheet">
|
12
12
|
|
13
13
|
<% if options[:additional_css] %>
|
14
14
|
<% if options[:additional_css] =~ /^http(|s):\/\/.*\.css$/ %>
|
data/template/header.erb
CHANGED
@@ -3,25 +3,25 @@
|
|
3
3
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.0/Chart.min.js"></script>
|
4
4
|
<script type="text/javascript" src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
|
5
5
|
|
6
|
-
<header class="
|
7
|
-
<div class="row
|
8
|
-
<div class="col
|
6
|
+
<header class="<%= options[:color] %> lighten-5">
|
7
|
+
<div class="row <%= options[:color] %> lighten-1">
|
8
|
+
<div class="col m6 hide-on-small-only">
|
9
9
|
<h5 class="truncate white-text tooltipped" data-tooltip="<%= options[:report_title] %>"><%= options[:report_title] %></h5>
|
10
10
|
</div>
|
11
11
|
|
12
|
-
<div class="col
|
13
|
-
<ul class="tabs
|
12
|
+
<div class="col m6 s12 <%= options[:color] %> lighten-1">
|
13
|
+
<ul class="tabs <%= options[:color] %> lighten-1 row" style="overflow-x: hidden">
|
14
14
|
<li class="tab col s3">
|
15
|
-
<a class="
|
15
|
+
<a class="<%= options[:color] %> lighten-3 active blue-text waves-effect waves-light tooltipped" data-tooltip="Results Overview" href="#overview"><i class="material-icons">assessment</i> Overview</a>
|
16
16
|
</li>
|
17
17
|
<li class="tab col s3">
|
18
|
-
<a class="
|
18
|
+
<a class="<%= options[:color] %> lighten-3 white-text waves-effect waves-light tooltipped" data-tooltip="Scenarios by Features" href="#features"><i class="material-icons">view_headline</i> Features</a>
|
19
19
|
</li>
|
20
20
|
<li class="tab col s3">
|
21
|
-
<a class="
|
21
|
+
<a class="<%= options[:color] %> lighten-3 white-text waves-effect waves-light tooltipped" data-tooltip="Scenarios Summary Table" href="#summary"><i class="material-icons">view_comfy</i> Summary</a>
|
22
22
|
</li>
|
23
23
|
<li class="tab col s3">
|
24
|
-
<a class="
|
24
|
+
<a class="<%= options[:color] %> lighten-3 white-text waves-effect waves-light tooltipped" data-tooltip="Failed Scenarios" href="#errors"><i class="material-icons">bug_report</i> Errors</a>
|
25
25
|
</li>
|
26
26
|
</ul>
|
27
27
|
</div>
|
data/template/hook.erb
CHANGED
@@ -21,8 +21,11 @@
|
|
21
21
|
<% if embedding['data'].include?('|||') %>
|
22
22
|
<% title, link = embedding['data'].split('|||') %><a href="<%= link %>"><%= title %></a>
|
23
23
|
<% else %>
|
24
|
-
<%= embedding['data'] %>
|
24
|
+
<a href="<%= embedding['data'] %>"><%= embedding['data'] %></a>
|
25
25
|
<% end %>
|
26
|
+
<% elsif embedding['mime_type'] =~ /^text\/html/ %>
|
27
|
+
<%= embedding['data'] %>
|
26
28
|
<% end %>
|
29
|
+
<br/>
|
27
30
|
<% end %>
|
28
31
|
<% end %>
|
data/template/report.erb
CHANGED
@@ -11,22 +11,22 @@
|
|
11
11
|
|
12
12
|
<%= get('scenarios').result(binding) %>
|
13
13
|
|
14
|
-
<main class="
|
14
|
+
<main class="<%= options[:color] %> lighten-5">
|
15
15
|
<div class="row">
|
16
16
|
|
17
|
-
<div id="overview" class="col s12
|
17
|
+
<div id="overview" class="col s12 <%= options[:color] %> lighten-5">
|
18
18
|
<%= get('overview').result(binding) %>
|
19
19
|
</div>
|
20
20
|
|
21
|
-
<div id="features" class="col s12
|
21
|
+
<div id="features" class="col s12 <%= options[:color] %> lighten-5 white-text">
|
22
22
|
<%= get('features').result(binding) %>
|
23
23
|
</div>
|
24
24
|
|
25
|
-
<div id="summary" class="col s12
|
25
|
+
<div id="summary" class="col s12 <%= options[:color] %> lighten-5">
|
26
26
|
<%= get('summary').result(binding) %>
|
27
27
|
</div>
|
28
28
|
|
29
|
-
<div id="errors" class="col s12
|
29
|
+
<div id="errors" class="col s12 <%= options[:color] %> lighten-5">
|
30
30
|
<%= get('errors').result(binding) %>
|
31
31
|
</div>
|
32
32
|
</div>
|
data/template/summary.erb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: report_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.5'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajat Thareja
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|