thinreports 0.7.7 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (280) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -6
  3. data/.travis.yml +4 -10
  4. data/CHANGELOG.md +220 -0
  5. data/Gemfile +3 -3
  6. data/MIT-LICENSE +1 -1
  7. data/README.md +286 -0
  8. data/Rakefile +38 -8
  9. data/examples/character_spacing/character_spacing.rb +8 -0
  10. data/examples/character_spacing/character_spacing.tlf +1 -0
  11. data/examples/dynamic_image/dynamic_image.rb +31 -0
  12. data/examples/dynamic_image/dynamic_image.tlf +1 -0
  13. data/{test/case → examples}/dynamic_image/img200x100.png +0 -0
  14. data/{test/case → examples}/dynamic_image/img50x50.png +0 -0
  15. data/examples/dynamic_style/dynamic_style.rb +150 -0
  16. data/examples/dynamic_style/dynamic_style.tlf +1 -0
  17. data/examples/dynamic_style/dynamic_style_in_list.tlf +1 -0
  18. data/{test/case → examples}/dynamic_style/image.png +0 -0
  19. data/examples/eudc/eudc.rb +20 -0
  20. data/examples/eudc/eudc.tlf +1 -0
  21. data/{test/case → examples}/eudc/eudc.ttf +0 -0
  22. data/{test/case → examples}/helper.rb +14 -12
  23. data/examples/hidden_shapes/hidden_shapes.rb +9 -0
  24. data/examples/hidden_shapes/hidden_shapes.tlf +1 -0
  25. data/examples/list_events/list_events.rb +59 -0
  26. data/examples/list_events/list_events_0_7_7.tlf +1 -0
  27. data/examples/list_events/list_events_0_8.tlf +1 -0
  28. data/{test/case → examples}/list_manual_generation/list_manual_generation.rb +4 -4
  29. data/examples/list_manual_generation/list_manual_generation.tlf +1 -0
  30. data/{test/case → examples}/list_page_number/list_page_number.rb +3 -3
  31. data/examples/list_page_number/list_page_number.tlf +1 -0
  32. data/examples/page_number/page_number.rb +33 -0
  33. data/examples/page_number/page_number.tlf +1 -0
  34. data/examples/password_setting/password_setting.rb +10 -0
  35. data/examples/password_setting/password_setting.tlf +1 -0
  36. data/examples/report_callbacks/report_callbacks.rb +31 -0
  37. data/examples/report_callbacks/report_callbacks.tlf +1 -0
  38. data/{test/case → examples}/single_line_tblock/single_line_tblock.rb +2 -2
  39. data/examples/single_line_tblock/single_line_tblock.tlf +1 -0
  40. data/examples/tblock_overflow/tblock_overflow.rb +20 -0
  41. data/examples/tblock_overflow/tblock_overflow.tlf +1 -0
  42. data/examples/tblock_styles/font_size.tlf +1 -0
  43. data/examples/tblock_styles/tblock_styles.rb +43 -0
  44. data/examples/tblock_styles/tblock_styles.tlf +1 -0
  45. data/examples/text_align/text_align.rb +8 -0
  46. data/examples/text_align/text_align.tlf +1 -0
  47. data/examples/typeB_page_size/B4_ISO.tlf +1 -0
  48. data/examples/typeB_page_size/B4_JIS.tlf +1 -0
  49. data/{test/case → examples}/typeB_page_size/typeB_page_size.rb +3 -3
  50. data/examples/word_wrap/word_wrap.rb +26 -0
  51. data/examples/word_wrap/word_wrap.tlf +1 -0
  52. data/{resources/fonts → fonts}/IPA_Font_License_Agreement_v1.0.txt +0 -0
  53. data/{resources/fonts → fonts}/ipag.ttf +0 -0
  54. data/{resources/fonts → fonts}/ipagp.ttf +0 -0
  55. data/{resources/fonts → fonts}/ipam.ttf +0 -0
  56. data/{resources/fonts → fonts}/ipamp.ttf +0 -0
  57. data/lib/thinreports.rb +14 -2
  58. data/lib/thinreports/config.rb +30 -10
  59. data/lib/thinreports/core/errors.rb +23 -20
  60. data/lib/thinreports/core/events.rb +18 -19
  61. data/lib/thinreports/core/format/base.rb +20 -20
  62. data/lib/thinreports/core/format/builder.rb +14 -22
  63. data/lib/thinreports/core/shape.rb +9 -13
  64. data/lib/thinreports/core/shape/base.rb +4 -5
  65. data/lib/thinreports/core/shape/base/interface.rb +15 -15
  66. data/lib/thinreports/core/shape/base/internal.rb +15 -20
  67. data/lib/thinreports/core/shape/basic.rb +1 -1
  68. data/lib/thinreports/core/shape/basic/block_format.rb +3 -4
  69. data/lib/thinreports/core/shape/basic/block_interface.rb +9 -4
  70. data/lib/thinreports/core/shape/basic/block_internal.rb +9 -10
  71. data/lib/thinreports/core/shape/basic/format.rb +11 -10
  72. data/lib/thinreports/core/shape/basic/interface.rb +3 -3
  73. data/lib/thinreports/core/shape/basic/internal.rb +4 -5
  74. data/lib/thinreports/core/shape/image_block.rb +1 -1
  75. data/lib/thinreports/core/shape/image_block/format.rb +5 -6
  76. data/lib/thinreports/core/shape/image_block/interface.rb +9 -7
  77. data/lib/thinreports/core/shape/image_block/internal.rb +5 -6
  78. data/lib/thinreports/core/shape/list.rb +1 -1
  79. data/lib/thinreports/core/shape/list/configuration.rb +30 -15
  80. data/lib/thinreports/core/shape/list/events.rb +11 -11
  81. data/lib/thinreports/core/shape/list/format.rb +27 -28
  82. data/lib/thinreports/core/shape/list/manager.rb +128 -95
  83. data/lib/thinreports/core/shape/list/page.rb +54 -50
  84. data/lib/thinreports/core/shape/list/page_state.rb +15 -16
  85. data/lib/thinreports/core/shape/list/section_format.rb +14 -15
  86. data/lib/thinreports/core/shape/list/section_interface.rb +15 -16
  87. data/lib/thinreports/core/shape/list/section_internal.rb +7 -8
  88. data/lib/thinreports/core/shape/list/store.rb +10 -11
  89. data/lib/thinreports/core/shape/manager.rb +1 -1
  90. data/lib/thinreports/core/shape/manager/format.rb +10 -11
  91. data/lib/thinreports/core/shape/manager/internal.rb +21 -20
  92. data/lib/thinreports/core/shape/manager/target.rb +63 -34
  93. data/lib/thinreports/core/shape/page_number.rb +1 -1
  94. data/lib/thinreports/core/shape/page_number/format.rb +3 -3
  95. data/lib/thinreports/core/shape/page_number/interface.rb +2 -2
  96. data/lib/thinreports/core/shape/page_number/internal.rb +3 -3
  97. data/lib/thinreports/core/shape/style.rb +1 -1
  98. data/lib/thinreports/core/shape/style/base.rb +29 -29
  99. data/lib/thinreports/core/shape/style/basic.rb +1 -1
  100. data/lib/thinreports/core/shape/style/graphic.rb +10 -25
  101. data/lib/thinreports/core/shape/style/text.rb +36 -30
  102. data/lib/thinreports/core/shape/text.rb +1 -1
  103. data/lib/thinreports/core/shape/text/format.rb +8 -9
  104. data/lib/thinreports/core/shape/text/interface.rb +2 -2
  105. data/lib/thinreports/core/shape/text/internal.rb +6 -7
  106. data/lib/thinreports/core/shape/text_block.rb +1 -1
  107. data/lib/thinreports/core/shape/text_block/format.rb +17 -18
  108. data/lib/thinreports/core/shape/text_block/formatter.rb +7 -8
  109. data/lib/thinreports/core/shape/text_block/formatter/basic.rb +13 -12
  110. data/lib/thinreports/core/shape/text_block/formatter/datetime.rb +8 -9
  111. data/lib/thinreports/core/shape/text_block/formatter/number.rb +11 -12
  112. data/lib/thinreports/core/shape/text_block/formatter/padding.rb +9 -32
  113. data/lib/thinreports/core/shape/text_block/interface.rb +2 -2
  114. data/lib/thinreports/core/shape/text_block/internal.rb +19 -20
  115. data/lib/thinreports/core/utils.rb +33 -32
  116. data/lib/thinreports/generator.rb +6 -8
  117. data/lib/thinreports/generator/base.rb +15 -24
  118. data/lib/thinreports/generator/configuration.rb +10 -9
  119. data/lib/thinreports/generator/pdf.rb +27 -30
  120. data/lib/thinreports/generator/pdf/configuration.rb +11 -6
  121. data/lib/thinreports/generator/pdf/document.rb +28 -28
  122. data/lib/thinreports/generator/pdf/document/draw_shape.rb +30 -31
  123. data/lib/thinreports/generator/pdf/document/font.rb +53 -44
  124. data/lib/thinreports/generator/pdf/document/graphics.rb +8 -9
  125. data/lib/thinreports/generator/pdf/document/graphics/attributes.rb +25 -25
  126. data/lib/thinreports/generator/pdf/document/graphics/basic.rb +25 -25
  127. data/lib/thinreports/generator/pdf/document/graphics/image.rb +15 -15
  128. data/lib/thinreports/generator/pdf/document/graphics/text.rb +40 -41
  129. data/lib/thinreports/generator/pdf/document/page.rb +20 -21
  130. data/lib/thinreports/generator/pdf/document/parse_color.rb +9 -10
  131. data/lib/thinreports/generator/pdf/document/parse_svg.rb +14 -15
  132. data/lib/thinreports/generator/pdf/drawer/base.rb +13 -14
  133. data/lib/thinreports/generator/pdf/drawer/list.rb +13 -14
  134. data/lib/thinreports/generator/pdf/drawer/list_section.rb +13 -14
  135. data/lib/thinreports/generator/pdf/drawer/page.rb +16 -17
  136. data/lib/thinreports/generator/pdf/prawn_ext.rb +17 -33
  137. data/lib/thinreports/layout.rb +2 -2
  138. data/lib/thinreports/layout/base.rb +22 -36
  139. data/lib/thinreports/layout/configuration.rb +11 -9
  140. data/lib/thinreports/layout/format.rb +26 -27
  141. data/lib/thinreports/layout/version.rb +8 -9
  142. data/lib/thinreports/report.rb +10 -14
  143. data/lib/thinreports/report/base.rb +104 -126
  144. data/lib/thinreports/report/events.rb +5 -5
  145. data/lib/thinreports/report/internal.rb +41 -33
  146. data/lib/thinreports/{core → report}/page.rb +38 -30
  147. data/lib/thinreports/version.rb +2 -3
  148. data/test/data/font.ttf +0 -0
  149. data/test/data/layout_block.tlf +1 -0
  150. data/test/data/layout_list.tlf +1 -0
  151. data/test/data/layout_list_noheader.tlf +1 -0
  152. data/test/data/layout_text1.tlf +1 -0
  153. data/test/data/layout_text2.tlf +1 -0
  154. data/test/test_helper.rb +74 -0
  155. data/test/{unit/tmp → tmp}/.gitkeep +0 -0
  156. data/test/unit/core/format/test_base.rb +14 -14
  157. data/test/unit/core/format/test_builder.rb +19 -23
  158. data/test/unit/core/shape/base/test_internal.rb +34 -37
  159. data/test/unit/core/shape/basic/test_basic_format.rb +4 -4
  160. data/test/unit/core/shape/basic/test_basic_interface.rb +15 -13
  161. data/test/unit/core/shape/basic/test_basic_internal.rb +19 -16
  162. data/test/unit/core/shape/basic/test_format.rb +4 -4
  163. data/test/unit/core/shape/basic/test_interface.rb +36 -46
  164. data/test/unit/core/shape/basic/test_internal.rb +23 -20
  165. data/test/unit/core/shape/image_block/test_format.rb +5 -5
  166. data/test/unit/core/shape/image_block/test_interface.rb +17 -16
  167. data/test/unit/core/shape/image_block/test_internal.rb +19 -16
  168. data/test/unit/core/shape/list/test_configuration.rb +45 -33
  169. data/test/unit/core/shape/list/test_events.rb +7 -7
  170. data/test/unit/core/shape/list/test_format.rb +16 -18
  171. data/test/unit/core/shape/list/test_manager.rb +5 -5
  172. data/test/unit/core/shape/list/test_page.rb +80 -22
  173. data/test/unit/core/shape/list/test_page_state.rb +12 -12
  174. data/test/unit/core/shape/list/test_section_format.rb +16 -17
  175. data/test/unit/core/shape/list/test_section_interface.rb +30 -22
  176. data/test/unit/core/shape/list/test_section_internal.rb +21 -19
  177. data/test/unit/core/shape/list/test_store.rb +7 -7
  178. data/test/unit/core/shape/manager/test_format.rb +11 -15
  179. data/test/unit/core/shape/manager/test_internal.rb +9 -9
  180. data/test/unit/core/shape/manager/test_target.rb +85 -57
  181. data/test/unit/core/shape/page_number/test_format.rb +4 -4
  182. data/test/unit/core/shape/page_number/test_interface.rb +11 -8
  183. data/test/unit/core/shape/page_number/test_internal.rb +5 -5
  184. data/test/unit/core/shape/styles/test_base.rb +9 -9
  185. data/test/unit/core/shape/styles/test_basic.rb +5 -5
  186. data/test/unit/core/shape/styles/test_graphic.rb +19 -33
  187. data/test/unit/core/shape/styles/test_text.rb +18 -7
  188. data/test/unit/core/shape/text/test_format.rb +6 -6
  189. data/test/unit/core/shape/text/test_internal.rb +11 -12
  190. data/test/unit/core/shape/text_block/formatter/test_basic.rb +16 -16
  191. data/test/unit/core/shape/text_block/formatter/test_datetime.rb +4 -4
  192. data/test/unit/core/shape/text_block/formatter/test_number.rb +34 -34
  193. data/test/unit/core/shape/text_block/formatter/test_padding.rb +44 -44
  194. data/test/unit/core/shape/text_block/test_format.rb +8 -8
  195. data/test/unit/core/shape/text_block/test_formatter.rb +17 -17
  196. data/test/unit/core/shape/text_block/test_interface.rb +37 -20
  197. data/test/unit/core/shape/text_block/test_internal.rb +38 -38
  198. data/test/unit/core/test_events.rb +5 -5
  199. data/test/unit/core/test_shape.rb +6 -6
  200. data/test/unit/core/test_utils.rb +68 -0
  201. data/test/unit/generator/pdf/document/graphics/test_attributes.rb +4 -4
  202. data/test/unit/generator/pdf/document/graphics/test_text.rb +60 -53
  203. data/test/unit/generator/pdf/document/test_draw_shape.rb +9 -7
  204. data/test/unit/generator/pdf/document/test_font.rb +79 -58
  205. data/test/unit/generator/pdf/document/test_graphics.rb +18 -19
  206. data/test/unit/generator/pdf/document/test_page.rb +44 -45
  207. data/test/unit/generator/pdf/document/test_parse_color.rb +5 -5
  208. data/test/unit/generator/pdf/test_configuration.rb +16 -9
  209. data/test/unit/generator/pdf/test_document.rb +8 -16
  210. data/test/unit/generator/test_base.rb +31 -42
  211. data/test/unit/generator/test_configuration.rb +6 -6
  212. data/test/unit/generator/test_pdf.rb +17 -14
  213. data/test/unit/layout/test_base.rb +34 -79
  214. data/test/unit/layout/test_configuration.rb +12 -37
  215. data/test/unit/layout/test_format.rb +36 -39
  216. data/test/unit/layout/test_version.rb +4 -4
  217. data/test/unit/report/test_base.rb +134 -213
  218. data/test/unit/report/test_events.rb +4 -4
  219. data/test/unit/report/test_internal.rb +84 -86
  220. data/test/unit/test_config.rb +31 -12
  221. data/test/unit/test_layout.rb +7 -7
  222. data/test/unit/test_report.rb +12 -24
  223. data/thinreports.gemspec +18 -22
  224. metadata +101 -200
  225. data/LICENSE +0 -1
  226. data/README.rdoc +0 -166
  227. data/doc/yardoc_templates/default/layout/html/footer.erb +0 -10
  228. data/lib/thinreports/core.rb +0 -20
  229. data/lib/thinreports/core/ext.rb +0 -5
  230. data/lib/thinreports/core/ext/array.rb +0 -19
  231. data/lib/thinreports/core/ext/hash.rb +0 -19
  232. data/lib/thinreports/core/ext/object.rb +0 -25
  233. data/lib/thinreports/core/format.rb +0 -14
  234. data/lib/thinreports/core/ordered_hash.rb +0 -39
  235. data/lib/thinreports/generator/pdf/drawer.rb +0 -16
  236. data/tasks/doc.rake +0 -12
  237. data/tasks/test.rake +0 -56
  238. data/test/benchmark/basic_estimate.tlf +0 -1
  239. data/test/benchmark/bench_basic_estimate.rb +0 -95
  240. data/test/case/character_spacing/character_spacing.rb +0 -8
  241. data/test/case/character_spacing/character_spacing.tlf +0 -1
  242. data/test/case/dynamic_image/dynamic_image.rb +0 -41
  243. data/test/case/dynamic_image/dynamic_image.tlf +0 -1
  244. data/test/case/dynamic_style/dynamic_style.rb +0 -154
  245. data/test/case/dynamic_style/dynamic_style.tlf +0 -1
  246. data/test/case/dynamic_style/dynamic_style_in_list.tlf +0 -1
  247. data/test/case/eudc/eudc.rb +0 -20
  248. data/test/case/eudc/eudc.tlf +0 -1
  249. data/test/case/hidden_shapes/hidden_shapes.rb +0 -9
  250. data/test/case/hidden_shapes/hidden_shapes.tlf +0 -1
  251. data/test/case/list_events/list_events.rb +0 -32
  252. data/test/case/list_events/list_events.tlf +0 -1
  253. data/test/case/list_manual_generation/list_manual_generation.tlf +0 -1
  254. data/test/case/list_page_number/list_page_number.tlf +0 -1
  255. data/test/case/page_number/page_number.rb +0 -33
  256. data/test/case/page_number/page_number.tlf +0 -1
  257. data/test/case/password_setting/password_setting.rb +0 -10
  258. data/test/case/password_setting/password_setting.tlf +0 -1
  259. data/test/case/single_line_tblock/single_line_tblock.tlf +0 -1
  260. data/test/case/tblock_overflow/tblock_overflow.rb +0 -20
  261. data/test/case/tblock_overflow/tblock_overflow.tlf +0 -1
  262. data/test/case/tblock_styles/tblock_styles.rb +0 -27
  263. data/test/case/tblock_styles/tblock_styles.tlf +0 -1
  264. data/test/case/text_align/text_align.rb +0 -8
  265. data/test/case/text_align/text_align.tlf +0 -1
  266. data/test/case/typeB_page_size/B4_ISO.tlf +0 -1
  267. data/test/case/typeB_page_size/B4_JIS.tlf +0 -1
  268. data/test/case/word_wrap/word_wrap.rb +0 -26
  269. data/test/case/word_wrap/word_wrap.tlf +0 -1
  270. data/test/unit/core/ext/array_spec.rb +0 -29
  271. data/test/unit/core/ext/hash_spec.rb +0 -29
  272. data/test/unit/core/ext/object_spec.rb +0 -30
  273. data/test/unit/core/ordered_hash_spec.rb +0 -51
  274. data/test/unit/core/shape/base/test_interface.rb +0 -52
  275. data/test/unit/core/utils_spec.rb +0 -56
  276. data/test/unit/data/basic_layout1.tlf +0 -1
  277. data/test/unit/data/basic_layout2.tlf +0 -1
  278. data/test/unit/data/basic_list_layout.tlf +0 -1
  279. data/test/unit/data/basic_list_noheader_layout.tlf +0 -1
  280. data/test/unit/helper.rb +0 -87
