thinreports 0.9.1 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (213) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/test.yml +39 -0
  3. data/.gitignore +1 -0
  4. data/CHANGELOG.md +59 -2
  5. data/Dockerfile +12 -0
  6. data/Gemfile +7 -4
  7. data/README.md +44 -22
  8. data/Rakefile +14 -31
  9. data/lib/thinreports.rb +16 -15
  10. data/lib/thinreports/config.rb +2 -24
  11. data/lib/thinreports/core/errors.rb +6 -17
  12. data/lib/thinreports/core/format/base.rb +62 -61
  13. data/lib/thinreports/core/shape.rb +10 -12
  14. data/lib/thinreports/core/shape/base.rb +3 -12
  15. data/lib/thinreports/core/shape/base/interface.rb +34 -32
  16. data/lib/thinreports/core/shape/base/internal.rb +45 -43
  17. data/lib/thinreports/core/shape/basic.rb +12 -12
  18. data/lib/thinreports/core/shape/basic/block_format.rb +8 -6
  19. data/lib/thinreports/core/shape/basic/block_interface.rb +24 -22
  20. data/lib/thinreports/core/shape/basic/block_internal.rb +28 -26
  21. data/lib/thinreports/core/shape/basic/format.rb +11 -9
  22. data/lib/thinreports/core/shape/basic/interface.rb +79 -77
  23. data/lib/thinreports/core/shape/basic/internal.rb +17 -14
  24. data/lib/thinreports/core/shape/image_block.rb +9 -9
  25. data/lib/thinreports/core/shape/image_block/format.rb +7 -5
  26. data/lib/thinreports/core/shape/image_block/interface.rb +15 -13
  27. data/lib/thinreports/core/shape/image_block/internal.rb +10 -8
  28. data/lib/thinreports/core/shape/list.rb +13 -13
  29. data/lib/thinreports/core/shape/list/format.rb +83 -77
  30. data/lib/thinreports/core/shape/list/manager.rb +179 -176
  31. data/lib/thinreports/core/shape/list/page.rb +91 -93
  32. data/lib/thinreports/core/shape/list/page_state.rb +42 -40
  33. data/lib/thinreports/core/shape/list/section_format.rb +28 -26
  34. data/lib/thinreports/core/shape/list/section_interface.rb +42 -40
  35. data/lib/thinreports/core/shape/list/section_internal.rb +21 -19
  36. data/lib/thinreports/core/shape/manager.rb +4 -13
  37. data/lib/thinreports/core/shape/manager/format.rb +21 -19
  38. data/lib/thinreports/core/shape/manager/internal.rb +87 -84
  39. data/lib/thinreports/core/shape/manager/target.rb +93 -95
  40. data/lib/thinreports/core/shape/page_number.rb +9 -9
  41. data/lib/thinreports/core/shape/page_number/format.rb +20 -18
  42. data/lib/thinreports/core/shape/page_number/interface.rb +20 -18
  43. data/lib/thinreports/core/shape/page_number/internal.rb +46 -44
  44. data/lib/thinreports/core/shape/style.rb +5 -14
  45. data/lib/thinreports/core/shape/style/base.rb +121 -120
  46. data/lib/thinreports/core/shape/style/basic.rb +12 -10
  47. data/lib/thinreports/core/shape/style/graphic.rb +35 -33
  48. data/lib/thinreports/core/shape/style/text.rb +113 -107
  49. data/lib/thinreports/core/shape/text.rb +9 -9
  50. data/lib/thinreports/core/shape/text/format.rb +10 -9
  51. data/lib/thinreports/core/shape/text/interface.rb +13 -11
  52. data/lib/thinreports/core/shape/text/internal.rb +14 -12
  53. data/lib/thinreports/core/shape/text_block.rb +10 -10
  54. data/lib/thinreports/core/shape/text_block/format.rb +35 -33
  55. data/lib/thinreports/core/shape/text_block/formatter.rb +26 -24
  56. data/lib/thinreports/core/shape/text_block/formatter/basic.rb +25 -25
  57. data/lib/thinreports/core/shape/text_block/formatter/datetime.rb +15 -12
  58. data/lib/thinreports/core/shape/text_block/formatter/number.rb +52 -34
  59. data/lib/thinreports/core/shape/text_block/formatter/padding.rb +17 -14
  60. data/lib/thinreports/core/shape/text_block/interface.rb +25 -23
  61. data/lib/thinreports/core/shape/text_block/internal.rb +66 -68
  62. data/lib/thinreports/core/utils.rb +7 -3
  63. data/lib/thinreports/generator/pdf.rb +24 -25
  64. data/lib/thinreports/generator/pdf/document.rb +109 -110
  65. data/lib/thinreports/generator/pdf/document/draw_shape.rb +57 -51
  66. data/lib/thinreports/generator/pdf/document/draw_template_items.rb +50 -47
  67. data/lib/thinreports/generator/pdf/document/font.rb +67 -58
  68. data/lib/thinreports/generator/pdf/document/graphics.rb +32 -33
  69. data/lib/thinreports/generator/pdf/document/graphics/attributes.rb +121 -121
  70. data/lib/thinreports/generator/pdf/document/graphics/basic.rb +112 -114
  71. data/lib/thinreports/generator/pdf/document/graphics/image.rb +58 -150
  72. data/lib/thinreports/generator/pdf/document/graphics/text.rb +149 -137
  73. data/lib/thinreports/generator/pdf/document/page.rb +60 -64
  74. data/lib/thinreports/generator/pdf/document/parse_color.rb +37 -37
  75. data/lib/thinreports/generator/pdf/drawer/base.rb +41 -41
  76. data/lib/thinreports/generator/pdf/drawer/list.rb +56 -54
  77. data/lib/thinreports/generator/pdf/drawer/list_section.rb +42 -40
  78. data/lib/thinreports/generator/pdf/drawer/page.rb +101 -96
  79. data/lib/thinreports/generator/pdf/prawn_ext.rb +4 -30
  80. data/lib/thinreports/generator/pdf/prawn_ext/calc_image_dimensions.rb +32 -0
  81. data/lib/thinreports/generator/pdf/prawn_ext/width_of.rb +35 -0
  82. data/lib/thinreports/layout.rb +5 -7
  83. data/lib/thinreports/layout/base.rb +5 -9
  84. data/lib/thinreports/layout/format.rb +17 -13
  85. data/lib/thinreports/layout/legacy_schema.rb +17 -13
  86. data/lib/thinreports/layout/version.rb +22 -25
  87. data/lib/thinreports/report.rb +4 -6
  88. data/lib/thinreports/report/base.rb +24 -51
  89. data/lib/thinreports/report/internal.rb +13 -15
  90. data/lib/thinreports/report/page.rb +5 -11
  91. data/lib/thinreports/version.rb +2 -2
  92. data/thinreports.gemspec +10 -19
  93. metadata +13 -288
  94. data/.travis.yml +0 -19
  95. data/examples/character_spacing/character_spacing.rb +0 -8
  96. data/examples/character_spacing/character_spacing.tlf +0 -293
  97. data/examples/dynamic_image/dynamic_image.rb +0 -31
  98. data/examples/dynamic_image/dynamic_image.tlf +0 -661
  99. data/examples/dynamic_image/img200x100.png +0 -0
  100. data/examples/dynamic_image/img50x50.png +0 -0
  101. data/examples/dynamic_style/dynamic_style.rb +0 -150
  102. data/examples/dynamic_style/dynamic_style.tlf +0 -1835
  103. data/examples/dynamic_style/dynamic_style_in_list.tlf +0 -344
  104. data/examples/dynamic_style/image.png +0 -0
  105. data/examples/eudc/eudc.rb +0 -20
  106. data/examples/eudc/eudc.tlf +0 -180
  107. data/examples/eudc/eudc.ttf +0 -0
  108. data/examples/helper.rb +0 -50
  109. data/examples/hidden_shapes/hidden_shapes.rb +0 -9
  110. data/examples/hidden_shapes/hidden_shapes.tlf +0 -449
  111. data/examples/list_events/list_events.rb +0 -32
  112. data/examples/list_events/list_events.tlf +0 -361
  113. data/examples/list_manual_generation/list_manual_generation.rb +0 -22
  114. data/examples/list_manual_generation/list_manual_generation.tlf +0 -132
  115. data/examples/list_page_number/list_page_number.rb +0 -17
  116. data/examples/list_page_number/list_page_number.tlf +0 -254
  117. data/examples/page_number/page_number.rb +0 -33
  118. data/examples/page_number/page_number.tlf +0 -215
  119. data/examples/palleted_png/palleted_png.png +0 -0
  120. data/examples/palleted_png/palleted_png.rb +0 -11
  121. data/examples/palleted_png/palleted_png.tlf +0 -47
  122. data/examples/password_setting/password_setting.rb +0 -10
  123. data/examples/password_setting/password_setting.tlf +0 -45
  124. data/examples/report_callbacks/report_callbacks.rb +0 -14
  125. data/examples/report_callbacks/report_callbacks.tlf +0 -147
  126. data/examples/single_line_tblock/single_line_tblock.rb +0 -13
  127. data/examples/single_line_tblock/single_line_tblock.tlf +0 -170
  128. data/examples/tblock_overflow/tblock_overflow.rb +0 -20
  129. data/examples/tblock_overflow/tblock_overflow.tlf +0 -538
  130. data/examples/tblock_styles/font_size.tlf +0 -383
  131. data/examples/tblock_styles/tblock_styles.rb +0 -43
  132. data/examples/tblock_styles/tblock_styles.tlf +0 -889
  133. data/examples/text_align/text_align.rb +0 -8
  134. data/examples/text_align/text_align.tlf +0 -241
  135. data/examples/typeB_page_size/B4_ISO.tlf +0 -45
  136. data/examples/typeB_page_size/B4_JIS.tlf +0 -45
  137. data/examples/typeB_page_size/typeB_page_size.rb +0 -17
  138. data/examples/word_wrap/word_wrap.rb +0 -26
  139. data/examples/word_wrap/word_wrap.tlf +0 -297
  140. data/lib/thinreports/generator.rb +0 -29
  141. data/lib/thinreports/generator/base.rb +0 -40
  142. data/lib/thinreports/generator/configuration.rb +0 -31
  143. data/lib/thinreports/report/events.rb +0 -32
  144. data/test/data/font.ttf +0 -0
  145. data/test/data/image_normal.jpg +0 -0
  146. data/test/data/image_normal.png +0 -0
  147. data/test/data/image_normal_jpg_noext +0 -0
  148. data/test/data/image_normal_png_noext +0 -0
  149. data/test/data/image_pallete_based.png +0 -0
  150. data/test/data/legacy_layout/all-items.tlf +0 -1
  151. data/test/schema_helper.rb +0 -121
  152. data/test/test_helper.rb +0 -42
  153. data/test/tmp/.gitkeep +0 -0
  154. data/test/unit/core/format/test_base.rb +0 -152
  155. data/test/unit/core/shape/base/test_internal.rb +0 -87
  156. data/test/unit/core/shape/basic/test_block_format.rb +0 -23
  157. data/test/unit/core/shape/basic/test_block_interface.rb +0 -29
  158. data/test/unit/core/shape/basic/test_block_internal.rb +0 -55
  159. data/test/unit/core/shape/basic/test_format.rb +0 -37
  160. data/test/unit/core/shape/basic/test_interface.rb +0 -108
  161. data/test/unit/core/shape/basic/test_internal.rb +0 -55
  162. data/test/unit/core/shape/image_block/test_interface.rb +0 -24
  163. data/test/unit/core/shape/image_block/test_internal.rb +0 -31
  164. data/test/unit/core/shape/list/test_format.rb +0 -111
  165. data/test/unit/core/shape/list/test_manager.rb +0 -67
  166. data/test/unit/core/shape/list/test_page.rb +0 -82
  167. data/test/unit/core/shape/list/test_page_state.rb +0 -31
  168. data/test/unit/core/shape/list/test_section_format.rb +0 -36
  169. data/test/unit/core/shape/list/test_section_interface.rb +0 -75
  170. data/test/unit/core/shape/list/test_section_internal.rb +0 -50
  171. data/test/unit/core/shape/manager/test_format.rb +0 -38
  172. data/test/unit/core/shape/manager/test_internal.rb +0 -132
  173. data/test/unit/core/shape/manager/test_target.rb +0 -140
  174. data/test/unit/core/shape/page_number/test_format.rb +0 -55
  175. data/test/unit/core/shape/page_number/test_interface.rb +0 -33
  176. data/test/unit/core/shape/page_number/test_internal.rb +0 -81
  177. data/test/unit/core/shape/styles/test_base.rb +0 -191
  178. data/test/unit/core/shape/styles/test_basic.rb +0 -24
  179. data/test/unit/core/shape/styles/test_graphic.rb +0 -50
  180. data/test/unit/core/shape/styles/test_text.rb +0 -97
  181. data/test/unit/core/shape/text/test_format.rb +0 -44
  182. data/test/unit/core/shape/text/test_internal.rb +0 -20
  183. data/test/unit/core/shape/text_block/formatter/test_basic.rb +0 -24
  184. data/test/unit/core/shape/text_block/formatter/test_datetime.rb +0 -49
  185. data/test/unit/core/shape/text_block/formatter/test_number.rb +0 -76
  186. data/test/unit/core/shape/text_block/formatter/test_padding.rb +0 -77
  187. data/test/unit/core/shape/text_block/test_format.rb +0 -169
  188. data/test/unit/core/shape/text_block/test_formatter.rb +0 -28
  189. data/test/unit/core/shape/text_block/test_interface.rb +0 -63
  190. data/test/unit/core/shape/text_block/test_internal.rb +0 -128
  191. data/test/unit/core/test_shape.rb +0 -52
  192. data/test/unit/core/test_utils.rb +0 -68
  193. data/test/unit/generator/pdf/document/graphics/test_attributes.rb +0 -135
  194. data/test/unit/generator/pdf/document/graphics/test_basic.rb +0 -45
  195. data/test/unit/generator/pdf/document/graphics/test_image.rb +0 -150
  196. data/test/unit/generator/pdf/document/graphics/test_text.rb +0 -171
  197. data/test/unit/generator/pdf/document/test_font.rb +0 -84
  198. data/test/unit/generator/pdf/document/test_graphics.rb +0 -42
  199. data/test/unit/generator/pdf/document/test_page.rb +0 -122
  200. data/test/unit/generator/pdf/document/test_parse_color.rb +0 -30
  201. data/test/unit/generator/pdf/test_document.rb +0 -20
  202. data/test/unit/generator/test_base.rb +0 -40
  203. data/test/unit/generator/test_configuration.rb +0 -21
  204. data/test/unit/generator/test_pdf.rb +0 -24
  205. data/test/unit/layout/test_base.rb +0 -41
  206. data/test/unit/layout/test_format.rb +0 -100
  207. data/test/unit/layout/test_legacy_schema.rb +0 -574
  208. data/test/unit/layout/test_version.rb +0 -95
  209. data/test/unit/report/test_base.rb +0 -262
  210. data/test/unit/report/test_internal.rb +0 -206
  211. data/test/unit/test_config.rb +0 -51
  212. data/test/unit/test_layout.rb +0 -12
  213. data/test/unit/test_report.rb +0 -18
