thinreports 0.10.3 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +39 -0
  3. data/CHANGELOG.md +20 -0
  4. data/Dockerfile +12 -0
  5. data/Gemfile +5 -0
  6. data/README.md +37 -13
  7. data/Rakefile +1 -0
  8. data/lib/thinreports/core/shape/image_block.rb +1 -1
  9. data/lib/thinreports/core/shape/list.rb +1 -1
  10. data/lib/thinreports/core/shape/page_number.rb +1 -1
  11. data/lib/thinreports/core/shape/text.rb +1 -1
  12. data/lib/thinreports/core/shape/text_block.rb +1 -1
  13. data/lib/thinreports/core/shape/text_block/formatter/number.rb +6 -1
  14. data/lib/thinreports/core/shape/text_block/internal.rb +0 -2
  15. data/lib/thinreports/generator/pdf/prawn_ext/width_of.rb +6 -0
  16. data/lib/thinreports/layout/base.rb +1 -1
  17. data/lib/thinreports/layout/version.rb +1 -1
  18. data/lib/thinreports/report/internal.rb +2 -0
  19. data/lib/thinreports/version.rb +1 -1
  20. data/thinreports.gemspec +5 -9
  21. metadata +6 -204
  22. data/.travis.yml +0 -32
  23. data/test/data/font.ttf +0 -0
  24. data/test/data/image_normal.jpg +0 -0
  25. data/test/data/image_normal.png +0 -0
  26. data/test/data/image_normal_jpg_noext +0 -0
  27. data/test/data/image_normal_png_noext +0 -0
  28. data/test/data/image_pallete_based.png +0 -0
  29. data/test/data/legacy_layout/all-items.tlf +0 -1
  30. data/test/features/dynamic_style/expect.pdf +0 -3714
  31. data/test/features/dynamic_style/image.png +0 -0
  32. data/test/features/dynamic_style/templates/styles.tlf +0 -1835
  33. data/test/features/dynamic_style/templates/styles_in_list.tlf +0 -344
  34. data/test/features/dynamic_style/test_dynamic_style.rb +0 -152
  35. data/test/features/eudc/eudc.ttf +0 -0
  36. data/test/features/eudc/expect.pdf +0 -0
  37. data/test/features/eudc/template.tlf +0 -180
  38. data/test/features/eudc/test_eudc.rb +0 -27
  39. data/test/features/feature_test.rb +0 -58
  40. data/test/features/graphics/expect.pdf +0 -475
  41. data/test/features/graphics/template.tlf +0 -309
  42. data/test/features/graphics/test_graphics.rb +0 -12
  43. data/test/features/hidden_item/expect.pdf +0 -0
  44. data/test/features/hidden_item/template.tlf +0 -449
  45. data/test/features/hidden_item/test_hidden_item.rb +0 -12
  46. data/test/features/image_block/expect.pdf +0 -0
  47. data/test/features/image_block/img200x100.png +0 -0
  48. data/test/features/image_block/img50x50.png +0 -0
  49. data/test/features/image_block/template.tlf +0 -661
  50. data/test/features/image_block/test_image_block.rb +0 -35
  51. data/test/features/list_events/expect.pdf +0 -659
  52. data/test/features/list_events/template.tlf +0 -361
  53. data/test/features/list_events/test_list_events.rb +0 -36
  54. data/test/features/list_manually/expect.pdf +0 -599
  55. data/test/features/list_manually/template.tlf +0 -132
  56. data/test/features/list_manually/test_list_manually.rb +0 -25
  57. data/test/features/page_number/expect.pdf +0 -400
  58. data/test/features/page_number/template.tlf +0 -215
  59. data/test/features/page_number/test_page_number.rb +0 -24
  60. data/test/features/page_number_with_list/expect.pdf +0 -721
  61. data/test/features/page_number_with_list/template.tlf +0 -254
  62. data/test/features/page_number_with_list/test_page_number_with_list.rb +0 -21
  63. data/test/features/palleted_png/expect.pdf +0 -0
  64. data/test/features/palleted_png/palleted_png.png +0 -0
  65. data/test/features/palleted_png/template.tlf +0 -47
  66. data/test/features/palleted_png/test_palleted_png.rb +0 -14
  67. data/test/features/report_callbacks/expect.pdf +0 -169
  68. data/test/features/report_callbacks/template.tlf +0 -147
  69. data/test/features/report_callbacks/test_report_callbacks.rb +0 -18
  70. data/test/features/text_align/expect.pdf +0 -0
  71. data/test/features/text_align/template.tlf +0 -241
  72. data/test/features/text_align/test_text_align.rb +0 -12
  73. data/test/features/text_block_overflow/expect.pdf +0 -0
  74. data/test/features/text_block_overflow/template.tlf +0 -538
  75. data/test/features/text_block_overflow/test_text_block_overflow.rb +0 -25
  76. data/test/features/text_block_singleline/expect.pdf +0 -0
  77. data/test/features/text_block_singleline/template.tlf +0 -170
  78. data/test/features/text_block_singleline/test_text_block_singleline.rb +0 -15
  79. data/test/features/text_block_style/expect.pdf +0 -1391
  80. data/test/features/text_block_style/templates/basic_styles.tlf +0 -889
  81. data/test/features/text_block_style/templates/font_size.tlf +0 -383
  82. data/test/features/text_block_style/test_text_block_style.rb +0 -47
  83. data/test/features/text_character_spacing/expect.pdf +0 -0
  84. data/test/features/text_character_spacing/template.tlf +0 -293
  85. data/test/features/text_character_spacing/test_text_character_spacing.rb +0 -12
  86. data/test/features/text_word_wrap/expect.pdf +0 -0
  87. data/test/features/text_word_wrap/template.tlf +0 -297
  88. data/test/features/text_word_wrap/test_text_word_wrap.rb +0 -30
  89. data/test/schema_helper.rb +0 -122
  90. data/test/test_helper.rb +0 -39
  91. data/test/units/core/format/test_base.rb +0 -152
  92. data/test/units/core/shape/base/test_internal.rb +0 -87
  93. data/test/units/core/shape/basic/test_block_format.rb +0 -23
  94. data/test/units/core/shape/basic/test_block_interface.rb +0 -29
  95. data/test/units/core/shape/basic/test_block_internal.rb +0 -55
  96. data/test/units/core/shape/basic/test_format.rb +0 -37
  97. data/test/units/core/shape/basic/test_interface.rb +0 -108
  98. data/test/units/core/shape/basic/test_internal.rb +0 -55
  99. data/test/units/core/shape/image_block/test_interface.rb +0 -24
  100. data/test/units/core/shape/image_block/test_internal.rb +0 -31
  101. data/test/units/core/shape/list/test_format.rb +0 -111
  102. data/test/units/core/shape/list/test_manager.rb +0 -67
  103. data/test/units/core/shape/list/test_page.rb +0 -156
  104. data/test/units/core/shape/list/test_page_state.rb +0 -31
  105. data/test/units/core/shape/list/test_section_format.rb +0 -36
  106. data/test/units/core/shape/list/test_section_interface.rb +0 -75
  107. data/test/units/core/shape/list/test_section_internal.rb +0 -50
  108. data/test/units/core/shape/manager/test_format.rb +0 -38
  109. data/test/units/core/shape/manager/test_internal.rb +0 -132
  110. data/test/units/core/shape/manager/test_target.rb +0 -140
  111. data/test/units/core/shape/page_number/test_format.rb +0 -55
  112. data/test/units/core/shape/page_number/test_interface.rb +0 -33
  113. data/test/units/core/shape/page_number/test_internal.rb +0 -81
  114. data/test/units/core/shape/styles/test_base.rb +0 -191
  115. data/test/units/core/shape/styles/test_basic.rb +0 -24
  116. data/test/units/core/shape/styles/test_graphic.rb +0 -50
  117. data/test/units/core/shape/styles/test_text.rb +0 -97
  118. data/test/units/core/shape/text/test_format.rb +0 -44
  119. data/test/units/core/shape/text/test_internal.rb +0 -20
  120. data/test/units/core/shape/text_block/formatter/test_basic.rb +0 -24
  121. data/test/units/core/shape/text_block/formatter/test_datetime.rb +0 -49
  122. data/test/units/core/shape/text_block/formatter/test_number.rb +0 -76
  123. data/test/units/core/shape/text_block/formatter/test_padding.rb +0 -77
  124. data/test/units/core/shape/text_block/test_format.rb +0 -169
  125. data/test/units/core/shape/text_block/test_formatter.rb +0 -28
  126. data/test/units/core/shape/text_block/test_interface.rb +0 -63
  127. data/test/units/core/shape/text_block/test_internal.rb +0 -128
  128. data/test/units/core/test_shape.rb +0 -52
  129. data/test/units/core/test_utils.rb +0 -68
  130. data/test/units/generator/pdf/document/graphics/test_attributes.rb +0 -135
  131. data/test/units/generator/pdf/document/graphics/test_basic.rb +0 -46
  132. data/test/units/generator/pdf/document/graphics/test_image.rb +0 -46
  133. data/test/units/generator/pdf/document/graphics/test_text.rb +0 -171
  134. data/test/units/generator/pdf/document/test_font.rb +0 -110
  135. data/test/units/generator/pdf/document/test_graphics.rb +0 -42
  136. data/test/units/generator/pdf/document/test_page.rb +0 -122
  137. data/test/units/generator/pdf/document/test_parse_color.rb +0 -30
  138. data/test/units/generator/pdf/prawn_ext/test_calc_image_dimensions.rb +0 -41
  139. data/test/units/generator/pdf/prawn_ext/test_width_of.rb +0 -22
  140. data/test/units/generator/pdf/test_document.rb +0 -22
  141. data/test/units/generator/test_pdf.rb +0 -26
  142. data/test/units/layout/test_base.rb +0 -41
  143. data/test/units/layout/test_format.rb +0 -100
  144. data/test/units/layout/test_legacy_schema.rb +0 -576
  145. data/test/units/layout/test_version.rb +0 -26
  146. data/test/units/report/test_base.rb +0 -248
  147. data/test/units/report/test_internal.rb +0 -206
  148. data/test/units/test_config.rb +0 -36
  149. data/test/units/test_layout.rb +0 -12
  150. data/test/units/test_report.rb +0 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ff5ca20b68e3f8f628676d7be5d77c1da4e9aa4520a7eac0cc7bdfe13fe2a5b