data/thinreports.gemspec CHANGED
@@ -5,33 +5,29 @@ require 'thinreports/version'
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = 'thinreports'
8
- s.version = ThinReports::VERSION
8
+ s.version = Thinreports::VERSION
9
9
  s.author = 'Matsukei Co.,Ltd.'
10
- s.email = 'thinreports@matsukei.co.jp'
11
- s.summary = 'Reporting solution for Ruby and Rails.'
12
- s.description = 'ThinReports is Open Source Reporting Solution for Ruby. ' +
13
- 'It provides a GUI Designer and a Library for Ruby.'
14
- s.homepage = 'http://www.thinreports.org/'
10
+ s.email = 'thinreports@gmail.com'
11
+ s.summary = 'An open source report generation tool for Ruby.'
12
+ s.description = 'Thinreports is an open source report generation tool for Ruby.'
13
+ s.homepage = 'http://www.thinreports.org'
15
14
  s.licenses = ['MIT']
16
-
15
+
17
16
  s.platform = Gem::Platform::RUBY
18
- s.required_ruby_version = '>= 1.8.7'
17
+ s.required_ruby_version = '>= 1.9.3'
19
18
 
20
- s.rdoc_options = ['--main', 'README.rdoc']
21
- s.extra_rdoc_files = ['README.rdoc']
19
+ s.rdoc_options = ['--main', 'README.md']
20
+ s.extra_rdoc_files = ['README.md']
22
21
 