metadata CHANGED
@@ -1,173 +1,44 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thinreports
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.11.0
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: 2016-06-03 00:00:00.000000000 Z
11
+ date: 2020-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: prawn
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '='
18
- - !ruby/object:Gem::Version
19
- version: 1.3.0
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '='
25
- - !ruby/object:Gem::Version
26
- version: 1.3.0
27
- - !ruby/object:Gem::Dependency
28
- name: chunky_png
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - "~>"
32
18
  - !ruby/object:Gem::Version
33
- version: '1.3'
19
+ version: 2.2.0
34
20
  type: :runtime
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
24
  - - "~>"
39
25
  - !ruby/object:Gem::Version
40
- version: '1.3'
41
- - !ruby/object:Gem::Dependency
42
- name: bundler
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: 1.0.0
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: 1.0.0
55
- - !ruby/object:Gem::Dependency
56
- name: minitest
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: 5.0.0
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: 5.0.0
69
- - !ruby/object:Gem::Dependency
70
- name: mocha
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: rake
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
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'
26
+ version: 2.2.0
111
27
  description: Thinreports is an open source report generation tool for Ruby.
112
28
  email: thinreports@gmail.com
113
29
  executables: []
114
30
  extensions: []
115
- extra_rdoc_files:
116
- - README.md
31
+ extra_rdoc_files: []
117
32
  files:
