thinreports 0.10.2 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/CONTRIBUTING.md +2 -2
- data/.github/dependabot.yml +11 -0
- data/.github/workflows/test.yml +50 -0
- data/.gitignore +1 -0
- data/CHANGELOG.md +43 -0
- data/Gemfile +2 -1
- data/{MIT-LICENSE → LICENSE.txt} +2 -0
- data/README.md +70 -56
- data/Rakefile +12 -25
- data/gemfiles/prawn-2.2.gemfile +5 -0
- data/gemfiles/prawn-2.3.gemfile +5 -0
- data/gemfiles/prawn-2.4.gemfile +5 -0
- data/lib/thinreports/core/shape/basic/format.rb +5 -0
- data/lib/thinreports/core/shape/image_block.rb +1 -1
- data/lib/thinreports/core/shape/list.rb +1 -1
- data/lib/thinreports/core/shape/page_number.rb +1 -1
- data/lib/thinreports/core/shape/stack_view/format.rb +27 -0
- data/lib/thinreports/core/shape/stack_view/interface.rb +17 -0
- data/lib/thinreports/core/shape/stack_view/internal.rb +22 -0
- data/lib/thinreports/core/shape/stack_view/row_format.rb +39 -0
- data/lib/thinreports/core/shape/stack_view.rb +17 -0
- data/lib/thinreports/core/shape/style/basic.rb +4 -1
- data/lib/thinreports/core/shape/text.rb +1 -1
- data/lib/thinreports/core/shape/text_block/formatter/number.rb +6 -1
- data/lib/thinreports/core/shape/text_block/internal.rb +0 -2
- data/lib/thinreports/core/shape/text_block.rb +1 -1
- data/lib/thinreports/core/shape.rb +2 -0
- data/lib/thinreports/generate.rb +11 -0
- data/lib/thinreports/generator/pdf/document/draw_shape.rb +31 -10
- data/lib/thinreports/generator/pdf/document/draw_template_items.rb +1 -1
- data/lib/thinreports/generator/pdf/document/graphics/image.rb +19 -1
- data/lib/thinreports/generator/pdf/document/graphics/text.rb +10 -5
- data/lib/thinreports/generator/pdf/document/page.rb +12 -0
- data/lib/thinreports/generator/pdf/prawn_ext/width_of.rb +7 -7
- data/lib/thinreports/layout/base.rb +1 -1
- data/lib/thinreports/layout/legacy_schema.rb +1 -0
- data/lib/thinreports/layout/version.rb +1 -1
- data/lib/thinreports/report/internal.rb +2 -0
- data/lib/thinreports/report.rb +2 -2
- data/lib/thinreports/section_report/build.rb +32 -0
- data/lib/thinreports/section_report/builder/item_builder.rb +49 -0
- data/lib/thinreports/section_report/builder/report_builder.rb +82 -0
- data/lib/thinreports/section_report/builder/report_data.rb +13 -0
- data/lib/thinreports/section_report/builder/stack_view_builder.rb +53 -0
- data/lib/thinreports/section_report/builder/stack_view_data.rb +11 -0
- data/lib/thinreports/section_report/generate.rb +26 -0
- data/lib/thinreports/section_report/pdf/render.rb +23 -0
- data/lib/thinreports/section_report/pdf/renderer/draw_item.rb +68 -0
- data/lib/thinreports/section_report/pdf/renderer/group_renderer.rb +57 -0
- data/lib/thinreports/section_report/pdf/renderer/section_height.rb +100 -0
- data/lib/thinreports/section_report/pdf/renderer/section_renderer.rb +39 -0
- data/lib/thinreports/section_report/pdf/renderer/stack_view_renderer.rb +55 -0
- data/lib/thinreports/section_report/pdf/renderer/stack_view_row_renderer.rb +38 -0
- data/lib/thinreports/section_report/schema/loader.rb +28 -0
- data/lib/thinreports/section_report/schema/parser.rb +52 -0
- data/lib/thinreports/section_report/schema/report.rb +30 -0
- data/lib/thinreports/section_report/schema/section.rb +47 -0
- data/lib/thinreports/version.rb +1 -1
- data/lib/thinreports.rb +5 -0
- data/thinreports.gemspec +11 -10
- metadata +48 -150
- data/.travis.yml +0 -16
- data/examples/character_spacing/character_spacing.rb +0 -8
- data/examples/character_spacing/character_spacing.tlf +0 -293
- data/examples/dynamic_image/dynamic_image.rb +0 -31
- data/examples/dynamic_image/dynamic_image.tlf +0 -661
- data/examples/dynamic_image/img200x100.png +0 -0
- data/examples/dynamic_image/img50x50.png +0 -0
- data/examples/dynamic_style/dynamic_style.rb +0 -150
- data/examples/dynamic_style/dynamic_style.tlf +0 -1835
- data/examples/dynamic_style/dynamic_style_in_list.tlf +0 -344
- data/examples/dynamic_style/image.png +0 -0
- data/examples/eudc/eudc.rb +0 -20
- data/examples/eudc/eudc.tlf +0 -180
- data/examples/eudc/eudc.ttf +0 -0
- data/examples/helper.rb +0 -50
- data/examples/hidden_shapes/hidden_shapes.rb +0 -9
- data/examples/hidden_shapes/hidden_shapes.tlf +0 -449
- data/examples/list_events/list_events.rb +0 -32
- data/examples/list_events/list_events.tlf +0 -361
- data/examples/list_manual_generation/list_manual_generation.rb +0 -22
- data/examples/list_manual_generation/list_manual_generation.tlf +0 -132
- data/examples/list_page_number/list_page_number.rb +0 -17
- data/examples/list_page_number/list_page_number.tlf +0 -254
- data/examples/page_number/page_number.rb +0 -33
- data/examples/page_number/page_number.tlf +0 -215
- data/examples/palleted_png/palleted_png.png +0 -0
- data/examples/palleted_png/palleted_png.rb +0 -9
- data/examples/palleted_png/palleted_png.tlf +0 -47
- data/examples/password_setting/password_setting.rb +0 -10
- data/examples/password_setting/password_setting.tlf +0 -45
- data/examples/report_callbacks/report_callbacks.rb +0 -14
- data/examples/report_callbacks/report_callbacks.tlf +0 -147
- data/examples/single_line_tblock/single_line_tblock.rb +0 -13
- data/examples/single_line_tblock/single_line_tblock.tlf +0 -170
- data/examples/tblock_overflow/tblock_overflow.rb +0 -20
- data/examples/tblock_overflow/tblock_overflow.tlf +0 -538
- data/examples/tblock_styles/font_size.tlf +0 -383
- data/examples/tblock_styles/tblock_styles.rb +0 -43
- data/examples/tblock_styles/tblock_styles.tlf +0 -889
- data/examples/text_align/text_align.rb +0 -8
- data/examples/text_align/text_align.tlf +0 -241
- data/examples/typeB_page_size/B4_ISO.tlf +0 -45
- data/examples/typeB_page_size/B4_JIS.tlf +0 -45
- data/examples/typeB_page_size/typeB_page_size.rb +0 -17
- data/examples/word_wrap/word_wrap.rb +0 -26
- data/examples/word_wrap/word_wrap.tlf +0 -297
- data/test/data/font.ttf +0 -0
- data/test/data/image_normal.jpg +0 -0
- data/test/data/image_normal.png +0 -0
- data/test/data/image_normal_jpg_noext +0 -0
- data/test/data/image_normal_png_noext +0 -0
- data/test/data/image_pallete_based.png +0 -0
- data/test/data/legacy_layout/all-items.tlf +0 -1
- data/test/schema_helper.rb +0 -122
- data/test/test_helper.rb +0 -48
- data/test/tmp/.gitkeep +0 -0
- data/test/unit/core/format/test_base.rb +0 -152
- data/test/unit/core/shape/base/test_internal.rb +0 -87
- data/test/unit/core/shape/basic/test_block_format.rb +0 -23
- data/test/unit/core/shape/basic/test_block_interface.rb +0 -29
- data/test/unit/core/shape/basic/test_block_internal.rb +0 -55
- data/test/unit/core/shape/basic/test_format.rb +0 -37
- data/test/unit/core/shape/basic/test_interface.rb +0 -108
- data/test/unit/core/shape/basic/test_internal.rb +0 -55
- data/test/unit/core/shape/image_block/test_interface.rb +0 -24
- data/test/unit/core/shape/image_block/test_internal.rb +0 -31
- data/test/unit/core/shape/list/test_format.rb +0 -111
- data/test/unit/core/shape/list/test_manager.rb +0 -67
- data/test/unit/core/shape/list/test_page.rb +0 -156
- data/test/unit/core/shape/list/test_page_state.rb +0 -31
- data/test/unit/core/shape/list/test_section_format.rb +0 -36
- data/test/unit/core/shape/list/test_section_interface.rb +0 -75
- data/test/unit/core/shape/list/test_section_internal.rb +0 -50
- data/test/unit/core/shape/manager/test_format.rb +0 -38
- data/test/unit/core/shape/manager/test_internal.rb +0 -132
- data/test/unit/core/shape/manager/test_target.rb +0 -140
- data/test/unit/core/shape/page_number/test_format.rb +0 -55
- data/test/unit/core/shape/page_number/test_interface.rb +0 -33
- data/test/unit/core/shape/page_number/test_internal.rb +0 -81
- data/test/unit/core/shape/styles/test_base.rb +0 -191
- data/test/unit/core/shape/styles/test_basic.rb +0 -24
- data/test/unit/core/shape/styles/test_graphic.rb +0 -50
- data/test/unit/core/shape/styles/test_text.rb +0 -97
- data/test/unit/core/shape/text/test_format.rb +0 -44
- data/test/unit/core/shape/text/test_internal.rb +0 -20
- data/test/unit/core/shape/text_block/formatter/test_basic.rb +0 -24
- data/test/unit/core/shape/text_block/formatter/test_datetime.rb +0 -49
- data/test/unit/core/shape/text_block/formatter/test_number.rb +0 -76
- data/test/unit/core/shape/text_block/formatter/test_padding.rb +0 -77
- data/test/unit/core/shape/text_block/test_format.rb +0 -169
- data/test/unit/core/shape/text_block/test_formatter.rb +0 -28
- data/test/unit/core/shape/text_block/test_interface.rb +0 -63
- data/test/unit/core/shape/text_block/test_internal.rb +0 -128
- data/test/unit/core/test_shape.rb +0 -52
- data/test/unit/core/test_utils.rb +0 -68
- data/test/unit/generator/pdf/document/graphics/test_attributes.rb +0 -135
- data/test/unit/generator/pdf/document/graphics/test_basic.rb +0 -46
- data/test/unit/generator/pdf/document/graphics/test_image.rb +0 -46
- data/test/unit/generator/pdf/document/graphics/test_text.rb +0 -171
- data/test/unit/generator/pdf/document/test_font.rb +0 -110
- data/test/unit/generator/pdf/document/test_graphics.rb +0 -42
- data/test/unit/generator/pdf/document/test_page.rb +0 -122
- data/test/unit/generator/pdf/document/test_parse_color.rb +0 -30
- data/test/unit/generator/pdf/prawn_ext/test_calc_image_dimensions.rb +0 -41
- data/test/unit/generator/pdf/prawn_ext/test_width_of.rb +0 -22
- data/test/unit/generator/pdf/test_document.rb +0 -22
- data/test/unit/generator/test_pdf.rb +0 -26
- data/test/unit/layout/test_base.rb +0 -41
- data/test/unit/layout/test_format.rb +0 -100
- data/test/unit/layout/test_legacy_schema.rb +0 -574
- data/test/unit/layout/test_version.rb +0 -26
- data/test/unit/report/test_base.rb +0 -248
- data/test/unit/report/test_internal.rb +0 -206
- data/test/unit/test_config.rb +0 -36
- data/test/unit/test_layout.rb +0 -12
- data/test/unit/test_report.rb +0 -18
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thinreports
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matsukei Co.,Ltd.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: prawn
|
@@ -16,98 +16,84 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.2
|
19
|
+
version: '2.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.2
|
26
|
+
version: '2.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: rexml
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
34
|
-
type: :
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 5.
|
47
|
+
version: 5.14.1
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 5.
|
54
|
+
version: 5.14.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: mocha
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 1.11.2
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 1.11.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: pdf-inspector
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 1.3.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 1.3.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 13.0.1
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: yard
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
96
|
+
version: 13.0.1
|
111
97
|
description: Thinreports is an open source report generation tool for Ruby.
|
112
98
|
email: thinreports@gmail.com
|
113
99
|
executables: []
|
@@ -115,63 +101,22 @@ extensions: []
|
|
115
101
|
extra_rdoc_files: []
|
116
102
|
files:
|
117
103
|
- ".github/CONTRIBUTING.md"
|
104
|
+
- ".github/dependabot.yml"
|
105
|
+
- ".github/workflows/test.yml"
|
118
106
|
- ".gitignore"
|
119
|
-
- ".travis.yml"
|
120
107
|
- CHANGELOG.md
|
121
108
|
- Gemfile
|
122
|
-
-
|
109
|
+
- LICENSE.txt
|
123
110
|
- README.md
|
124
111
|
- Rakefile
|
125
|
-
- examples/character_spacing/character_spacing.rb
|
126
|
-
- examples/character_spacing/character_spacing.tlf
|
127
|
-
- examples/dynamic_image/dynamic_image.rb
|
128
|
-
- examples/dynamic_image/dynamic_image.tlf
|
129
|
-
- examples/dynamic_image/img200x100.png
|
130
|
-
- examples/dynamic_image/img50x50.png
|
131
|
-
- examples/dynamic_style/dynamic_style.rb
|
132
|
-
- examples/dynamic_style/dynamic_style.tlf
|
133
|
-
- examples/dynamic_style/dynamic_style_in_list.tlf
|
134
|
-
- examples/dynamic_style/image.png
|
135
|
-
- examples/eudc/eudc.rb
|
136
|
-
- examples/eudc/eudc.tlf
|
137
|
-
- examples/eudc/eudc.ttf
|
138
|
-
- examples/helper.rb
|
139
|
-
- examples/hidden_shapes/hidden_shapes.rb
|
140
|
-
- examples/hidden_shapes/hidden_shapes.tlf
|
141
|
-
- examples/list_events/list_events.rb
|
142
|
-
- examples/list_events/list_events.tlf
|
143
|
-
- examples/list_manual_generation/list_manual_generation.rb
|
144
|
-
- examples/list_manual_generation/list_manual_generation.tlf
|
145
|
-
- examples/list_page_number/list_page_number.rb
|
146
|
-
- examples/list_page_number/list_page_number.tlf
|
147
|
-
- examples/page_number/page_number.rb
|
148
|
-
- examples/page_number/page_number.tlf
|
149
|
-
- examples/palleted_png/palleted_png.png
|
150
|
-
- examples/palleted_png/palleted_png.rb
|
151
|
-
- examples/palleted_png/palleted_png.tlf
|
152
|
-
- examples/password_setting/password_setting.rb
|
153
|
-
- examples/password_setting/password_setting.tlf
|
154
|
-
- examples/report_callbacks/report_callbacks.rb
|
155
|
-
- examples/report_callbacks/report_callbacks.tlf
|
156
|
-
- examples/single_line_tblock/single_line_tblock.rb
|
157
|
-
- examples/single_line_tblock/single_line_tblock.tlf
|
158
|
-
- examples/tblock_overflow/tblock_overflow.rb
|
159
|
-
- examples/tblock_overflow/tblock_overflow.tlf
|
160
|
-
- examples/tblock_styles/font_size.tlf
|
161
|
-
- examples/tblock_styles/tblock_styles.rb
|
162
|
-
- examples/tblock_styles/tblock_styles.tlf
|
163
|
-
- examples/text_align/text_align.rb
|
164
|
-
- examples/text_align/text_align.tlf
|
165
|
-
- examples/typeB_page_size/B4_ISO.tlf
|
166
|
-
- examples/typeB_page_size/B4_JIS.tlf
|
167
|
-
- examples/typeB_page_size/typeB_page_size.rb
|
168
|
-
- examples/word_wrap/word_wrap.rb
|
169
|
-
- examples/word_wrap/word_wrap.tlf
|
170
112
|
- fonts/IPA_Font_License_Agreement_v1.0.txt
|
171
113
|
- fonts/ipag.ttf
|
172
114
|
- fonts/ipagp.ttf
|
173
115
|
- fonts/ipam.ttf
|
174
116
|
- fonts/ipamp.ttf
|
117
|
+
- gemfiles/prawn-2.2.gemfile
|
118
|
+
- gemfiles/prawn-2.3.gemfile
|
119
|
+
- gemfiles/prawn-2.4.gemfile
|
175
120
|
- lib/thinreports.rb
|
176
121
|
- lib/thinreports/config.rb
|
177
122
|
- lib/thinreports/core/errors.rb
|
@@ -207,6 +152,11 @@ files:
|
|
207
152
|
- lib/thinreports/core/shape/page_number/format.rb
|
208
153
|
- lib/thinreports/core/shape/page_number/interface.rb
|
209
154
|
- lib/thinreports/core/shape/page_number/internal.rb
|
155
|
+
- lib/thinreports/core/shape/stack_view.rb
|
156
|
+
- lib/thinreports/core/shape/stack_view/format.rb
|
157
|
+
- lib/thinreports/core/shape/stack_view/interface.rb
|
158
|
+
- lib/thinreports/core/shape/stack_view/internal.rb
|
159
|
+
- lib/thinreports/core/shape/stack_view/row_format.rb
|
210
160
|
- lib/thinreports/core/shape/style.rb
|
211
161
|
- lib/thinreports/core/shape/style/base.rb
|
212
162
|
- lib/thinreports/core/shape/style/basic.rb
|
@@ -226,6 +176,7 @@ files:
|
|
226
176
|
- lib/thinreports/core/shape/text_block/interface.rb
|
227
177
|
- lib/thinreports/core/shape/text_block/internal.rb
|
228
178
|
- lib/thinreports/core/utils.rb
|
179
|
+
- lib/thinreports/generate.rb
|
229
180
|
- lib/thinreports/generator/pdf.rb
|
230
181
|
- lib/thinreports/generator/pdf/document.rb
|
231
182
|
- lib/thinreports/generator/pdf/document/draw_shape.rb
|
@@ -254,77 +205,25 @@ files:
|
|
254
205
|
- lib/thinreports/report/base.rb
|
255
206
|
- lib/thinreports/report/internal.rb
|
256
207
|
- lib/thinreports/report/page.rb
|
208
|
+
- lib/thinreports/section_report/build.rb
|
209
|
+
- lib/thinreports/section_report/builder/item_builder.rb
|
210
|
+
- lib/thinreports/section_report/builder/report_builder.rb
|
211
|
+
- lib/thinreports/section_report/builder/report_data.rb
|
212
|
+
- lib/thinreports/section_report/builder/stack_view_builder.rb
|
213
|
+
- lib/thinreports/section_report/builder/stack_view_data.rb
|
214
|
+
- lib/thinreports/section_report/generate.rb
|
215
|
+
- lib/thinreports/section_report/pdf/render.rb
|
216
|
+
- lib/thinreports/section_report/pdf/renderer/draw_item.rb
|
217
|
+
- lib/thinreports/section_report/pdf/renderer/group_renderer.rb
|
218
|
+
- lib/thinreports/section_report/pdf/renderer/section_height.rb
|
219
|
+
- lib/thinreports/section_report/pdf/renderer/section_renderer.rb
|
220
|
+
- lib/thinreports/section_report/pdf/renderer/stack_view_renderer.rb
|
221
|
+
- lib/thinreports/section_report/pdf/renderer/stack_view_row_renderer.rb
|
222
|
+
- lib/thinreports/section_report/schema/loader.rb
|
223
|
+
- lib/thinreports/section_report/schema/parser.rb
|
224
|
+
- lib/thinreports/section_report/schema/report.rb
|
225
|
+
- lib/thinreports/section_report/schema/section.rb
|
257
226
|
- lib/thinreports/version.rb
|
258
|
-
- test/data/font.ttf
|
259
|
-
- test/data/image_normal.jpg
|
260
|
-
- test/data/image_normal.png
|
261
|
-
- test/data/image_normal_jpg_noext
|
262
|
-
- test/data/image_normal_png_noext
|
263
|
-
- test/data/image_pallete_based.png
|
264
|
-
- test/data/legacy_layout/all-items.tlf
|
265
|
-
- test/schema_helper.rb
|
266
|
-
- test/test_helper.rb
|
267
|
-
- test/tmp/.gitkeep
|
268
|
-
- test/unit/core/format/test_base.rb
|
269
|
-
- test/unit/core/shape/base/test_internal.rb
|
270
|
-
- test/unit/core/shape/basic/test_block_format.rb
|
271
|
-
- test/unit/core/shape/basic/test_block_interface.rb
|
272
|
-
- test/unit/core/shape/basic/test_block_internal.rb
|
273
|
-
- test/unit/core/shape/basic/test_format.rb
|
274
|
-
- test/unit/core/shape/basic/test_interface.rb
|
275
|
-
- test/unit/core/shape/basic/test_internal.rb
|
276
|
-
- test/unit/core/shape/image_block/test_interface.rb
|
277
|
-
- test/unit/core/shape/image_block/test_internal.rb
|
278
|
-
- test/unit/core/shape/list/test_format.rb
|
279
|
-
- test/unit/core/shape/list/test_manager.rb
|
280
|
-
- test/unit/core/shape/list/test_page.rb
|
281
|
-
- test/unit/core/shape/list/test_page_state.rb
|
282
|
-
- test/unit/core/shape/list/test_section_format.rb
|
283
|
-
- test/unit/core/shape/list/test_section_interface.rb
|
284
|
-
- test/unit/core/shape/list/test_section_internal.rb
|
285
|
-
- test/unit/core/shape/manager/test_format.rb
|
286
|
-
- test/unit/core/shape/manager/test_internal.rb
|
287
|
-
- test/unit/core/shape/manager/test_target.rb
|
288
|
-
- test/unit/core/shape/page_number/test_format.rb
|
289
|
-
- test/unit/core/shape/page_number/test_interface.rb
|
290
|
-
- test/unit/core/shape/page_number/test_internal.rb
|
291
|
-
- test/unit/core/shape/styles/test_base.rb
|
292
|
-
- test/unit/core/shape/styles/test_basic.rb
|
293
|
-
- test/unit/core/shape/styles/test_graphic.rb
|
294
|
-
- test/unit/core/shape/styles/test_text.rb
|
295
|
-
- test/unit/core/shape/text/test_format.rb
|
296
|
-
- test/unit/core/shape/text/test_internal.rb
|
297
|
-
- test/unit/core/shape/text_block/formatter/test_basic.rb
|
298
|
-
- test/unit/core/shape/text_block/formatter/test_datetime.rb
|
299
|
-
- test/unit/core/shape/text_block/formatter/test_number.rb
|
300
|
-
- test/unit/core/shape/text_block/formatter/test_padding.rb
|
301
|
-
- test/unit/core/shape/text_block/test_format.rb
|
302
|
-
- test/unit/core/shape/text_block/test_formatter.rb
|
303
|
-
- test/unit/core/shape/text_block/test_interface.rb
|
304
|
-
- test/unit/core/shape/text_block/test_internal.rb
|
305
|
-
- test/unit/core/test_shape.rb
|
306
|
-
- test/unit/core/test_utils.rb
|
307
|
-
- test/unit/generator/pdf/document/graphics/test_attributes.rb
|
308
|
-
- test/unit/generator/pdf/document/graphics/test_basic.rb
|
309
|
-
- test/unit/generator/pdf/document/graphics/test_image.rb
|
310
|
-
- test/unit/generator/pdf/document/graphics/test_text.rb
|
311
|
-
- test/unit/generator/pdf/document/test_font.rb
|
312
|
-
- test/unit/generator/pdf/document/test_graphics.rb
|
313
|
-
- test/unit/generator/pdf/document/test_page.rb
|
314
|
-
- test/unit/generator/pdf/document/test_parse_color.rb
|
315
|
-
- test/unit/generator/pdf/prawn_ext/test_calc_image_dimensions.rb
|
316
|
-
- test/unit/generator/pdf/prawn_ext/test_width_of.rb
|
317
|
-
- test/unit/generator/pdf/test_document.rb
|
318
|
-
- test/unit/generator/test_pdf.rb
|
319
|
-
- test/unit/layout/test_base.rb
|
320
|
-
- test/unit/layout/test_format.rb
|
321
|
-
- test/unit/layout/test_legacy_schema.rb
|
322
|
-
- test/unit/layout/test_version.rb
|
323
|
-
- test/unit/report/test_base.rb
|
324
|
-
- test/unit/report/test_internal.rb
|
325
|
-
- test/unit/test_config.rb
|
326
|
-
- test/unit/test_layout.rb
|
327
|
-
- test/unit/test_report.rb
|
328
227
|
- thinreports.gemspec
|
329
228
|
homepage: http://www.thinreports.org
|
330
229
|
licenses:
|
@@ -338,15 +237,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
338
237
|
requirements:
|
339
238
|
- - ">="
|
340
239
|
- !ruby/object:Gem::Version
|
341
|
-
version: 2.
|
240
|
+
version: 2.5.0
|
342
241
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
343
242
|
requirements:
|
344
243
|
- - ">="
|
345
244
|
- !ruby/object:Gem::Version
|
346
245
|
version: '0'
|
347
246
|
requirements: []
|
348
|
-
|
349
|
-
rubygems_version: 2.7.6
|
247
|
+
rubygems_version: 3.1.6
|
350
248
|
signing_key:
|
351
249
|
specification_version: 4
|
352
250
|
summary: An open source report generation tool for Ruby.
|
data/.travis.yml
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
sudo: false
|
3
|
-
rvm:
|
4
|
-
- 2.1.10
|
5
|
-
- 2.2.9
|
6
|
-
- 2.3.6
|
7
|
-
- 2.4.3
|
8
|
-
- 2.5.0
|
9
|
-
- jruby-9.1.15.0
|
10
|
-
|
11
|
-
before_install:
|
12
|
-
- travis_retry gem update --system
|
13
|
-
|
14
|
-
notifications:
|
15
|
-
slack:
|
16
|
-
secure: XubYKuE3+6VJNDvjgVE2P0cp3Km/We1RlhkeHBGI+r0wYqAg6tab33IYFo+3BgE0xwl1RX3SwX1pbPt3LVDi8zLA5mkmmmDiNIqqYa1vICDgRgu8OTCRcCCTaWB5DhVY11iZaYFyQEoQ+aUHp9QoYeH7Qmp+M2//+DYG9wka6kA=
|
@@ -1,293 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": "0.9.0",
|
3
|
-
"items": [
|
4
|
-
{
|
5
|
-
"id": "",
|
6
|
-
"type": "text",
|
7
|
-
"display": true,
|
8
|
-
"description": "",
|
9
|
-
"x": 20,
|
10
|
-
"y": 21,
|
11
|
-
"width": 555.2,
|
12
|
-
"height": 40,
|
13
|
-
"style": {
|
14
|
-
"font-family": [
|
15
|
-
"Times New Roman"
|
16
|
-
],
|
17
|
-
"font-size": 36,
|
18
|
-
"color": "#000000",
|
19
|
-
"text-align": "left",
|
20
|
-
"vertical-align": "top",
|
21
|
-
"line-height": "",
|
22
|
-
"line-height-ratio": "",
|
23
|
-
"letter-spacing": 10,
|
24
|
-
"font-style": []
|
25
|
-
},
|
26
|
-
"texts": [
|
27
|
-
"Times Roman Left"
|
28
|
-
]
|
29
|
-
},
|
30
|
-
{
|
31
|
-
"id": "",
|
32
|
-
"type": "line",
|
33
|
-
"display": true,
|
34
|
-
"description": "",
|
35
|
-
"style": {
|
36
|
-
"border-color": "#ff0000",
|
37
|
-
"border-width": 1,
|
38
|
-
"border-style": "solid"
|
39
|
-
},
|
40
|
-
"x1": 436,
|
41
|
-
"y1": 20,
|
42
|
-
"x2": 436,
|
43
|
-
"y2": 57
|
44
|
-
},
|
45
|
-
{
|
46
|
-
"id": "",
|
47
|
-
"type": "text",
|
48
|
-
"display": true,
|
49
|
-
"description": "",
|
50
|
-
"x": 20,
|
51
|
-
"y": 137,
|
52
|
-
"width": 555.2,
|
53
|
-
"height": 36,
|
54
|
-
"style": {
|
55
|
-
"font-family": [
|
56
|
-
"IPAMincho"
|
57
|
-
],
|
58
|
-
"font-size": 36,
|
59
|
-
"color": "#000000",
|
60
|
-
"text-align": "left",
|
61
|
-
"vertical-align": "top",
|
62
|
-
"line-height": "",
|
63
|
-
"line-height-ratio": "",
|
64
|
-
"letter-spacing": 10,
|
65
|
-
"font-style": []
|
66
|
-
},
|
67
|
-
"texts": [
|
68
|
-
"IPA明朝 左寄せ"
|
69
|
-
]
|
70
|
-
},
|
71
|
-
{
|
72
|
-
"id": "",
|
73
|
-
"type": "line",
|
74
|
-
"display": true,
|
75
|
-
"description": "",
|
76
|
-
"style": {
|
77
|
-
"border-color": "#ff0000",
|
78
|
-
"border-width": 1,
|
79
|
-
"border-style": "solid"
|
80
|
-
},
|
81
|
-
"x1": 351,
|
82
|
-
"y1": 136,
|
83
|
-
"x2": 351,
|
84
|
-
"y2": 173
|
85
|
-
},
|
86
|
-
{
|
87
|
-
"id": "",
|
88
|
-
"type": "text",
|
89
|
-
"display": true,
|
90
|
-
"description": "",
|
91
|
-
"x": 20,
|
92
|
-
"y": 260,
|
93
|
-
"width": 555.2,
|
94
|
-
"height": 38.5,
|
95
|
-
"style": {
|
96
|
-
"font-family": [
|
97
|
-
"IPAPGothic"
|
98
|
-
],
|
99
|
-
"font-size": 36,
|
100
|
-
"color": "#000000",
|
101
|
-
"text-align": "left",
|
102
|
-
"vertical-align": "top",
|
103
|
-
"line-height": "",
|
104
|
-
"line-height-ratio": "",
|
105
|
-
"letter-spacing": 10,
|
106
|
-
"font-style": []
|
107
|
-
},
|
108
|
-
"texts": [
|
109
|
-
"IPA Pゴシック 左寄せ"
|
110
|
-
]
|
111
|
-
},
|
112
|
-
{
|
113
|
-
"id": "",
|
114
|
-
"type": "line",
|
115
|
-
"display": true,
|
116
|
-
"description": "",
|
117
|
-
"style": {
|
118
|
-
"border-color": "#ff0000",
|
119
|
-
"border-width": 1,
|
120
|
-
"border-style": "solid"
|
121
|
-
},
|
122
|
-
"x1": 487,
|
123
|
-
"y1": 262,
|
124
|
-
"x2": 487,
|
125
|
-
"y2": 299
|
126
|
-
},
|
127
|
-
{
|
128
|
-
"id": "",
|
129
|
-
"type": "text",
|
130
|
-
"display": true,
|
131
|
-
"description": "",
|
132
|
-
"x": 20,
|
133
|
-
"y": 70,
|
134
|
-
"width": 555.2,
|
135
|
-
"height": 40,
|
136
|
-
"style": {
|
137
|
-
"font-family": [
|
138
|
-
"Times New Roman"
|
139
|
-
],
|
140
|
-
"font-size": 36,
|
141
|
-
"color": "#000000",
|
142
|
-
"text-align": "right",
|
143
|
-
"vertical-align": "top",
|
144
|
-
"line-height": "",
|
145
|
-
"line-height-ratio": "",
|
146
|
-
"letter-spacing": 10,
|
147
|
-
"font-style": []
|
148
|
-
},
|
149
|
-
"texts": [
|
150
|
-
"Times Roman Right"
|
151
|
-
]
|
152
|
-
},
|
153
|
-
{
|
154
|
-
"id": "",
|
155
|
-
"type": "line",
|
156
|
-
"display": true,
|
157
|
-
"description": "",
|
158
|
-
"style": {
|
159
|
-
"border-color": "#ff0000",
|
160
|
-
"border-width": 1,
|
161
|
-
"border-style": "solid"
|
162
|
-
},
|
163
|
-
"x1": 575,
|
164
|
-
"y1": 21,
|
165
|
-
"x2": 575.2,
|
166
|
-
"y2": 821.8
|
167
|
-
},
|
168
|
-
{
|
169
|
-
"id": "",
|
170
|
-
"type": "line",
|
171
|
-
"display": true,
|
172
|
-
"description": "",
|
173
|
-
"style": {
|
174
|
-
"border-color": "#ff0000",
|
175
|
-
"border-width": 1,
|
176
|
-
"border-style": "solid"
|
177
|
-
},
|
178
|
-
"x1": 131,
|
179
|
-
"y1": 66,
|
180
|
-
"x2": 131,
|
181
|
-
"y2": 103
|
182
|
-
},
|
183
|
-
{
|
184
|
-
"id": "",
|
185
|
-
"type": "text",
|
186
|
-
"display": true,
|
187
|
-
"description": "",
|
188
|
-
"x": 20,
|
189
|
-
"y": 186.9,
|
190
|
-
"width": 555.2,
|
191
|
-
"height": 36,
|
192
|
-
"style": {
|
193
|
-
"font-family": [
|
194
|
-
"IPAMincho"
|
195
|
-
],
|
196
|
-
"font-size": 36,
|
197
|
-
"color": "#000000",
|
198
|
-
"text-align": "right",
|
199
|
-
"vertical-align": "top",
|
200
|
-
"line-height": "",
|
201
|
-
"line-height-ratio": "",
|
202
|
-
"letter-spacing": 10,
|
203
|
-
"font-style": []
|
204
|
-
},
|
205
|
-
"texts": [
|
206
|
-
"IPA明朝 右寄せ"
|
207
|
-
]
|
208
|
-
},
|
209
|
-
{
|
210
|
-
"id": "",
|
211
|
-
"type": "line",
|
212
|
-
"display": true,
|
213
|
-
"description": "",
|
214
|
-
"style": {
|
215
|
-
"border-color": "#ff0000",
|
216
|
-
"border-width": 1,
|
217
|
-
"border-style": "solid"
|
218
|
-
},
|
219
|
-
"x1": 247,
|
220
|
-
"y1": 185.9,
|
221
|
-
"x2": 247,
|
222
|
-
"y2": 222.9
|
223
|
-
},
|
224
|
-
{
|
225
|
-
"id": "",
|
226
|
-
"type": "text",
|
227
|
-
"display": true,
|
228
|
-
"description": "",
|
229
|
-
"x": 20,
|
230
|
-
"y": 316,
|
231
|
-
"width": 555.2,
|
232
|
-
"height": 38.5,
|
233
|
-
"style": {
|
234
|
-
"font-family": [
|
235
|
-
"IPAPGothic"
|
236
|
-
],
|
237
|
-
"font-size": 36,
|
238
|
-
"color": "#000000",
|
239
|
-
"text-align": "right",
|
240
|
-
"vertical-align": "top",
|
241
|
-
"line-height": "",
|
242
|
-
"line-height-ratio": "",
|
243
|
-
"letter-spacing": 10,
|
244
|
-
"font-style": []
|
245
|
-
},
|
246
|
-
"texts": [
|
247
|
-
"IPA Pゴシック 右寄せ"
|
248
|
-
]
|
249
|
-
},
|
250
|
-
{
|
251
|
-
"id": "",
|
252
|
-
"type": "line",
|
253
|
-
"display": true,
|
254
|
-
"description": "",
|
255
|
-
"style": {
|
256
|
-
"border-color": "#ff0000",
|
257
|
-
"border-width": 1,
|
258
|
-
"border-style": "solid"
|
259
|
-
},
|
260
|
-
"x1": 108,
|
261
|
-
"y1": 318,
|
262
|
-
"x2": 108,
|
263
|
-
"y2": 355
|
264
|
-
}
|
265
|
-
],
|
266
|
-
"state": {
|
267
|
-
"layout-guides": [
|
268
|
-
{
|
269
|
-
"type": "x",
|
270
|
-
"position": 59.5
|
271
|
-
},
|
272
|
-
{
|
273
|
-
"type": "y",
|
274
|
-
"position": 434.1
|
275
|
-
},
|
276
|
-
{
|
277
|
-
"type": "y",
|
278
|
-
"position": 374.1
|
279
|
-
}
|
280
|
-
]
|
281
|
-
},
|
282
|
-
"title": "Character Spacing",
|
283
|
-
"report": {
|
284
|
-
"paper-type": "A4",
|
285
|
-
"orientation": "portrait",
|
286
|
-
"margin": [
|
287
|
-
20,
|
288
|
-
20,
|
289
|
-
20,
|
290
|
-
20
|
291
|
-
]
|
292
|
-
}
|
293
|
-
}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'open-uri'
|
4
|
-
|
5
|
-
example :dynamic_image, 'Show images dynamically' do
|
6
|
-
image50x50 = resource('img50x50.png')
|
7
|
-
image200x100 = resource('img200x100.png')
|
8
|
-
|
9
|
-
Thinreports::Report.generate filename: output_filename do |r|
|
10
|
-
r.use_layout(layout_filename)
|
11
|
-
|
12
|
-
r.start_new_page
|
13
|
-
|
14
|
-
r.page.values(pos_top_left: image50x50,
|
15
|
-
pos_top_center: image50x50,
|
16
|
-
pos_top_right: image50x50,
|
17
|
-
pos_center_left: image50x50,
|
18
|
-
pos_center_center: image50x50,
|
19
|
-
pos_center_right: image50x50,
|
20
|
-
pos_bottom_left: image50x50,
|
21
|
-
pos_bottom_center: image50x50,
|
22
|
-
pos_bottom_right: image50x50)
|
23
|
-
|
24
|
-
r.page.item(:overflow).src = image200x100
|
25
|
-
r.page[:thinreports_logo] = open('http://www.thinreports.org/assets/logos/thinreports-logo.png')
|
26
|
-
|
27
|
-
r.page.list(:list) do |list|
|
28
|
-
3.times { list.add_row in_list: image50x50 }
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|