23
22
  s.files = `git ls-files`.split($\)
24
- s.test_files = s.files.grep(%r{^test/})
23
+ s.test_files = s.files.grep %r{^test/}
25
24
  s.require_paths = ['lib']
26
-
27
- s.add_dependency('prawn', '0.12.0')
28
-
29
- s.add_development_dependency('bundler', ['>= 1.0.0'])
30
- s.add_development_dependency('minitest', ['~> 4.7'])
31
- s.add_development_dependency('flexmock', ['< 1.3.0'])
32
- s.add_development_dependency('yard', ['>= 0.8.7'])
33
- s.add_development_dependency('rake', ['>= 0'])
34
- s.add_development_dependency('turn', ['>= 0'])
35
- s.add_development_dependency('simplecov', ['>= 0'])
36
- s.add_development_dependency('pdf-inspector', ['>= 0'])
25
+
26
+ s.add_dependency 'prawn', '1.3.0'
27
+
28
+ s.add_development_dependency 'bundler', ['>= 1.0.0']
29
+ s.add_development_dependency 'minitest', ['>= 5.0.0']
30
+ s.add_development_dependency 'mocha', ['>= 0']
31
+ s.add_development_dependency 'rake', ['>= 0']
32
+ s.add_development_dependency 'yard'
37
33
  end
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.7.7
4
+ version: 0.8.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: 2014-01-29 00:00:00.000000000 Z
11
+ date: 2015-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: prawn
@@ -16,156 +16,152 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.12.0
19
+ version: 1.3.0
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: 0.12.0
26
+ version: 1.3.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.0.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.0.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: '4.7'
47
+ version: 5.0.0
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: '4.7'
54
+ version: 5.0.0
55
55
  - !ruby/object:Gem::Dependency