118
33
  - ".github/CONTRIBUTING.md"
34
+ - ".github/workflows/test.yml"
119
35
  - ".gitignore"
120
- - ".travis.yml"
121
36
  - CHANGELOG.md
37
+ - Dockerfile
122
38
  - Gemfile
123
39
  - MIT-LICENSE
124
40
  - README.md
125
41
  - Rakefile
126
- - examples/character_spacing/character_spacing.rb
127
- - examples/character_spacing/character_spacing.tlf
128
- - examples/dynamic_image/dynamic_image.rb
129
- - examples/dynamic_image/dynamic_image.tlf
130
- - examples/dynamic_image/img200x100.png
131
- - examples/dynamic_image/img50x50.png
132
- - examples/dynamic_style/dynamic_style.rb
133
- - examples/dynamic_style/dynamic_style.tlf
134
- - examples/dynamic_style/dynamic_style_in_list.tlf
135
- - examples/dynamic_style/image.png
136
- - examples/eudc/eudc.rb
137
- - examples/eudc/eudc.tlf
138
- - examples/eudc/eudc.ttf
139
- - examples/helper.rb
140
- - examples/hidden_shapes/hidden_shapes.rb
141
- - examples/hidden_shapes/hidden_shapes.tlf
142
- - examples/list_events/list_events.rb
143
- - examples/list_events/list_events.tlf
144
- - examples/list_manual_generation/list_manual_generation.rb
145
- - examples/list_manual_generation/list_manual_generation.tlf
146
- - examples/list_page_number/list_page_number.rb
147
- - examples/list_page_number/list_page_number.tlf
148
- - examples/page_number/page_number.rb
149
- - examples/page_number/page_number.tlf
150
- - examples/palleted_png/palleted_png.png
151
- - examples/palleted_png/palleted_png.rb
152
- - examples/palleted_png/palleted_png.tlf
153
- - examples/password_setting/password_setting.rb
154
- - examples/password_setting/password_setting.tlf
155
- - examples/report_callbacks/report_callbacks.rb
156
- - examples/report_callbacks/report_callbacks.tlf
157
- - examples/single_line_tblock/single_line_tblock.rb
158
- - examples/single_line_tblock/single_line_tblock.tlf
159
- - examples/tblock_overflow/tblock_overflow.rb
160
- - examples/tblock_overflow/tblock_overflow.tlf
161
- - examples/tblock_styles/font_size.tlf
162
- - examples/tblock_styles/tblock_styles.rb
163
- - examples/tblock_styles/tblock_styles.tlf
164
- - examples/text_align/text_align.rb
165
- - examples/text_align/text_align.tlf
166
- - examples/typeB_page_size/B4_ISO.tlf
167
- - examples/typeB_page_size/B4_JIS.tlf
168
- - examples/typeB_page_size/typeB_page_size.rb
169
- - examples/word_wrap/word_wrap.rb
170
- - examples/word_wrap/word_wrap.tlf
171
42
  - fonts/IPA_Font_License_Agreement_v1.0.txt