4
- data.tar.gz: de2899e1abdde8986add98d6458721cd88fd7c8f6a795db0b8dac2f086a116a6
3
+ metadata.gz: b53f36fac9af329499239b3db9313911fba89c82dd28cf81ac2e9942bcdce13a
4
+ data.tar.gz: 38ce4e9d25a709240a1242948a33d96372e3cb6981b07e3121c88967279a3eed
5
5
  SHA512:
6
- metadata.gz: 03bbb8f4fc1a39ab33e91e5afc32622ecd10873053324cd8c097fd0b7ec97b01c56df746fb6a8ee26009cb0fa4e695c73b8557fdf9f092655bb8eaf8b7493c59
7
- data.tar.gz: 6904f289cf0585ad814e4e127ce2623439fbcf25d7dbaf4cc7faa2246b8811d085cf5e3e08d17bd244f97cb90643aec1e270fd32bad0d6d262c0f6691f4c8426
6
+ metadata.gz: 5db1f93781fd6be18f53424eb2853b6701449938f2dc2875f287be74720611361f5dc7b6f657ea9fd96ed83de8056efa92cd4ae7b5b8c0df3d11bb318a81f7d6
7
+ data.tar.gz: 25d1cc37589223ea85f574f7c6cf007a9e5682dff6f59051286c3fe691b5ab9704d9c5e40e8b3b9b49134406af538aa4e688a74d5416aa1082f6bc1330de173a
@@ -0,0 +1,39 @@
1
+ name: Test
2
+
3
+ on: push
4
+
5
+ jobs:
6
+ test:
7
+ name: Test against ${{ matrix.ruby }}
8
+ runs-on: ubuntu-latest
9
+ strategy:
10
+ matrix:
11
+ ruby:
12
+ - 2.4
13
+ - 2.5
14
+ - 2.6
15
+ - 2.7
16
+ - jruby
17
+
18
+ steps:
19
+ - uses: actions/checkout@v1
20
+
21
+ - name: Set up diff-pdf
22
+ run: |
23
+ sudo apt-get update
24
+ sudo apt-get install make automake g++ libpoppler-glib-dev poppler-utils libwxgtk3.0-dev
25
+ git clone https://github.com/vslavik/diff-pdf.git -b v0.4.1 --depth 1 /tmp/diff-pdf-src
26
+ cd /tmp/diff-pdf-src
27
+ ./bootstrap && ./configure && make && sudo make install
28
+
29
+ - name: Set up Ruby ${{ matrix.ruby }}
30
+ uses: ruby/setup-ruby@v1
31
+ with:
32
+ ruby-version: ${{ matrix.ruby }}
33
+
34
+ - name: Build and test with Rake
35
+ run: |
36
+ gem install bundler
37
+ bundle install --jobs 4 --retry 3
38
+ bundle exec rake test:units
39
+ bundle exec rake test:features
@@ -1,3 +1,23 @@
1
+ ## master
2
+
3
+ ## 0.11.0
4
+
5
+ Breaking Changes:
6
+
7
+ * Dropped Ruby 2.1 support
8
+ * Dropped Ruby 2.2 support
9
+ * Dropped Ruby 2.3 support
10
+ * Formatter of a text-block works even with multiple-line (#95)
11
+
12
+ Enhancements:
13
+
14
+ * Ruby 2.7.0 support
15
+ * Support Pathname layout option on `Thinreports::Report` #99 [@meganemura]
16
+
17
+ Bug Fixes:
18
+
19
+ * Fixed: thousands separation is applied to decimal part #95
20
+
1
21
  ## 0.10.3
2
22
 
3
23
  Bug Fixes:
@@ -0,0 +1,12 @@
1
+ FROM ruby:2.7.1
2
+
3
+ RUN apt-get update -qq && apt-get install -y build-essential xvfb
4
+
5
+ # Install diff-pdf
6
+ WORKDIR /tmp
7
+ RUN apt-get install -y libpoppler-glib-dev poppler-utils libwxgtk3.0-dev && curl -L https://github.com/vslavik/diff-pdf/archive/master.tar.gz -o diff-pdf-master.tar.gz && tar zxf diff-pdf-master.tar.gz && cd diff-pdf-master && ./bootstrap && ./configure && make && make install
8
+
9
+ RUN mkdir /thinreports
10
+
11
+ WORKDIR /thinreports
12
+ VOLUME /thinreports
data/Gemfile CHANGED
@@ -3,3 +3,8 @@
3
3
  source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
+
7
+ gem 'minitest', '>= 5.14.1'
8
+ gem 'mocha', '>= 1.11.2'
9
+ gem 'pdf-inspector', '>= 1.3.0'
10
+ gem 'rake', '>= 13.0.1'
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Thinreports Generator
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/thinreports.svg)](http://badge.fury.io/rb/thinreports)
4
- [![](http://img.shields.io/travis/thinreports/thinreports-generator.svg?style=flat)](http://travis-ci.org/thinreports/thinreports-generator)
4
+ [![Test](https://github.com/thinreports/thinreports-generator/workflows/Test/badge.svg)](https://github.com/thinreports/thinreports-generator/actions)
5
5
  [![Maintainability](https://api.codeclimate.com/v1/badges/054b400031608957ec4a/maintainability)](https://codeclimate.com/github/thinreports/thinreports-generator/maintainability)
6
6
 
7
7
  [Thinreports](http://www.thinreports.org) is an open source report generating tool for Ruby.
@@ -14,13 +14,12 @@
14
14
  * [Installation Guide](http://www.thinreports.org/documentation/getting-started/installation.html)
15
15
  * [Quick Start Guide](http://www.thinreports.org/documentation/getting-started/quickstart.html)
16
16
  * [Examples](https://github.com/thinreports/thinreports-examples)
17
- * [Rails5 Example](https://github.com/thinreports/thinreports-rails5-example)
18
17
  * [Changelog](https://github.com/thinreports/thinreports-generator/blob/master/CHANGELOG.md)
19
18
  * [Discussion Group](https://groups.google.com/forum/#!forum/thinreports)
20
19
 
21
20
  ## Supported versions
22
21
 
23
- * Ruby 2.1, 2.2, 2.3, 2.4, 2.5
22
+ * Ruby 2.4, 2.5, 2.6, 2.7
24
23
  * JRuby 9.2
25
24
 
26
25
  ## Quick Reference
@@ -261,19 +260,44 @@ Generator can dynamically:
261
260
 
262
261
  ## Contributing
263
262
 
264
- ### Report bug, post your suggestion
263
+ Bug reports and pull requests are welcome on GitHub at https://github.com/thinreports/thinreports-generator.
265
264
 
266
- If you find bugs or improvements for the Editor, please report it [here](https://github.com/thinreports/thinreports-generator/issues/new).
265
+ ## Development
267
266
 
268
- ### Sending a Pull Request
267
+ ### How to run feature tests
269
268
 
270
- 1. Fork it
271
- 2. Clone your forked repository
272
- 3. Create your feature branch: `git checkout -b my-new-feature`
273
- 4. Fix your feature
274
- 5. Commit your changes: `git commit -am 'Fixed some bugs or features'`
275
- 6. Push to the branch: `git push origin my-new-feature`
276
- 7. Create new Pull Request
269
+ ```
270
+ $ bundle exec rake test:features
271
+ ```
272
+
273
+ In order to run `test:features`, you need to install [diff-pdf](https://github.com/vslavik/diff-pdf) in your environment, or you can run test in the docker container as below.
274
+
275
+ ### How to develop in Docker container
276
+
277
+ You can use the Docker container for development. This container contains the libraries required for testing, such as diff-pdf.
278
+
279
+ ```
280
+ $ docker build -t thinreports-dev .
281
+ $ docker run -v $PWD:/thinreports:cached -it thinreports-dev bash
282
+
283
+ > /thinreports#
284
+ ```
285
+
286
+ You can run test:
287
+
288
+ ```
289
+ > /thinreports# bundle install
290
+ > /thinreports# bundle exec rake test:features
291
+ ```
292
+
293
+ ## Releasing Generator
294
+
295
+ 1. Update the version number in `version.rb`
296
+ 2. Update `CHANGELOG.md` and `README.md` (if needed)
297
+ 3. Create the Release PR like #105
298
+ 4. Merge the PR
299
+ 5. Is the master CI green? If not, make it green
300
+ 6. Run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to rubygems.org
277
301
 
278
302
  ## License
279
303
 
data/Rakefile CHANGED
@@ -1,3 +1,4 @@
1
+ require 'bundler/gem_tasks'
1
2
  require 'rake/testtask'
2
3
 
3
4
  task default: :test
@@ -4,7 +4,7 @@ module Thinreports
4
4
  module Core
5
5
  module Shape
6
6
  module ImageBlock
7
- TYPE_NAME = 'image-block'.freeze
7
+ TYPE_NAME = 'image-block'
8
8
  end
9
9
  end
10
10
  end
@@ -4,7 +4,7 @@ module Thinreports
4
4
  module Core
5
5
  module Shape
6
6
  module List
7
- TYPE_NAME = 'list'.freeze
7
+ TYPE_NAME = 'list'
8
8
  end
9
9
  end
10
10
  end
@@ -4,7 +4,7 @@ module Thinreports
4
4
  module Core
5
5
  module Shape
6
6
  module PageNumber
7
- TYPE_NAME = 'page-number'.freeze
7
+ TYPE_NAME = 'page-number'
8
8
  end
9
9
  end
10
10
  end
@@ -4,7 +4,7 @@ module Thinreports
4
4
  module Core
5
5
  module Shape
6
6
  module Text
7
- TYPE_NAME = 'text'.freeze
7
+ TYPE_NAME = 'text'
8
8
  end
9
9
  end
10
10
  end
@@ -4,7 +4,7 @@ module Thinreports
4
4
  module Core
5
5
  module Shape
6
6
  module TextBlock
7
- TYPE_NAME = 'text-block'.freeze
7
+ TYPE_NAME = 'text-block'
8
8
  end
9
9
  end
10
10
  end
@@ -35,7 +35,12 @@ module Thinreports
35
35
  end
36
36
 
37
37
  def number_with_delimiter(value, delimiter = ',')
38
- value.to_s.gsub(/(\d)(?=(\d{3})+(?!\d))/) { "#{$1}#{delimiter}" }
38
+ value_int, value_float = value.to_s.split('.')
39
+
40
+ [
41
+ value_int.gsub(/(\d)(?=(\d{3})+(?!\d))/) { "#{$1}#{delimiter}" },
42
+ value_float
43
+ ].compact.join('.')
39
44
  end
40
45
 
41
46
  def number_with_precision(value, precision = 3)
@@ -50,8 +50,6 @@ module Thinreports
50
50
  end
51
51
 
52
52
  def format_enabled?
53
- return false if multiple?
54
-
55
53
  if states.key?(:format_enabled)
56
54
  states[:format_enabled]
57
55
  else
@@ -4,6 +4,12 @@ module Thinreports
4
4
  module Generator
5
5
  module PrawnExt
6
6
  module WidthOf
7
+ # TODO: Remove this path when a version of prawn that includes the following PR is released:
8
+ # https://github.com/prawnpdf/prawn/pull/1117
9
+ #
10
+ # This PR makes this patch unnecessary.
11
+ #
12
+ #
7
13
  # Subtract the width of one character space from the string width calculation result.
8
14
  #
9
15
  # The original Prawn::Document#width_of returns the following result:
@@ -3,7 +3,7 @@
3
3
  module Thinreports
4
4
  module Layout
5
5
  class Base
6
- EXT_NAME = 'tlf'.freeze
6
+ EXT_NAME = 'tlf'
7
7
  include Utils
8
8
 
9
9
  class << self
@@ -4,7 +4,7 @@ module Thinreports
4
4
  module Layout
5
5
  class Version
6
6
  COMPATIBLE_RULES = ['>= 0.8.0', '< 1.0.0'].freeze
7
- NEW_SCHEMA_FROM = '0.9.0'.freeze
7
+ NEW_SCHEMA_FROM = '0.9.0'
8
8
 
9
9
  class << self
10
10
  def compatible_rules
@@ -96,6 +96,8 @@ module Thinreports
96
96
  end
97
97
 
98
98
  def init_layout(filename, id = nil)
99
+ filename = filename.to_path if filename.is_a?(Pathname)
100
+
99
101
  Thinreports::Layout.new(filename, id: id)
100
102
  end
101
103
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Thinreports
4
- VERSION = '0.10.3'.freeze
4
+ VERSION = '0.11.0'
5
5
  end
@@ -14,16 +14,12 @@ Gem::Specification.new do |s|
14
14
  s.homepage = 'http://www.thinreports.org'
15
15
  s.license = 'MIT'
16
16
 
17
- s.required_ruby_version = '>= 2.1.0'
17
+ s.required_ruby_version = '>= 2.4.0'
18
18
 
19
- s.files = `git ls-files`.split($\)
20
- s.require_path = 'lib'
19
+ s.files = Dir.chdir(File.expand_path('..', __FILE__)) do
20
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^test/}) }
21
+ end
22
+ s.require_paths = ['lib']
21
23
 
22
24
  s.add_dependency 'prawn', '~> 2.2.0'
23
-
24
- s.add_development_dependency 'bundler', '>= 1.0.0'
25
- s.add_development_dependency 'minitest', '>= 5.0.0'
26
- s.add_development_dependency 'mocha', '>= 0'
27
- s.add_development_dependency 'pdf-inspector', '>= 0'
28
- s.add_development_dependency 'rake', '>= 0'
29
25
  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.10.3
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: 2018-11-17 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
@@ -24,76 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 2.2.0
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 1.0.0
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: 1.0.0
41
- - !ruby/object:Gem::Dependency
42
- name: minitest
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: 5.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: 5.0.0
55
- - !ruby/object:Gem::Dependency
56
- name: mocha
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: pdf-inspector
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
27
  description: Thinreports is an open source report generation tool for Ruby.
98
28
  email: thinreports@gmail.com
99
29
  executables: []
@@ -101,9 +31,10 @@ extensions: []
101
31
  extra_rdoc_files: []
102
32
  files:
103
33
  - ".github/CONTRIBUTING.md"
34
+ - ".github/workflows/test.yml"
104
35
  - ".gitignore"
105
- - ".travis.yml"
106
36
  - CHANGELOG.md
37
+ - Dockerfile
107
38
  - Gemfile
108
39
  - MIT-LICENSE
109
40
  - README.md
@@ -196,134 +127,6 @@ files:
196
127
  - lib/thinreports/report/internal.rb
197
128
  - lib/thinreports/report/page.rb
198
129
  - lib/thinreports/version.rb
199
- - test/data/font.ttf
200
- - test/data/image_normal.jpg
201
- - test/data/image_normal.png
202
- - test/data/image_normal_jpg_noext
203
- - test/data/image_normal_png_noext
204
- - test/data/image_pallete_based.png
205
- - test/data/legacy_layout/all-items.tlf
206
- - test/features/dynamic_style/expect.pdf
207
- - test/features/dynamic_style/image.png
208
- - test/features/dynamic_style/templates/styles.tlf
209
- - test/features/dynamic_style/templates/styles_in_list.tlf
210
- - test/features/dynamic_style/test_dynamic_style.rb
211
- - test/features/eudc/eudc.ttf
212
- - test/features/eudc/expect.pdf
213
- - test/features/eudc/template.tlf
214
- - test/features/eudc/test_eudc.rb
215
- - test/features/feature_test.rb
216
- - test/features/graphics/expect.pdf
217
- - test/features/graphics/template.tlf
218
- - test/features/graphics/test_graphics.rb
219
- - test/features/hidden_item/expect.pdf
220
- - test/features/hidden_item/template.tlf
221
- - test/features/hidden_item/test_hidden_item.rb
222
- - test/features/image_block/expect.pdf
223
- - test/features/image_block/img200x100.png
224
- - test/features/image_block/img50x50.png
225
- - test/features/image_block/template.tlf
226
- - test/features/image_block/test_image_block.rb
227
- - test/features/list_events/expect.pdf
228
- - test/features/list_events/template.tlf
229
- - test/features/list_events/test_list_events.rb
230
- - test/features/list_manually/expect.pdf
231
- - test/features/list_manually/template.tlf
232
- - test/features/list_manually/test_list_manually.rb
233
- - test/features/page_number/expect.pdf
234
- - test/features/page_number/template.tlf
235
- - test/features/page_number/test_page_number.rb
236
- - test/features/page_number_with_list/expect.pdf
237
- - test/features/page_number_with_list/template.tlf
238
- - test/features/page_number_with_list/test_page_number_with_list.rb
239
- - test/features/palleted_png/expect.pdf
240
- - test/features/palleted_png/palleted_png.png
241
- - test/features/palleted_png/template.tlf
242
- - test/features/palleted_png/test_palleted_png.rb
243
- - test/features/report_callbacks/expect.pdf
244
- - test/features/report_callbacks/template.tlf
245
- - test/features/report_callbacks/test_report_callbacks.rb
246
- - test/features/text_align/expect.pdf
247
- - test/features/text_align/template.tlf
248
- - test/features/text_align/test_text_align.rb
249
- - test/features/text_block_overflow/expect.pdf
250
- - test/features/text_block_overflow/template.tlf
251
- - test/features/text_block_overflow/test_text_block_overflow.rb
252
- - test/features/text_block_singleline/expect.pdf
253
- - test/features/text_block_singleline/template.tlf
254
- - test/features/text_block_singleline/test_text_block_singleline.rb
255
- - test/features/text_block_style/expect.pdf
256
- - test/features/text_block_style/templates/basic_styles.tlf
257
- - test/features/text_block_style/templates/font_size.tlf
258
- - test/features/text_block_style/test_text_block_style.rb
259
- - test/features/text_character_spacing/expect.pdf
260
- - test/features/text_character_spacing/template.tlf
261
- - test/features/text_character_spacing/test_text_character_spacing.rb
262
- - test/features/text_word_wrap/expect.pdf
263
- - test/features/text_word_wrap/template.tlf
264
- - test/features/text_word_wrap/test_text_word_wrap.rb
265
- - test/schema_helper.rb
266
- - test/test_helper.rb
267
- - test/units/core/format/test_base.rb
268
- - test/units/core/shape/base/test_internal.rb
269
- - test/units/core/shape/basic/test_block_format.rb
270
- - test/units/core/shape/basic/test_block_interface.rb
271
- - test/units/core/shape/basic/test_block_internal.rb
272
- - test/units/core/shape/basic/test_format.rb
273
- - test/units/core/shape/basic/test_interface.rb
274
- - test/units/core/shape/basic/test_internal.rb
275
- - test/units/core/shape/image_block/test_interface.rb
276
- - test/units/core/shape/image_block/test_internal.rb
277
- - test/units/core/shape/list/test_format.rb
278
- - test/units/core/shape/list/test_manager.rb
279
- - test/units/core/shape/list/test_page.rb
280
- - test/units/core/shape/list/test_page_state.rb
281
- - test/units/core/shape/list/test_section_format.rb
282
- - test/units/core/shape/list/test_section_interface.rb
283
- - test/units/core/shape/list/test_section_internal.rb
284
- - test/units/core/shape/manager/test_format.rb
285
- - test/units/core/shape/manager/test_internal.rb
286
- - test/units/core/shape/manager/test_target.rb
287
- - test/units/core/shape/page_number/test_format.rb
288
- - test/units/core/shape/page_number/test_interface.rb
289
- - test/units/core/shape/page_number/test_internal.rb
290
- - test/units/core/shape/styles/test_base.rb
291
- - test/units/core/shape/styles/test_basic.rb
292
- - test/units/core/shape/styles/test_graphic.rb
293
- - test/units/core/shape/styles/test_text.rb
294
- - test/units/core/shape/text/test_format.rb
295
- - test/units/core/shape/text/test_internal.rb
296
- - test/units/core/shape/text_block/formatter/test_basic.rb
297
- - test/units/core/shape/text_block/formatter/test_datetime.rb
298
- - test/units/core/shape/text_block/formatter/test_number.rb
299
- - test/units/core/shape/text_block/formatter/test_padding.rb
300
- - test/units/core/shape/text_block/test_format.rb
301
- - test/units/core/shape/text_block/test_formatter.rb
302
- - test/units/core/shape/text_block/test_interface.rb
303
- - test/units/core/shape/text_block/test_internal.rb
304
- - test/units/core/test_shape.rb
305
- - test/units/core/test_utils.rb
306
- - test/units/generator/pdf/document/graphics/test_attributes.rb
307
- - test/units/generator/pdf/document/graphics/test_basic.rb
308
- - test/units/generator/pdf/document/graphics/test_image.rb
309
- - test/units/generator/pdf/document/graphics/test_text.rb
310
- - test/units/generator/pdf/document/test_font.rb
311
- - test/units/generator/pdf/document/test_graphics.rb
312
- - test/units/generator/pdf/document/test_page.rb
313
- - test/units/generator/pdf/document/test_parse_color.rb
314
- - test/units/generator/pdf/prawn_ext/test_calc_image_dimensions.rb
315
- - test/units/generator/pdf/prawn_ext/test_width_of.rb
316
- - test/units/generator/pdf/test_document.rb
317
- - test/units/generator/test_pdf.rb
318
- - test/units/layout/test_base.rb
319
- - test/units/layout/test_format.rb
320
- - test/units/layout/test_legacy_schema.rb
321
- - test/units/layout/test_version.rb
322
- - test/units/report/test_base.rb
323
- - test/units/report/test_internal.rb
324
- - test/units/test_config.rb
325
- - test/units/test_layout.rb
326
- - test/units/test_report.rb
327
130
  - thinreports.gemspec
328
131
  homepage: http://www.thinreports.org
329
132
  licenses:
@@ -337,15 +140,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
337
140
  requirements:
338
141
  - - ">="
339
142
  - !ruby/object:Gem::Version
340
- version: 2.1.0
143
+ version: 2.4.0
341
144
  required_rubygems_version: !ruby/object:Gem::Requirement
342
145
  requirements:
343
146
  - - ">="
344
147
  - !ruby/object:Gem::Version
345
148
  version: '0'
346
149
  requirements: []
347
- rubyforge_project:
348
- rubygems_version: 2.7.8
150
+ rubygems_version: 3.1.2
349
151
  signing_key:
350
152
  specification_version: 4
351
153
  summary: An open source report generation tool for Ruby.