56
- name: flexmock
56
+ name: mocha
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - <
60
- - !ruby/object:Gem::Version
61
- version: 1.3.0
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - <
67
- - !ruby/object:Gem::Version
68
- version: 1.3.0
69
- - !ruby/object:Gem::Dependency
70
- name: yard
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - '>='
74
- - !ruby/object:Gem::Version
75
- version: 0.8.7
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - '>='
81
- - !ruby/object:Gem::Version
82
- version: 0.8.7
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: turn
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - '>='
59
+ - - ">="
102
60
  - !ruby/object:Gem::Version
103
61
  version: '0'
104
62
  type: :development
105
63
  prerelease: false
106
64
  version_requirements: !ruby/object:Gem::Requirement
107
65
  requirements:
108
- - - '>='
66
+ - - ">="
109
67
  - !ruby/object:Gem::Version
110
68
  version: '0'
111
69
  - !ruby/object:Gem::Dependency
112
- name: simplecov
70
+ name: rake
113
71
  requirement: !ruby/object:Gem::Requirement
114
72
  requirements:
115
- - - '>='
73
+ - - ">="
116
74
  - !ruby/object:Gem::Version
117
75
  version: '0'
118
76
  type: :development
119
77
  prerelease: false
120
78
  version_requirements: !ruby/object:Gem::Requirement