172
43
  - fonts/ipag.ttf
173
44
  - fonts/ipagp.ttf
@@ -227,9 +98,6 @@ files:
227
98
  - lib/thinreports/core/shape/text_block/interface.rb
228
99
  - lib/thinreports/core/shape/text_block/internal.rb
229
100
  - lib/thinreports/core/utils.rb
230
- - lib/thinreports/generator.rb
231
- - lib/thinreports/generator/base.rb
232
- - lib/thinreports/generator/configuration.rb
233
101
  - lib/thinreports/generator/pdf.rb
234
102
  - lib/thinreports/generator/pdf/document.rb
235
103
  - lib/thinreports/generator/pdf/document/draw_shape.rb
@@ -247,6 +115,8 @@ files:
247
115
  - lib/thinreports/generator/pdf/drawer/list_section.rb
248
116
  - lib/thinreports/generator/pdf/drawer/page.rb
249
117
  - lib/thinreports/generator/pdf/prawn_ext.rb
118
+ - lib/thinreports/generator/pdf/prawn_ext/calc_image_dimensions.rb
119
+ - lib/thinreports/generator/pdf/prawn_ext/width_of.rb
250
120
  - lib/thinreports/layout.rb
251
121
  - lib/thinreports/layout/base.rb
252
122
  - lib/thinreports/layout/format.rb
