pdf_tempura 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +18 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +342 -0
- data/Rakefile +1 -0
- data/example/my_pdf.rb +37 -0
- data/lib/pdf_tempura.rb +8 -0
- data/lib/pdf_tempura/document.rb +121 -0
- data/lib/pdf_tempura/document/boxed_characters.rb +70 -0
- data/lib/pdf_tempura/document/boxed_characters/groups.rb +53 -0
- data/lib/pdf_tempura/document/character_field.rb +37 -0
- data/lib/pdf_tempura/document/checkbox_field.rb +15 -0
- data/lib/pdf_tempura/document/default_commands.rb +40 -0
- data/lib/pdf_tempura/document/field/base.rb +55 -0
- data/lib/pdf_tempura/document/field_set.rb +51 -0
- data/lib/pdf_tempura/document/page.rb +33 -0
- data/lib/pdf_tempura/document/table.rb +95 -0
- data/lib/pdf_tempura/document/table/boxed_character_column.rb +20 -0
- data/lib/pdf_tempura/document/table/checkbox_column.rb +9 -0
- data/lib/pdf_tempura/document/table/column.rb +18 -0
- data/lib/pdf_tempura/document/table/spacer.rb +13 -0
- data/lib/pdf_tempura/document/table/text_column.rb +9 -0
- data/lib/pdf_tempura/document/text_field.rb +18 -0
- data/lib/pdf_tempura/document/validation.rb +79 -0
- data/lib/pdf_tempura/extensions/hash/stringify_keys.rb +35 -0
- data/lib/pdf_tempura/render.rb +18 -0
- data/lib/pdf_tempura/render/boxed_characters.rb +42 -0
- data/lib/pdf_tempura/render/character_field.rb +49 -0
- data/lib/pdf_tempura/render/checkbox_field.rb +35 -0
- data/lib/pdf_tempura/render/debug.rb +16 -0
- data/lib/pdf_tempura/render/debug/annotation/base.rb +83 -0
- data/lib/pdf_tempura/render/debug/character_field_annotation.rb +13 -0
- data/lib/pdf_tempura/render/debug/checkbox_field_annotation.rb +24 -0
- data/lib/pdf_tempura/render/debug/field_set_annotation.rb +23 -0
- data/lib/pdf_tempura/render/debug/grid.rb +59 -0
- data/lib/pdf_tempura/render/debug/outside_annotation.rb +42 -0
- data/lib/pdf_tempura/render/debug/table_annotation.rb +19 -0
- data/lib/pdf_tempura/render/debug/text_field_annotation.rb +42 -0
- data/lib/pdf_tempura/render/field.rb +40 -0
- data/lib/pdf_tempura/render/field_bounds.rb +26 -0
- data/lib/pdf_tempura/render/field_data_mapper.rb +15 -0
- data/lib/pdf_tempura/render/field_set.rb +31 -0
- data/lib/pdf_tempura/render/option_access.rb +21 -0
- data/lib/pdf_tempura/render/page.rb +23 -0
- data/lib/pdf_tempura/render/table.rb +35 -0
- data/lib/pdf_tempura/render/text_field.rb +13 -0
- data/lib/pdf_tempura/renderer.rb +39 -0
- data/lib/pdf_tempura/version.rb +3 -0
- data/pdf_tempura.gemspec +27 -0
- data/spec/assets/sample_pdf_form.odg +0 -0
- data/spec/assets/sample_pdf_form.pdf +0 -0
- data/spec/integration_spec.rb +88 -0
- data/spec/lib/pdf_tempura/document/boxed_characters_spec.rb +125 -0
- data/spec/lib/pdf_tempura/document/checkbox_field_spec.rb +54 -0
- data/spec/lib/pdf_tempura/document/field_common.rb +12 -0
- data/spec/lib/pdf_tempura/document/field_set_spec.rb +38 -0
- data/spec/lib/pdf_tempura/document/page_spec.rb +57 -0
- data/spec/lib/pdf_tempura/document/table_spec.rb +161 -0
- data/spec/lib/pdf_tempura/document/text_field_spec.rb +195 -0
- data/spec/lib/pdf_tempura/document_spec.rb +131 -0
- data/spec/lib/pdf_tempura/extensions/hash/stringify_keys_spec.rb +42 -0
- data/spec/lib/pdf_tempura/render/boxed_characters_spec.rb +68 -0
- data/spec/lib/pdf_tempura/render/checkbox_field_spec.rb +39 -0
- data/spec/lib/pdf_tempura/render/debug/annotation_renderer/base_spec.rb +45 -0
- data/spec/lib/pdf_tempura/render/debug/checkbox_field_annotation_spec.rb +45 -0
- data/spec/lib/pdf_tempura/render/debug/grid_spec.rb +15 -0
- data/spec/lib/pdf_tempura/render/debug/text_field_annotation_spec.rb +46 -0
- data/spec/lib/pdf_tempura/render/field_data_mapper_spec.rb +31 -0
- data/spec/lib/pdf_tempura/render/field_set_spec.rb +41 -0
- data/spec/lib/pdf_tempura/render/field_spec.rb +37 -0
- data/spec/lib/pdf_tempura/render/page_spec.rb +77 -0
- data/spec/lib/pdf_tempura/render/table_spec.rb +44 -0
- data/spec/lib/pdf_tempura/render/text_field_spec.rb +39 -0
- data/spec/lib/pdf_tempura/renderer_spec.rb +79 -0
- data/spec/spec_helper.rb +29 -0
- data/spec/support/shared_examples/field_examples.rb +265 -0
- metadata +219 -0
metadata
ADDED
@@ -0,0 +1,219 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pdf_tempura
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dane Natoli
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-12-19 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: prawn
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.12.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.12.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.3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: debugger
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
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: rspec
|
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
|
+
description: A gem for overlaying text and other fields onto PDF templates using Prawn.
|
84
|
+
email:
|
85
|
+
- dnatoli@payrollhero.com
|
86
|
+
executables: []
|
87
|
+
extensions: []
|
88
|
+
extra_rdoc_files: []
|
89
|
+
files:
|
90
|
+
- .gitignore
|
91
|
+
- .rspec
|
92
|
+
- .travis.yml
|
93
|
+
- Gemfile
|
94
|
+
- LICENSE.txt
|
95
|
+
- README.md
|
96
|
+
- Rakefile
|
97
|
+
- example/my_pdf.rb
|
98
|
+
- lib/pdf_tempura.rb
|
99
|
+
- lib/pdf_tempura/document.rb
|
100
|
+
- lib/pdf_tempura/document/boxed_characters.rb
|
101
|
+
- lib/pdf_tempura/document/boxed_characters/groups.rb
|
102
|
+
- lib/pdf_tempura/document/character_field.rb
|
103
|
+
- lib/pdf_tempura/document/checkbox_field.rb
|
104
|
+
- lib/pdf_tempura/document/default_commands.rb
|
105
|
+
- lib/pdf_tempura/document/field/base.rb
|
106
|
+
- lib/pdf_tempura/document/field_set.rb
|
107
|
+
- lib/pdf_tempura/document/page.rb
|
108
|
+
- lib/pdf_tempura/document/table.rb
|
109
|
+
- lib/pdf_tempura/document/table/boxed_character_column.rb
|
110
|
+
- lib/pdf_tempura/document/table/checkbox_column.rb
|
111
|
+
- lib/pdf_tempura/document/table/column.rb
|
112
|
+
- lib/pdf_tempura/document/table/spacer.rb
|
113
|
+
- lib/pdf_tempura/document/table/text_column.rb
|
114
|
+
- lib/pdf_tempura/document/text_field.rb
|
115
|
+
- lib/pdf_tempura/document/validation.rb
|
116
|
+
- lib/pdf_tempura/extensions/hash/stringify_keys.rb
|
117
|
+
- lib/pdf_tempura/render.rb
|
118
|
+
- lib/pdf_tempura/render/boxed_characters.rb
|
119
|
+
- lib/pdf_tempura/render/character_field.rb
|
120
|
+
- lib/pdf_tempura/render/checkbox_field.rb
|
121
|
+
- lib/pdf_tempura/render/debug.rb
|
122
|
+
- lib/pdf_tempura/render/debug/annotation/base.rb
|
123
|
+
- lib/pdf_tempura/render/debug/character_field_annotation.rb
|
124
|
+
- lib/pdf_tempura/render/debug/checkbox_field_annotation.rb
|
125
|
+
- lib/pdf_tempura/render/debug/field_set_annotation.rb
|
126
|
+
- lib/pdf_tempura/render/debug/grid.rb
|
127
|
+
- lib/pdf_tempura/render/debug/outside_annotation.rb
|
128
|
+
- lib/pdf_tempura/render/debug/table_annotation.rb
|
129
|
+
- lib/pdf_tempura/render/debug/text_field_annotation.rb
|
130
|
+
- lib/pdf_tempura/render/field.rb
|
131
|
+
- lib/pdf_tempura/render/field_bounds.rb
|
132
|
+
- lib/pdf_tempura/render/field_data_mapper.rb
|
133
|
+
- lib/pdf_tempura/render/field_set.rb
|
134
|
+
- lib/pdf_tempura/render/option_access.rb
|
135
|
+
- lib/pdf_tempura/render/page.rb
|
136
|
+
- lib/pdf_tempura/render/table.rb
|
137
|
+
- lib/pdf_tempura/render/text_field.rb
|
138
|
+
- lib/pdf_tempura/renderer.rb
|
139
|
+
- lib/pdf_tempura/version.rb
|
140
|
+
- pdf_tempura.gemspec
|
141
|
+
- spec/assets/sample_pdf_form.odg
|
142
|
+
- spec/assets/sample_pdf_form.pdf
|
143
|
+
- spec/integration_spec.rb
|
144
|
+
- spec/lib/pdf_tempura/document/boxed_characters_spec.rb
|
145
|
+
- spec/lib/pdf_tempura/document/checkbox_field_spec.rb
|
146
|
+
- spec/lib/pdf_tempura/document/field_common.rb
|
147
|
+
- spec/lib/pdf_tempura/document/field_set_spec.rb
|
148
|
+
- spec/lib/pdf_tempura/document/page_spec.rb
|
149
|
+
- spec/lib/pdf_tempura/document/table_spec.rb
|
150
|
+
- spec/lib/pdf_tempura/document/text_field_spec.rb
|
151
|
+
- spec/lib/pdf_tempura/document_spec.rb
|
152
|
+
- spec/lib/pdf_tempura/extensions/hash/stringify_keys_spec.rb
|
153
|
+
- spec/lib/pdf_tempura/render/boxed_characters_spec.rb
|
154
|
+
- spec/lib/pdf_tempura/render/checkbox_field_spec.rb
|
155
|
+
- spec/lib/pdf_tempura/render/debug/annotation_renderer/base_spec.rb
|
156
|
+
- spec/lib/pdf_tempura/render/debug/checkbox_field_annotation_spec.rb
|
157
|
+
- spec/lib/pdf_tempura/render/debug/grid_spec.rb
|
158
|
+
- spec/lib/pdf_tempura/render/debug/text_field_annotation_spec.rb
|
159
|
+
- spec/lib/pdf_tempura/render/field_data_mapper_spec.rb
|
160
|
+
- spec/lib/pdf_tempura/render/field_set_spec.rb
|
161
|
+
- spec/lib/pdf_tempura/render/field_spec.rb
|
162
|
+
- spec/lib/pdf_tempura/render/page_spec.rb
|
163
|
+
- spec/lib/pdf_tempura/render/table_spec.rb
|
164
|
+
- spec/lib/pdf_tempura/render/text_field_spec.rb
|
165
|
+
- spec/lib/pdf_tempura/renderer_spec.rb
|
166
|
+
- spec/spec_helper.rb
|
167
|
+
- spec/support/shared_examples/field_examples.rb
|
168
|
+
homepage: https://github.com/payrollhero/pdf_tempura
|
169
|
+
licenses:
|
170
|
+
- MIT
|
171
|
+
metadata: {}
|
172
|
+
post_install_message:
|
173
|
+
rdoc_options: []
|
174
|
+
require_paths:
|
175
|
+
- lib
|
176
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ! '>='
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
|
+
requirements:
|
183
|
+
- - ! '>='
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: '0'
|
186
|
+
requirements: []
|
187
|
+
rubyforge_project:
|
188
|
+
rubygems_version: 2.1.11
|
189
|
+
signing_key:
|
190
|
+
specification_version: 4
|
191
|
+
summary: A gem for overlaying text and other fields onto PDF templates using Prawn.
|
192
|
+
test_files:
|
193
|
+
- spec/assets/sample_pdf_form.odg
|
194
|
+
- spec/assets/sample_pdf_form.pdf
|
195
|
+
- spec/integration_spec.rb
|
196
|
+
- spec/lib/pdf_tempura/document/boxed_characters_spec.rb
|
197
|
+
- spec/lib/pdf_tempura/document/checkbox_field_spec.rb
|
198
|
+
- spec/lib/pdf_tempura/document/field_common.rb
|
199
|
+
- spec/lib/pdf_tempura/document/field_set_spec.rb
|
200
|
+
- spec/lib/pdf_tempura/document/page_spec.rb
|
201
|
+
- spec/lib/pdf_tempura/document/table_spec.rb
|
202
|
+
- spec/lib/pdf_tempura/document/text_field_spec.rb
|
203
|
+
- spec/lib/pdf_tempura/document_spec.rb
|
204
|
+
- spec/lib/pdf_tempura/extensions/hash/stringify_keys_spec.rb
|
205
|
+
- spec/lib/pdf_tempura/render/boxed_characters_spec.rb
|
206
|
+
- spec/lib/pdf_tempura/render/checkbox_field_spec.rb
|
207
|
+
- spec/lib/pdf_tempura/render/debug/annotation_renderer/base_spec.rb
|
208
|
+
- spec/lib/pdf_tempura/render/debug/checkbox_field_annotation_spec.rb
|
209
|
+
- spec/lib/pdf_tempura/render/debug/grid_spec.rb
|
210
|
+
- spec/lib/pdf_tempura/render/debug/text_field_annotation_spec.rb
|
211
|
+
- spec/lib/pdf_tempura/render/field_data_mapper_spec.rb
|
212
|
+
- spec/lib/pdf_tempura/render/field_set_spec.rb
|
213
|
+
- spec/lib/pdf_tempura/render/field_spec.rb
|
214
|
+
- spec/lib/pdf_tempura/render/page_spec.rb
|
215
|
+
- spec/lib/pdf_tempura/render/table_spec.rb
|
216
|
+
- spec/lib/pdf_tempura/render/text_field_spec.rb
|
217
|
+
- spec/lib/pdf_tempura/renderer_spec.rb
|
218
|
+
- spec/spec_helper.rb
|
219
|
+
- spec/support/shared_examples/field_examples.rb
|