121
79
  requirements:
122
- - - '>='
80
+ - - ">="
123
81
  - !ruby/object:Gem::Version
124
82
  version: '0'
125
83
  - !ruby/object:Gem::Dependency
126
- name: pdf-inspector
84
+ name: yard
127
85
  requirement: !ruby/object:Gem::Requirement
128
86
  requirements:
129
- - - '>='
87
+ - - ">="
130
88
  - !ruby/object:Gem::Version
131
89
  version: '0'
132
90
  type: :development
133
91
  prerelease: false
134
92
  version_requirements: !ruby/object:Gem::Requirement
135
93
  requirements:
136
- - - '>='
94
+ - - ">="
137
95
  - !ruby/object:Gem::Version
138
96
  version: '0'
139
- description: ThinReports is Open Source Reporting Solution for Ruby. It provides a
140
- GUI Designer and a Library for Ruby.
141
- email: thinreports@matsukei.co.jp
97
+ description: Thinreports is an open source report generation tool for Ruby.
98
+ email: thinreports@gmail.com
142
99
  executables: []
143
100
  extensions: []
144
101
  extra_rdoc_files:
145
- - README.rdoc
102
+ - README.md
146
103
  files:
147
- - .gitignore
148
- - .travis.yml
104
+ - ".gitignore"
105
+ - ".travis.yml"
106
+ - CHANGELOG.md
149
107
  - Gemfile
150
- - LICENSE
151
108
  - MIT-LICENSE
152
- - README.rdoc
109
+ - README.md
153
110
  - Rakefile