@@ -254,176 +124,31 @@ files:
254
124
  - lib/thinreports/layout/version.rb
255
125
  - lib/thinreports/report.rb
256
126
  - lib/thinreports/report/base.rb
257
- - lib/thinreports/report/events.rb
258
127
  - lib/thinreports/report/internal.rb
259
128
  - lib/thinreports/report/page.rb
260
129
  - lib/thinreports/version.rb
261
- - test/data/font.ttf
262
- - test/data/image_normal.jpg
263
- - test/data/image_normal.png
264
- - test/data/image_normal_jpg_noext
265
- - test/data/image_normal_png_noext
266
- - test/data/image_pallete_based.png
267
- - test/data/legacy_layout/all-items.tlf
268
- - test/schema_helper.rb
269
- - test/test_helper.rb
270
- - test/tmp/.gitkeep
271
- - test/unit/core/format/test_base.rb
272
- - test/unit/core/shape/base/test_internal.rb
273
- - test/unit/core/shape/basic/test_block_format.rb
274
- - test/unit/core/shape/basic/test_block_interface.rb
275
- - test/unit/core/shape/basic/test_block_internal.rb
276
- - test/unit/core/shape/basic/test_format.rb
277
- - test/unit/core/shape/basic/test_interface.rb
278
- - test/unit/core/shape/basic/test_internal.rb
279
- - test/unit/core/shape/image_block/test_interface.rb
280
- - test/unit/core/shape/image_block/test_internal.rb
281
- - test/unit/core/shape/list/test_format.rb
282
- - test/unit/core/shape/list/test_manager.rb
283
- - test/unit/core/shape/list/test_page.rb
284
- - test/unit/core/shape/list/test_page_state.rb
285
- - test/unit/core/shape/list/test_section_format.rb
286
- - test/unit/core/shape/list/test_section_interface.rb
287
- - test/unit/core/shape/list/test_section_internal.rb
288
- - test/unit/core/shape/manager/test_format.rb
289
- - test/unit/core/shape/manager/test_internal.rb
290
- - test/unit/core/shape/manager/test_target.rb
291
- - test/unit/core/shape/page_number/test_format.rb
292
- - test/unit/core/shape/page_number/test_interface.rb
293
- - test/unit/core/shape/page_number/test_internal.rb
294
- - test/unit/core/shape/styles/test_base.rb
295
- - test/unit/core/shape/styles/test_basic.rb
296
- - test/unit/core/shape/styles/test_graphic.rb
297
- - test/unit/core/shape/styles/test_text.rb
298
- - test/unit/core/shape/text/test_format.rb
299
- - test/unit/core/shape/text/test_internal.rb
300
- - test/unit/core/shape/text_block/formatter/test_basic.rb
301
- - test/unit/core/shape/text_block/formatter/test_datetime.rb
302
- - test/unit/core/shape/text_block/formatter/test_number.rb
303
- - test/unit/core/shape/text_block/formatter/test_padding.rb
304
- - test/unit/core/shape/text_block/test_format.rb
305
- - test/unit/core/shape/text_block/test_formatter.rb
306
- - test/unit/core/shape/text_block/test_interface.rb
307
- - test/unit/core/shape/text_block/test_internal.rb
308
- - test/unit/core/test_shape.rb
309
- - test/unit/core/test_utils.rb
310
- - test/unit/generator/pdf/document/graphics/test_attributes.rb
311
- - test/unit/generator/pdf/document/graphics/test_basic.rb
312
- - test/unit/generator/pdf/document/graphics/test_image.rb
313
- - test/unit/generator/pdf/document/graphics/test_text.rb
314
- - test/unit/generator/pdf/document/test_font.rb
315
- - test/unit/generator/pdf/document/test_graphics.rb
316
- - test/unit/generator/pdf/document/test_page.rb
317
- - test/unit/generator/pdf/document/test_parse_color.rb
318
- - test/unit/generator/pdf/test_document.rb
319
- - test/unit/generator/test_base.rb
320
- - test/unit/generator/test_configuration.rb
321
- - test/unit/generator/test_pdf.rb
322
- - test/unit/layout/test_base.rb
323
- - test/unit/layout/test_format.rb
324
- - test/unit/layout/test_legacy_schema.rb
325
- - test/unit/layout/test_version.rb
326
- - test/unit/report/test_base.rb
327
- - test/unit/report/test_internal.rb
328
- - test/unit/test_config.rb
329
- - test/unit/test_layout.rb
330
- - test/unit/test_report.rb
331
130
  - thinreports.gemspec
