report_builder_fix 0.1 → 0.2
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/bin/report_builder +84 -0
- data/lib/.DS_Store +0 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9ea84f88068bfa904e1b9aa62e800b8b37206868f4cb853f52056dad0ea754d
|
4
|
+
data.tar.gz: 3e2d9aea4dd3974db954b9de71c883588d314e3f62991ca372961cd758c494e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a997659999521cb95b643259e67b61f821c3d766ffcf76cfca7fcec97d09efbe0ea96cb9a682ea7e0bbc316b52e4a69dd922e53a17b298b49672faf5ffc8c780
|
7
|
+
data.tar.gz: c5931db52b66962b7df8ac4e00097126789df34f7274d515c27e95d50b493288dfd5ba53e7af26f1d7310a5521e6b761b3ee99f42df9a7e76f9f362f1c7a942b
|
data/bin/report_builder
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'optparse'
|
4
|
+
require 'report_builder'
|
5
|
+
require 'report_builder_fix'
|
6
|
+
|
7
|
+
options = { }
|
8
|
+
|
9
|
+
opt_parser = OptionParser.new do |opts|
|
10
|
+
opts.banner = "Usage: \n report_builder [options]"
|
11
|
+
opts.separator 'Configuration options:'
|
12
|
+
|
13
|
+
opts.on('-s', '--source x,y,z', Array, 'List of json path or files') do |list|
|
14
|
+
options[:input_path] = list
|
15
|
+
end
|
16
|
+
|
17
|
+
opts.on('-o', '--out [PATH]NAME', String, 'Report path with name without extension') do |report_path|
|
18
|
+
options[:report_path] = report_path
|
19
|
+
end
|
20
|
+
|
21
|
+
opts.on('--json_out [PATH]NAME', String, 'Report path for json report with name without extension') do |report_path|
|
22
|
+
options[:json_report_path] = report_path
|
23
|
+
end
|
24
|
+
|
25
|
+
opts.on('--html_out [PATH]NAME', String, 'Report path for html report with name without extension') do |report_path|
|
26
|
+
options[:html_report_path] = report_path
|
27
|
+
end
|
28
|
+
|
29
|
+
opts.on('--retry_out [PATH]NAME', String, 'Report path for retry report with name without extension') do |report_path|
|
30
|
+
options[:retry_report_path] = report_path
|
31
|
+
end
|
32
|
+
|
33
|
+
opts.on('-f', '--format x,y,z', Array, 'List of report format - html,json,retry') do |list|
|
34
|
+
options[:report_types] = list
|
35
|
+
end
|
36
|
+
|
37
|
+
opts.on('--[no-]images', 'Reduce HTML report size by excluding embedded images') do |include_images|
|
38
|
+
options[:include_images] = include_images
|
39
|
+
end
|
40
|
+
|
41
|
+
opts.on('--voice_commands', 'Enable voice commands for easy navigation and search') do |voice_commands|
|
42
|
+
options[:voice_commands] = voice_commands
|
43
|
+
end
|
44
|
+
|
45
|
+
opts.on('-c', '--color COLOR', String, 'Report color') do |color|
|
46
|
+
options[:color] = color
|
47
|
+
end
|
48
|
+
|
49
|
+
opts.on('-T', '--title TITLE', String, 'Report title') do |report_title|
|
50
|
+
options[:report_title] = report_title
|
51
|
+
end
|
52
|
+
|
53
|
+
opts.on('-I', '--info a:x,b:y,c:z', Array, 'List of additional info') do |list|
|
54
|
+
options[:additional_info] = { }
|
55
|
+
list.each do |i|
|
56
|
+
key, value = i.split(':', 2)
|
57
|
+
options[:additional_info][key] = value
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
opts.on('--css CSS', String, 'Additional CSS string or CSS file path or CSS file url for customizing html report') do |additional_css|
|
62
|
+
options[:additional_css] = additional_css
|
63
|
+
end
|
64
|
+
|
65
|
+
opts.on('--js JS', String, 'Additional JS string or JS file path or JS file url for customizing html report') do |additional_js|
|
66
|
+
options[:additional_js] = additional_js
|
67
|
+
end
|
68
|
+
|
69
|
+
opts.separator 'Common options:'
|
70
|
+
|
71
|
+
opts.on_tail('-h', '--help', 'Show help') do
|
72
|
+
puts opts
|
73
|
+
exit
|
74
|
+
end
|
75
|
+
|
76
|
+
opts.on_tail('-v', '--version', 'Show version') do
|
77
|
+
puts 'ReportBuilder v' + Gem.loaded_specs['report_builder'].version.to_s rescue puts "Something want wrong. \nUse 'gem list report_builder'"
|
78
|
+
exit
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
opt_parser.parse!(ARGV)
|
83
|
+
|
84
|
+
ReportBuilder.build_report options
|
data/lib/.DS_Store
ADDED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: report_builder_fix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fikri Ramadhan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -42,10 +42,13 @@ description: Fix Report Builder.
|
|
42
42
|
email: fire_a2003@yahoo.com
|
43
43
|
executables:
|
44
44
|
- report_builder_fix
|
45
|
+
- report_builder
|
45
46
|
extensions: []
|
46
47
|
extra_rdoc_files: []
|
47
48
|
files:
|
49
|
+
- bin/report_builder
|
48
50
|
- bin/report_builder_fix
|
51
|
+
- lib/.DS_Store
|
49
52
|
- lib/report_builder_fix.rb
|
50
53
|
- lib/report_builder_fix/builder.rb
|
51
54
|
homepage: https://github.com/boseagr/ReportBuilder
|