154
- - doc/yardoc_templates/default/layout/html/footer.erb
111
+ - examples/character_spacing/character_spacing.rb
112
+ - examples/character_spacing/character_spacing.tlf
113
+ - examples/dynamic_image/dynamic_image.rb
114
+ - examples/dynamic_image/dynamic_image.tlf
115
+ - examples/dynamic_image/img200x100.png
116
+ - examples/dynamic_image/img50x50.png
117
+ - examples/dynamic_style/dynamic_style.rb
118
+ - examples/dynamic_style/dynamic_style.tlf
119
+ - examples/dynamic_style/dynamic_style_in_list.tlf
120
+ - examples/dynamic_style/image.png
121
+ - examples/eudc/eudc.rb
122
+ - examples/eudc/eudc.tlf
123
+ - examples/eudc/eudc.ttf
124
+ - examples/helper.rb
125
+ - examples/hidden_shapes/hidden_shapes.rb
126
+ - examples/hidden_shapes/hidden_shapes.tlf
127
+ - examples/list_events/list_events.rb
128
+ - examples/list_events/list_events_0_7_7.tlf
129
+ - examples/list_events/list_events_0_8.tlf
130
+ - examples/list_manual_generation/list_manual_generation.rb
131
+ - examples/list_manual_generation/list_manual_generation.tlf
132
+ - examples/list_page_number/list_page_number.rb
133
+ - examples/list_page_number/list_page_number.tlf
134
+ - examples/page_number/page_number.rb
135
+ - examples/page_number/page_number.tlf
136
+ - examples/password_setting/password_setting.rb
137
+ - examples/password_setting/password_setting.tlf
138
+ - examples/report_callbacks/report_callbacks.rb
139
+ - examples/report_callbacks/report_callbacks.tlf
140
+ - examples/single_line_tblock/single_line_tblock.rb
141
+ - examples/single_line_tblock/single_line_tblock.tlf
142
+ - examples/tblock_overflow/tblock_overflow.rb
143
+ - examples/tblock_overflow/tblock_overflow.tlf
144
+ - examples/tblock_styles/font_size.tlf
145
+ - examples/tblock_styles/tblock_styles.rb
146
+ - examples/tblock_styles/tblock_styles.tlf
147
+ - examples/text_align/text_align.rb
148
+ - examples/text_align/text_align.tlf
149
+ - examples/typeB_page_size/B4_ISO.tlf
150
+ - examples/typeB_page_size/B4_JIS.tlf
151
+ - examples/typeB_page_size/typeB_page_size.rb
152
+ - examples/word_wrap/word_wrap.rb
153
+ - examples/word_wrap/word_wrap.tlf
154
+ - fonts/IPA_Font_License_Agreement_v1.0.txt
155
+ - fonts/ipag.ttf
156
+ - fonts/ipagp.ttf
157
+ - fonts/ipam.ttf
158
+ - fonts/ipamp.ttf
155
159
  - lib/thinreports.rb
156
160
  - lib/thinreports/config.rb
157
- - lib/thinreports/core.rb
158
161
  - lib/thinreports/core/errors.rb
159
162
  - lib/thinreports/core/events.rb
160
- - lib/thinreports/core/ext.rb
161
- - lib/thinreports/core/ext/array.rb
162
- - lib/thinreports/core/ext/hash.rb
163
- - lib/thinreports/core/ext/object.rb
164
- - lib/thinreports/core/format.rb
165
163
  - lib/thinreports/core/format/base.rb
166
164
  - lib/thinreports/core/format/builder.rb
167
- - lib/thinreports/core/ordered_hash.rb
168
- - lib/thinreports/core/page.rb
169
165
  - lib/thinreports/core/shape.rb
170
166
  - lib/thinreports/core/shape/base.rb
171
167
  - lib/thinreports/core/shape/base/interface.rb
@@ -235,7 +231,6 @@ files:
235
231
  - lib/thinreports/generator/pdf/document/page.rb
236
232
  - lib/thinreports/generator/pdf/document/parse_color.rb
237
233
  - lib/thinreports/generator/pdf/document/parse_svg.rb
238
- - lib/thinreports/generator/pdf/drawer.rb
239
234
  - lib/thinreports/generator/pdf/drawer/base.rb
240
235
  - lib/thinreports/generator/pdf/drawer/list.rb
241
236
  - lib/thinreports/generator/pdf/drawer/list_section.rb
@@ -250,62 +245,18 @@ files:
250
245
  - lib/thinreports/report/base.rb
251
246
  - lib/thinreports/report/events.rb
252
247
  - lib/thinreports/report/internal.rb
248
+ - lib/thinreports/report/page.rb
253
249
  - lib/thinreports/version.rb