332
131
  homepage: http://www.thinreports.org
333
132
  licenses:
334
133
  - MIT
335
134
  metadata: {}
336
135
  post_install_message:
337
- rdoc_options:
338
- - "--main"
339
- - README.md
136
+ rdoc_options: []
340
137
  require_paths:
341
138
  - lib
342
139
  required_ruby_version: !ruby/object:Gem::Requirement
343
140
  requirements:
344
141
  - - ">="
345
142
  - !ruby/object:Gem::Version
346
- version: 1.9.3
143
+ version: 2.4.0
347
144
  required_rubygems_version: !ruby/object:Gem::Requirement
348
145
  requirements:
349
146
  - - ">="
350
147
  - !ruby/object:Gem::Version
351
148
  version: '0'
352
149
  requirements: []
353
- rubyforge_project:
354
- rubygems_version: 2.5.1
150
+ rubygems_version: 3.1.2
355
151
  signing_key:
356
152
  specification_version: 4
357
153
  summary: An open source report generation tool for Ruby.
358
- test_files:
359
- - test/data/font.ttf
360
- - test/data/image_normal.jpg
361
- - test/data/image_normal.png
362
- - test/data/image_normal_jpg_noext
363
- - test/data/image_normal_png_noext
364
- - test/data/image_pallete_based.png
365
- - test/data/legacy_layout/all-items.tlf
366
- - test/schema_helper.rb
367
- - test/test_helper.rb
368
- - test/tmp/.gitkeep
369
- - test/unit/core/format/test_base.rb
370
- - test/unit/core/shape/base/test_internal.rb
371
- - test/unit/core/shape/basic/test_block_format.rb
372
- - test/unit/core/shape/basic/test_block_interface.rb
373
- - test/unit/core/shape/basic/test_block_internal.rb
374
- - test/unit/core/shape/basic/test_format.rb
375
- - test/unit/core/shape/basic/test_interface.rb
376
- - test/unit/core/shape/basic/test_internal.rb
377
- - test/unit/core/shape/image_block/test_interface.rb
378
- - test/unit/core/shape/image_block/test_internal.rb
379
- - test/unit/core/shape/list/test_format.rb
380
- - test/unit/core/shape/list/test_manager.rb
381
- - test/unit/core/shape/list/test_page.rb
382
- - test/unit/core/shape/list/test_page_state.rb
383
- - test/unit/core/shape/list/test_section_format.rb
384
- - test/unit/core/shape/list/test_section_interface.rb
385
- - test/unit/core/shape/list/test_section_internal.rb
386
- - test/unit/core/shape/manager/test_format.rb
387
- - test/unit/core/shape/manager/test_internal.rb
388
- - test/unit/core/shape/manager/test_target.rb
389
- - test/unit/core/shape/page_number/test_format.rb
390
- - test/unit/core/shape/page_number/test_interface.rb
391
- - test/unit/core/shape/page_number/test_internal.rb
392
- - test/unit/core/shape/styles/test_base.rb
393
- - test/unit/core/shape/styles/test_basic.rb
394
- - test/unit/core/shape/styles/test_graphic.rb
395
- - test/unit/core/shape/styles/test_text.rb
396
- - test/unit/core/shape/text/test_format.rb
397
- - test/unit/core/shape/text/test_internal.rb
398
- - test/unit/core/shape/text_block/formatter/test_basic.rb
399
- - test/unit/core/shape/text_block/formatter/test_datetime.rb
400
- - test/unit/core/shape/text_block/formatter/test_number.rb
401
- - test/unit/core/shape/text_block/formatter/test_padding.rb
402
- - test/unit/core/shape/text_block/test_format.rb
403
- - test/unit/core/shape/text_block/test_formatter.rb
404
- - test/unit/core/shape/text_block/test_interface.rb
405
- - test/unit/core/shape/text_block/test_internal.rb
406
- - test/unit/core/test_shape.rb
407
- - test/unit/core/test_utils.rb
408
- - test/unit/generator/pdf/document/graphics/test_attributes.rb
409
- - test/unit/generator/pdf/document/graphics/test_basic.rb
410
- - test/unit/generator/pdf/document/graphics/test_image.rb
411
- - test/unit/generator/pdf/document/graphics/test_text.rb
412
- - test/unit/generator/pdf/document/test_font.rb
413
- - test/unit/generator/pdf/document/test_graphics.rb
414
- - test/unit/generator/pdf/document/test_page.rb
415
- - test/unit/generator/pdf/document/test_parse_color.rb
416
- - test/unit/generator/pdf/test_document.rb
417
- - test/unit/generator/test_base.rb
418
- - test/unit/generator/test_configuration.rb
419
- - test/unit/generator/test_pdf.rb
420
- - test/unit/layout/test_base.rb
421
- - test/unit/layout/test_format.rb
422
- - test/unit/layout/test_legacy_schema.rb
423
- - test/unit/layout/test_version.rb
424
- - test/unit/report/test_base.rb
425
- - test/unit/report/test_internal.rb
426
- - test/unit/test_config.rb
427
- - test/unit/test_layout.rb
428
- - test/unit/test_report.rb
429
- has_rdoc:
154
+ test_files: []
@@ -1,19 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- rvm:
4
- - 1.9.3
5
- - 2.0.0
6
- - 2.1.10
7
- - 2.2.5
8
- - 2.3.1
9
- - jruby
10
- script: rake test
11
-
12
- branches:
13
- only:
14
- - master
15
- - /stable$/
16
-
17
- notifications:
18
- slack:
19
- secure: XubYKuE3+6VJNDvjgVE2P0cp3Km/We1RlhkeHBGI+r0wYqAg6tab33IYFo+3BgE0xwl1RX3SwX1pbPt3LVDi8zLA5mkmmmDiNIqqYa1vICDgRgu8OTCRcCCTaWB5DhVY11iZaYFyQEoQ+aUHp9QoYeH7Qmp+M2//+DYG9wka6kA=
@@ -1,8 +0,0 @@
1
- # coding: utf-8
2
-
3
- example :character_spacing, 'Sets the character spacing in the Editor' do
4
- report = Thinreports::Report.new layout: layout_filename
5
- report.start_new_page
6
-
7
- report.generate filename: output_filename
8
- end
@@ -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
- }