eideticrml 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +55 -0
  3. data/lib/erml.rb +345 -0
  4. data/lib/erml_layout_managers.rb +667 -0
  5. data/lib/erml_rules.rb +104 -0
  6. data/lib/erml_styles.rb +304 -0
  7. data/lib/erml_support.rb +105 -0
  8. data/lib/erml_widget_factories.rb +38 -0
  9. data/lib/erml_widgets.rb +1895 -0
  10. data/samples/test10_rich_text.erml +17 -0
  11. data/samples/test11_table_layout.erml +30 -0
  12. data/samples/test12_shapes.erml +32 -0
  13. data/samples/test13_polygons.erml +28 -0
  14. data/samples/test14_images.erml +19 -0
  15. data/samples/test15_lines.erml +43 -0
  16. data/samples/test16_classes.erml +34 -0
  17. data/samples/test17_rules.erml +24 -0
  18. data/samples/test18_preformatted_text.erml +9 -0
  19. data/samples/test19_erb.erml.erb +26 -0
  20. data/samples/test1_empty_doc.erml +2 -0
  21. data/samples/test20_haml.erml.haml +20 -0
  22. data/samples/test21_shift_widgets.erml +47 -0
  23. data/samples/test22_multipage_flow_layout.erml +40 -0
  24. data/samples/test23_pageno.erml +17 -0
  25. data/samples/test24_headers_footers.erml.erb +37 -0
  26. data/samples/test25_overflow.erml.erb +37 -0
  27. data/samples/test26_columns.erml.erb +42 -0
  28. data/samples/test28_landscape.erml.erb +17 -0
  29. data/samples/test29_pages_up.erml.erb +17 -0
  30. data/samples/test2_empty_page.erml +6 -0
  31. data/samples/test30_encodings.erml.haml +35 -0
  32. data/samples/test3_hello_world.erml +7 -0
  33. data/samples/test4_two_pages.erml +10 -0
  34. data/samples/test5_rounded_rect.erml +10 -0
  35. data/samples/test6_bullets.erml +16 -0
  36. data/samples/test7_flow_layout.erml +20 -0
  37. data/samples/test8_vbox_layout.erml +23 -0
  38. data/samples/test9_hbox_layout.erml +22 -0
  39. data/samples/testimg.jpg +0 -0
  40. data/test/test_erml_layout_managers.rb +106 -0
  41. data/test/test_erml_rules.rb +116 -0
  42. data/test/test_erml_styles.rb +415 -0
  43. data/test/test_erml_support.rb +140 -0
  44. data/test/test_erml_widget_factories.rb +46 -0
  45. data/test/test_erml_widgets.rb +1235 -0
  46. data/test/test_helpers.rb +18 -0
  47. metadata +102 -0
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # Created by Brent Rowland on 2008-01-26.
4
+ # Copyright (c) 2008 Eidetic Software. All rights reserved.
5
+ #
6
+ # Eidetic RML Test Helpers
7
+
8
+ def assert_array_in_delta(expected_floats, actual_floats, delta)
9
+ expected_floats.each_with_index { |e, i| assert_in_delta(e, actual_floats[i], delta) }
10
+ end
11
+
12
+ def assert_close(expected, actual)
13
+ if expected.respond_to?(:each_with_index) and actual.respond_to?(:[])
14
+ expected.each_with_index { |e, i| assert_in_delta(e, actual[i], 2 ** -20) }
15
+ else
16
+ assert_in_delta(expected, actual, 2 ** -20)
17
+ end
18
+ end
metadata ADDED
@@ -0,0 +1,102 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: eideticrml
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
5
+ platform: ruby
6
+ authors:
7
+ - Brent Rowland, Eidetic Software, LLC
8
+ autorequire: erml
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-09-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: eideticpdf
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 1.0.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 1.0.2
27
+ description:
28
+ email: brent.rowland@eideticsoftware.com
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - Rakefile
34
+ - lib/erml.rb
35
+ - lib/erml_layout_managers.rb
36
+ - lib/erml_rules.rb
37
+ - lib/erml_styles.rb
38
+ - lib/erml_support.rb
39
+ - lib/erml_widget_factories.rb
40
+ - lib/erml_widgets.rb
41
+ - samples/test10_rich_text.erml
42
+ - samples/test11_table_layout.erml
43
+ - samples/test12_shapes.erml
44
+ - samples/test13_polygons.erml
45
+ - samples/test14_images.erml
46
+ - samples/test15_lines.erml
47
+ - samples/test16_classes.erml
48
+ - samples/test17_rules.erml
49
+ - samples/test18_preformatted_text.erml
50
+ - samples/test19_erb.erml.erb
51
+ - samples/test1_empty_doc.erml
52
+ - samples/test20_haml.erml.haml
53
+ - samples/test21_shift_widgets.erml
54
+ - samples/test22_multipage_flow_layout.erml
55
+ - samples/test23_pageno.erml
56
+ - samples/test24_headers_footers.erml.erb
57
+ - samples/test25_overflow.erml.erb
58
+ - samples/test26_columns.erml.erb
59
+ - samples/test28_landscape.erml.erb
60
+ - samples/test29_pages_up.erml.erb
61
+ - samples/test2_empty_page.erml
62
+ - samples/test30_encodings.erml.haml
63
+ - samples/test3_hello_world.erml
64
+ - samples/test4_two_pages.erml
65
+ - samples/test5_rounded_rect.erml
66
+ - samples/test6_bullets.erml
67
+ - samples/test7_flow_layout.erml
68
+ - samples/test8_vbox_layout.erml
69
+ - samples/test9_hbox_layout.erml
70
+ - samples/testimg.jpg
71
+ - test/test_erml_layout_managers.rb
72
+ - test/test_erml_rules.rb
73
+ - test/test_erml_styles.rb
74
+ - test/test_erml_support.rb
75
+ - test/test_erml_widget_factories.rb
76
+ - test/test_erml_widgets.rb
77
+ - test/test_helpers.rb
78
+ homepage: http://www.eideticsoftware.com
79
+ licenses: []
80
+ metadata: {}
81
+ post_install_message:
82
+ rdoc_options: []
83
+ require_paths:
84
+ - lib
85
+ required_ruby_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ required_rubygems_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ requirements:
96
+ - Ruby 2.x, eideticpdf
97
+ rubyforge_project:
98
+ rubygems_version: 2.4.5.1
99
+ signing_key:
100
+ specification_version: 4
101
+ summary: Report Markup Language
102
+ test_files: []