254
- - resources/fonts/IPA_Font_License_Agreement_v1.0.txt
255
- - resources/fonts/ipag.ttf
256
- - resources/fonts/ipagp.ttf
257
- - resources/fonts/ipam.ttf
258
- - resources/fonts/ipamp.ttf
259
- - tasks/doc.rake
260
- - tasks/test.rake
261
- - test/benchmark/basic_estimate.tlf
262
- - test/benchmark/bench_basic_estimate.rb
263
- - test/case/character_spacing/character_spacing.rb
264
- - test/case/character_spacing/character_spacing.tlf
265
- - test/case/dynamic_image/dynamic_image.rb
266
- - test/case/dynamic_image/dynamic_image.tlf
267
- - test/case/dynamic_image/img200x100.png
268
- - test/case/dynamic_image/img50x50.png
269
- - test/case/dynamic_style/dynamic_style.rb
270
- - test/case/dynamic_style/dynamic_style.tlf
271
- - test/case/dynamic_style/dynamic_style_in_list.tlf
272
- - test/case/dynamic_style/image.png
273
- - test/case/eudc/eudc.rb
274
- - test/case/eudc/eudc.tlf
275
- - test/case/eudc/eudc.ttf
276
- - test/case/helper.rb
277
- - test/case/hidden_shapes/hidden_shapes.rb
278
- - test/case/hidden_shapes/hidden_shapes.tlf
279
- - test/case/list_events/list_events.rb
280
- - test/case/list_events/list_events.tlf
281
- - test/case/list_manual_generation/list_manual_generation.rb
282
- - test/case/list_manual_generation/list_manual_generation.tlf
283
- - test/case/list_page_number/list_page_number.rb
284
- - test/case/list_page_number/list_page_number.tlf
285
- - test/case/page_number/page_number.rb
286
- - test/case/page_number/page_number.tlf
287
- - test/case/password_setting/password_setting.rb
288
- - test/case/password_setting/password_setting.tlf
289
- - test/case/single_line_tblock/single_line_tblock.rb
290
- - test/case/single_line_tblock/single_line_tblock.tlf
291
- - test/case/tblock_overflow/tblock_overflow.rb
292
- - test/case/tblock_overflow/tblock_overflow.tlf
293
- - test/case/tblock_styles/tblock_styles.rb
294
- - test/case/tblock_styles/tblock_styles.tlf
295
- - test/case/text_align/text_align.rb
296
- - test/case/text_align/text_align.tlf
297
- - test/case/typeB_page_size/B4_ISO.tlf
298
- - test/case/typeB_page_size/B4_JIS.tlf
299
- - test/case/typeB_page_size/typeB_page_size.rb
300
- - test/case/word_wrap/word_wrap.rb
301
- - test/case/word_wrap/word_wrap.tlf
302
- - test/unit/core/ext/array_spec.rb
303
- - test/unit/core/ext/hash_spec.rb
304
- - test/unit/core/ext/object_spec.rb
250
+ - test/data/font.ttf
251
+ - test/data/layout_block.tlf
252
+ - test/data/layout_list.tlf
253
+ - test/data/layout_list_noheader.tlf
254
+ - test/data/layout_text1.tlf
255
+ - test/data/layout_text2.tlf
256
+ - test/test_helper.rb
257
+ - test/tmp/.gitkeep
305
258
  - test/unit/core/format/test_base.rb
306
259
  - test/unit/core/format/test_builder.rb
307
- - test/unit/core/ordered_hash_spec.rb
308
- - test/unit/core/shape/base/test_interface.rb
309
260
  - test/unit/core/shape/base/test_internal.rb
310
261
  - test/unit/core/shape/basic/test_basic_format.rb
311
262
  - test/unit/core/shape/basic/test_basic_interface.rb
@@ -348,11 +299,7 @@ files:
348
299
  - test/unit/core/shape/text_block/test_internal.rb
349
300
  - test/unit/core/test_events.rb
350
301
  - test/unit/core/test_shape.rb
351
- - test/unit/core/utils_spec.rb
352
- - test/unit/data/basic_layout1.tlf
353
- - test/unit/data/basic_layout2.tlf
354
- - test/unit/data/basic_list_layout.tlf
355
- - test/unit/data/basic_list_noheader_layout.tlf
302
+ - test/unit/core/test_utils.rb
356
303
  - test/unit/generator/pdf/document/graphics/test_attributes.rb
357
304
  - test/unit/generator/pdf/document/graphics/test_text.rb
358
305
  - test/unit/generator/pdf/document/test_draw_shape.rb
@@ -365,7 +312,6 @@ files:
365
312
  - test/unit/generator/test_base.rb
366
313
  - test/unit/generator/test_configuration.rb
367
314
  - test/unit/generator/test_pdf.rb
368
- - test/unit/helper.rb
369
315
  - test/unit/layout/test_base.rb
370
316
  - test/unit/layout/test_configuration.rb
371
317
  - test/unit/layout/test_format.rb
@@ -376,83 +322,44 @@ files:
376
322
  - test/unit/test_config.rb
377
323
  - test/unit/test_layout.rb
378
324
  - test/unit/test_report.rb
379
- - test/unit/tmp/.gitkeep
380
325
  - thinreports.gemspec
381
- homepage: http://www.thinreports.org/
326
+ homepage: http://www.thinreports.org
382
327
  licenses:
383
328
  - MIT
384
329
  metadata: {}
385
330
  post_install_message:
386
331
  rdoc_options:
387
- - --main
388
- - README.rdoc
332
+ - "--main"
333
+ - README.md
389
334
  require_paths:
390
335
  - lib
391
336
  required_ruby_version: !ruby/object:Gem::Requirement
392
337
  requirements:
393
- - - '>='
338
+ - - ">="
394
339
  - !ruby/object:Gem::Version
395
- version: 1.8.7
340
+ version: 1.9.3
396
341
  required_rubygems_version: !ruby/object:Gem::Requirement
397
342
  requirements:
