ruport 1.7.1 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +38 -0
  3. data/HACKING +1 -17
  4. data/{README.rdoc → README.md} +30 -38
  5. data/Rakefile +0 -10
  6. data/examples/row_renderer.rb +1 -1
  7. data/examples/simple_pdf_lines.rb +1 -1
  8. data/examples/trac_ticket_status.rb +1 -1
  9. data/lib/ruport/controller.rb +1 -1
  10. data/lib/ruport/data/grouping.rb +7 -7
  11. data/lib/ruport/data/record.rb +4 -4
  12. data/lib/ruport/data/table.rb +9 -9
  13. data/lib/ruport/formatter/csv.rb +1 -1
  14. data/lib/ruport/formatter/markdown.rb +105 -0
  15. data/lib/ruport/formatter/prawn_pdf.rb +96 -9
  16. data/lib/ruport/formatter/text.rb +1 -1
  17. data/lib/ruport/formatter.rb +1 -2
  18. data/lib/ruport/version.rb +1 -1
  19. data/lib/ruport.rb +7 -11
  20. data/test/controller_test.rb +107 -109
  21. data/test/csv_formatter_test.rb +21 -21
  22. data/test/data_feeder_test.rb +39 -39
  23. data/test/expected_outputs/prawn_pdf_formatter/pdf_basic.pdf.test +265 -0
  24. data/test/grouping_test.rb +74 -74
  25. data/test/helpers.rb +16 -5
  26. data/test/html_formatter_test.rb +22 -22
  27. data/test/markdown_formatter_test.rb +142 -0
  28. data/test/prawn_pdf_formatter_test.rb +108 -0
  29. data/test/record_test.rb +82 -82
  30. data/test/table_pivot_test.rb +9 -2
  31. data/test/table_test.rb +33 -40
  32. data/test/template_test.rb +12 -12
  33. data/test/text_formatter_test.rb +34 -34
  34. data/util/bench/data/table/bench_column_manip.rb +0 -1
  35. data/util/bench/data/table/bench_dup.rb +0 -1
  36. data/util/bench/data/table/bench_init.rb +0 -1
  37. data/util/bench/data/table/bench_manip.rb +0 -1
  38. data/util/bench/formatter/bench_csv.rb +0 -1
  39. data/util/bench/formatter/bench_html.rb +0 -1
  40. data/util/bench/formatter/bench_pdf.rb +0 -1
  41. data/util/bench/formatter/bench_text.rb +0 -1
  42. metadata +30 -29
  43. data/lib/ruport/formatter/pdf.rb +0 -589
metadata CHANGED
@@ -1,45 +1,45 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruport
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory Brown
8
8
  - Mike Milner
9
9
  - Andrew France
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-05-02 00:00:00.000000000 Z
13
+ date: 2022-09-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: pdf-writer
16
+ name: prawn
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - '='
19
+ - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 1.1.8
21
+ version: 2.4.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - '='
26
+ - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 1.1.8
28
+ version: 2.4.0
29
29
  - !ruby/object:Gem::Dependency
30
- name: prawn
30
+ name: prawn-table
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - '='
33
+ - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: 0.12.0
35
+ version: 0.2.0
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - '='
40
+ - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: 0.12.0
42
+ version: 0.2.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: rake
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -61,15 +61,14 @@ description: |
61
61
  email: gregory.t.brown@gmail.com
62
62
  executables: []
63
63
  extensions: []
64
- extra_rdoc_files:
65
- - LICENSE
66
- - README.rdoc
64
+ extra_rdoc_files: []
67
65
  files:
68
66
  - AUTHORS
67
+ - CHANGELOG.md
69
68
  - COPYING
70
69
  - HACKING
71
70
  - LICENSE
72
- - README.rdoc
71
+ - README.md
73
72
  - Rakefile
74
73
  - examples/RWEmerson.jpg
75
74
  - examples/add_row_table.rb
@@ -109,7 +108,7 @@ files:
109
108
  - lib/ruport/formatter.rb
110
109
  - lib/ruport/formatter/csv.rb
111
110
  - lib/ruport/formatter/html.rb
112
- - lib/ruport/formatter/pdf.rb
111
+ - lib/ruport/formatter/markdown.rb
113
112
  - lib/ruport/formatter/prawn_pdf.rb
114
113
  - lib/ruport/formatter/template.rb
115
114
  - lib/ruport/formatter/text.rb
@@ -118,9 +117,12 @@ files:
118
117
  - test/controller_test.rb
119
118
  - test/csv_formatter_test.rb
120
119
  - test/data_feeder_test.rb
120
+ - test/expected_outputs/prawn_pdf_formatter/pdf_basic.pdf.test
121
121
  - test/grouping_test.rb
122
122
  - test/helpers.rb
123
123
  - test/html_formatter_test.rb
124
+ - test/markdown_formatter_test.rb
125
+ - test/prawn_pdf_formatter_test.rb
124
126
  - test/record_test.rb
125
127
  - test/samples/addressbook.csv
126
128
  - test/samples/data.csv
@@ -155,14 +157,11 @@ files:
155
157
  - util/release/raa.rb
156
158
  homepage: http://github.com/ruport/ruport
157
159
  licenses: []
158
- metadata: {}
159
- post_install_message:
160
- rdoc_options:
161
- - "--title"
162
- - Ruport Documentation
163
- - "--main"
164
- - README.rdoc
165
- - "-q"
160
+ metadata:
161
+ source_code_uri: https://github.com/ruport/ruport
162
+ changelog_uri: https://github.com/ruport/ruport/blob/master/CHANGELOG.md
163
+ post_install_message:
164
+ rdoc_options: []
166
165
  require_paths:
167
166
  - lib
168
167
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -176,9 +175,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
175
  - !ruby/object:Gem::Version
177
176
  version: '0'
178
177
  requirements: []
179
- rubyforge_project:
180
- rubygems_version: 2.6.10
181
- signing_key:
178
+ rubygems_version: 3.1.6
179
+ signing_key:
182
180
  specification_version: 4
183
181
  summary: A generalized Ruby report generation and templating engine.
184
182
  test_files:
@@ -210,9 +208,12 @@ test_files:
210
208
  - test/controller_test.rb
211
209
  - test/csv_formatter_test.rb
212
210
  - test/data_feeder_test.rb
211
+ - test/expected_outputs/prawn_pdf_formatter/pdf_basic.pdf.test
213
212
  - test/grouping_test.rb
214
213
  - test/helpers.rb
215
214
  - test/html_formatter_test.rb
215
+ - test/markdown_formatter_test.rb
216
+ - test/prawn_pdf_formatter_test.rb
216
217
  - test/record_test.rb
217
218
  - test/samples/addressbook.csv
218
219
  - test/samples/data.csv