398
- - - '>='
343
+ - - ">="
399
344
  - !ruby/object:Gem::Version
400
345
  version: '0'
401
346
  requirements: []
402
347
  rubyforge_project:
403
- rubygems_version: 2.0.3
348
+ rubygems_version: 2.4.6
404
349
  signing_key:
405
350
  specification_version: 4
406
- summary: Reporting solution for Ruby and Rails.
351
+ summary: An open source report generation tool for Ruby.
407
352
  test_files:
408
- - test/benchmark/basic_estimate.tlf
409
- - test/benchmark/bench_basic_estimate.rb
410
- - test/case/character_spacing/character_spacing.rb
411
- - test/case/character_spacing/character_spacing.tlf
412
- - test/case/dynamic_image/dynamic_image.rb
413
- - test/case/dynamic_image/dynamic_image.tlf
414
- - test/case/dynamic_image/img200x100.png
415
- - test/case/dynamic_image/img50x50.png
416
- - test/case/dynamic_style/dynamic_style.rb
417
- - test/case/dynamic_style/dynamic_style.tlf
418
- - test/case/dynamic_style/dynamic_style_in_list.tlf
419
- - test/case/dynamic_style/image.png
420
- - test/case/eudc/eudc.rb
421
- - test/case/eudc/eudc.tlf
422
- - test/case/eudc/eudc.ttf
423
- - test/case/helper.rb
424
- - test/case/hidden_shapes/hidden_shapes.rb
425
- - test/case/hidden_shapes/hidden_shapes.tlf
426
- - test/case/list_events/list_events.rb
427
- - test/case/list_events/list_events.tlf
428
- - test/case/list_manual_generation/list_manual_generation.rb
429
- - test/case/list_manual_generation/list_manual_generation.tlf
430
- - test/case/list_page_number/list_page_number.rb
431
- - test/case/list_page_number/list_page_number.tlf
432
- - test/case/page_number/page_number.rb
433
- - test/case/page_number/page_number.tlf
434
- - test/case/password_setting/password_setting.rb
435
- - test/case/password_setting/password_setting.tlf
436
- - test/case/single_line_tblock/single_line_tblock.rb
437
- - test/case/single_line_tblock/single_line_tblock.tlf
438
- - test/case/tblock_overflow/tblock_overflow.rb
439
- - test/case/tblock_overflow/tblock_overflow.tlf
440
- - test/case/tblock_styles/tblock_styles.rb
441
- - test/case/tblock_styles/tblock_styles.tlf
442
- - test/case/text_align/text_align.rb
443
- - test/case/text_align/text_align.tlf
444
- - test/case/typeB_page_size/B4_ISO.tlf
445
- - test/case/typeB_page_size/B4_JIS.tlf
446
- - test/case/typeB_page_size/typeB_page_size.rb
447
- - test/case/word_wrap/word_wrap.rb
448
- - test/case/word_wrap/word_wrap.tlf
449
- - test/unit/core/ext/array_spec.rb
450
- - test/unit/core/ext/hash_spec.rb
451
- - test/unit/core/ext/object_spec.rb
353
+ - test/data/font.ttf
354
+ - test/data/layout_block.tlf
355
+ - test/data/layout_list.tlf
356
+ - test/data/layout_list_noheader.tlf
357
+ - test/data/layout_text1.tlf
358
+ - test/data/layout_text2.tlf
359
+ - test/test_helper.rb
360
+ - test/tmp/.gitkeep
452
361
  - test/unit/core/format/test_base.rb
453
362
  - test/unit/core/format/test_builder.rb
454
- - test/unit/core/ordered_hash_spec.rb
455
- - test/unit/core/shape/base/test_interface.rb
456
363
  - test/unit/core/shape/base/test_internal.rb
457
364
  - test/unit/core/shape/basic/test_basic_format.rb
458
365
  - test/unit/core/shape/basic/test_basic_interface.rb
@@ -495,11 +402,7 @@ test_files:
495
402
  - test/unit/core/shape/text_block/test_internal.rb
496
403
  - test/unit/core/test_events.rb
497
404
  - test/unit/core/test_shape.rb
498
- - test/unit/core/utils_spec.rb
499
- - test/unit/data/basic_layout1.tlf
500
- - test/unit/data/basic_layout2.tlf
501
- - test/unit/data/basic_list_layout.tlf
502
- - test/unit/data/basic_list_noheader_layout.tlf
405
+ - test/unit/core/test_utils.rb
503
406
  - test/unit/generator/pdf/document/graphics/test_attributes.rb
504
407
  - test/unit/generator/pdf/document/graphics/test_text.rb
505
408
  - test/unit/generator/pdf/document/test_draw_shape.rb
@@ -512,7 +415,6 @@ test_files:
512
415
  - test/unit/generator/test_base.rb
513
416
  - test/unit/generator/test_configuration.rb
514
417
  - test/unit/generator/test_pdf.rb
515
- - test/unit/helper.rb
516
418
  - test/unit/layout/test_base.rb
517
419
  - test/unit/layout/test_configuration.rb
518
420
  - test/unit/layout/test_format.rb
@@ -523,5 +425,4 @@ test_files:
523
425
  - test/unit/test_config.rb
524
426
  - test/unit/test_layout.rb
525
427
  - test/unit/test_report.rb
526
- - test/unit/tmp/.gitkeep
527
428
  has_rdoc: