check_writer 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/check_writer.gemspec +3 -3
- data/lib/check_writer/check.rb +1 -1
- data/spec/assets/test-0.12.0.pdf +0 -0
- data/spec/assets/two_in_one-0.12.0.pdf +0 -0
- data/spec/assets/void-0.12.0.pdf +0 -0
- data/spec/assets/with_second_signature_line-0.12.0.pdf +0 -0
- data/spec/assets/with_signature_image-0.12.0.pdf +0 -0
- data/spec/assets/with_stub_table_data-0.12.0.pdf +28 -19
- data/spec/assets/with_stubs-0.12.0.pdf +0 -0
- data/spec/assets/with_two_thirds_stub-0.12.0.pdf +0 -0
- data/spec/spec_helper.rb +4 -0
- metadata +60 -20
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.6
|
data/check_writer.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "check_writer"
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ryan Winograd"]
|
12
|
-
s.date = "2013-
|
12
|
+
s.date = "2013-11-07"
|
13
13
|
s.description = "Ruby library for generating PDF checks that you can take to the bank"
|
14
14
|
s.email = "ryan@thewinograds.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -62,7 +62,7 @@ Gem::Specification.new do |s|
|
|
62
62
|
s.homepage = "http://github.com/rylwin/check_writer"
|
63
63
|
s.licenses = ["MIT"]
|
64
64
|
s.require_paths = ["lib"]
|
65
|
-
s.rubygems_version = "1.8.
|
65
|
+
s.rubygems_version = "1.8.23"
|
66
66
|
s.summary = "Generate PDF checks"
|
67
67
|
|
68
68
|
if s.respond_to? :specification_version then
|
data/lib/check_writer/check.rb
CHANGED
@@ -172,7 +172,7 @@ module CheckWriter
|
|
172
172
|
@pdf.text formatted_date
|
173
173
|
end
|
174
174
|
@pdf.bounding_box [@pdf.bounds.right - inches(1) - 4, @pdf.bounds.top - inches(1.25)], :width => inches(1) do
|
175
|
-
@pdf.text formatted_amount, :align => :right
|
175
|
+
@pdf.text "<b>#{formatted_amount}</b>", :align => :right, :inline_format => true
|
176
176
|
end
|
177
177
|
@pdf.text_box "#{amount_in_words}#{" -"*72}", :at => [@pdf.bounds.left + 4, @pdf.bounds.top - inches(1.5)], :height => inches(0.2)
|
178
178
|
@pdf.bounding_box [@pdf.bounds.right - inches(3.5), @pdf.bounds.top - inches(1.75)], :width => inches(3.5) do
|
data/spec/assets/test-0.12.0.pdf
CHANGED
Binary file
|
Binary file
|
data/spec/assets/void-0.12.0.pdf
CHANGED
Binary file
|
Binary file
|
Binary file
|
@@ -1379,7 +1379,7 @@ ET
|
|
1379
1379
|
|
1380
1380
|
BT
|
1381
1381
|
518.624 153.38400000000001 Td
|
1382
|
-
/
|
1382
|
+
/F2.0 12 Tf
|
1383
1383
|
[<24312c3030332e3233>] TJ
|
1384
1384
|
ET
|
1385
1385
|
|
@@ -1437,7 +1437,7 @@ ET
|
|
1437
1437
|
|
1438
1438
|
BT
|
1439
1439
|
122.03999999999999 12.399999999999999 Td
|
1440
|
-
/
|
1440
|
+
/F3.0 12 Tf
|
1441
1441
|
<433132333435432041313233343536373638412031323334353637383943> Tj
|
1442
1442
|
ET
|
1443
1443
|
|
@@ -1454,6 +1454,7 @@ endobj
|
|
1454
1454
|
/Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
|
1455
1455
|
/Font << /F1.0 6 0 R
|
1456
1456
|
/F2.0 7 0 R
|
1457
|
+
/F3.0 8 0 R
|
1457
1458
|
>>
|
1458
1459
|
>>
|
1459
1460
|
>>
|
@@ -1467,16 +1468,23 @@ endobj
|
|
1467
1468
|
endobj
|
1468
1469
|
7 0 obj
|
1469
1470
|
<< /Type /Font
|
1471
|
+
/Subtype /Type1
|
1472
|
+
/BaseFont /Helvetica-Bold
|
1473
|
+
/Encoding /WinAnsiEncoding
|
1474
|
+
>>
|
1475
|
+
endobj
|
1476
|
+
8 0 obj
|
1477
|
+
<< /Type /Font
|
1470
1478
|
/BaseFont /AAAAAF+GnuMICR
|
1471
1479
|
/Subtype /TrueType
|
1472
|
-
/FontDescriptor
|
1480
|
+
/FontDescriptor 10 0 R
|
1473
1481
|
/FirstChar 32
|
1474
1482
|
/LastChar 255
|
1475
|
-
/Widths
|
1476
|
-
/ToUnicode
|
1483
|
+
/Widths 12 0 R
|
1484
|
+
/ToUnicode 11 0 R
|
1477
1485
|
>>
|
1478
1486
|
endobj
|
1479
|
-
|
1487
|
+
9 0 obj
|
1480
1488
|
<< /Length 1386
|
1481
1489
|
/Length1 3728
|
1482
1490
|
/Filter /FlateDecode
|
@@ -1489,10 +1497,10 @@ x
|
|
1489
1497
|
k���ͅ)]�XN�����8C�̐lgϜ����<�ŋ�|"�P���D8+e�R�����<*��F�l<�JL�f�<��c\� +�F���7���G� U�P���Z a�Y���U�d�N�6�D���/��Ԁ]K��~���I����'0�G"��ҍ��1(����߭�$>
|
1490
1498
|
endstream
|
1491
1499
|
endobj
|
1492
|
-
|
1500
|
+
10 0 obj
|
1493
1501
|
<< /Type /FontDescriptor
|
1494
1502
|
/FontName /AAAAAF+GnuMICR
|
1495
|
-
/FontFile2
|
1503
|
+
/FontFile2 9 0 R
|
1496
1504
|
/FontBBox [10 0 720 702]
|
1497
1505
|
/Flags 4
|
1498
1506
|
/StemV 0
|
@@ -1503,7 +1511,7 @@ endobj
|
|
1503
1511
|
/XHeight 0
|
1504
1512
|
>>
|
1505
1513
|
endobj
|
1506
|
-
|
1514
|
+
11 0 obj
|
1507
1515
|
<< /Filter /FlateDecode
|
1508
1516
|
/Length 1286
|
1509
1517
|
>>
|
@@ -1513,28 +1521,29 @@ x
|
|
1513
1521
|
���J���J��특���x��x��x��+�!Êw��B�x�b�x��+ށ�r�;��2��k�Μ�J�Y�e�Y��7+|��x�oS��7+[ƛețךyޢoV��浖-㭌���"���R�W�*��4Xq��C�^J�[(��^�1�»�y]���k�}�YM-x����V�z�����[YE�V�Y���_}/7�*�Y%��e�ӫq+��:��.�7�J���E�/�3Y(Y�*A�W R��VJS�����:(u@c��D�]a*��f)�9J���)�o,#�\�Z>M�U��\�jPS�
|
1514
1522
|
endstream
|
1515
1523
|
endobj
|
1516
|
-
|
1524
|
+
12 0 obj
|
1517
1525
|
[751 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 751 751 751 751 751 751 751 751 751 500 500 500 500 500 500 500 751 500 751 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500 500]
|
1518
1526
|
endobj
|
1519
1527
|
xref
|
1520
|
-
0
|
1528
|
+
0 13
|
1521
1529
|
0000000000 65535 f
|
1522
1530
|
0000000015 00000 n
|
1523
1531
|
0000000109 00000 n
|
1524
1532
|
0000000158 00000 n
|
1525
1533
|
0000000215 00000 n
|
1526
1534
|
0000019244 00000 n
|
1527
|
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
|
1531
|
-
|
1532
|
-
|
1535
|
+
0000019446 00000 n
|
1536
|
+
0000019543 00000 n
|
1537
|
+
0000019645 00000 n
|
1538
|
+
0000019807 00000 n
|
1539
|
+
0000021280 00000 n
|
1540
|
+
0000021521 00000 n
|
1541
|
+
0000022881 00000 n
|
1533
1542
|
trailer
|
1534
|
-
<< /Size
|
1543
|
+
<< /Size 13
|
1535
1544
|
/Root 2 0 R
|
1536
1545
|
/Info 1 0 R
|
1537
1546
|
>>
|
1538
1547
|
startxref
|
1539
|
-
|
1548
|
+
23795
|
1540
1549
|
%%EOF
|
Binary file
|
Binary file
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: check_writer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-11-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: prawn
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ! '>='
|
@@ -32,10 +37,15 @@ dependencies:
|
|
32
37
|
version: 0.12.0
|
33
38
|
type: :runtime
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 0.12.0
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: linguistics
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ! '>='
|
@@ -43,10 +53,15 @@ dependencies:
|
|
43
53
|
version: '0'
|
44
54
|
type: :runtime
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
47
62
|
- !ruby/object:Gem::Dependency
|
48
63
|
name: rake
|
49
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
50
65
|
none: false
|
51
66
|
requirements:
|
52
67
|
- - ! '>='
|
@@ -54,10 +69,15 @@ dependencies:
|
|
54
69
|
version: '0'
|
55
70
|
type: :development
|
56
71
|
prerelease: false
|
57
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
58
78
|
- !ruby/object:Gem::Dependency
|
59
79
|
name: jeweler
|
60
|
-
requirement:
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
61
81
|
none: false
|
62
82
|
requirements:
|
63
83
|
- - ~>
|
@@ -65,10 +85,15 @@ dependencies:
|
|
65
85
|
version: 1.8.3
|
66
86
|
type: :development
|
67
87
|
prerelease: false
|
68
|
-
version_requirements:
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 1.8.3
|
69
94
|
- !ruby/object:Gem::Dependency
|
70
95
|
name: rspec
|
71
|
-
requirement:
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
72
97
|
none: false
|
73
98
|
requirements:
|
74
99
|
- - ~>
|
@@ -76,10 +101,15 @@ dependencies:
|
|
76
101
|
version: 2.8.0
|
77
102
|
type: :development
|
78
103
|
prerelease: false
|
79
|
-
version_requirements:
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 2.8.0
|
80
110
|
- !ruby/object:Gem::Dependency
|
81
111
|
name: rdoc
|
82
|
-
requirement:
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
83
113
|
none: false
|
84
114
|
requirements:
|
85
115
|
- - ~>
|
@@ -87,10 +117,15 @@ dependencies:
|
|
87
117
|
version: '3.12'
|
88
118
|
type: :development
|
89
119
|
prerelease: false
|
90
|
-
version_requirements:
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '3.12'
|
91
126
|
- !ruby/object:Gem::Dependency
|
92
127
|
name: bundler
|
93
|
-
requirement:
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
94
129
|
none: false
|
95
130
|
requirements:
|
96
131
|
- - ! '>='
|
@@ -98,7 +133,12 @@ dependencies:
|
|
98
133
|
version: 1.1.0
|
99
134
|
type: :development
|
100
135
|
prerelease: false
|
101
|
-
version_requirements:
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: 1.1.0
|
102
142
|
description: Ruby library for generating PDF checks that you can take to the bank
|
103
143
|
email: ryan@thewinograds.com
|
104
144
|
executables: []
|
@@ -163,7 +203,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
163
203
|
version: '0'
|
164
204
|
segments:
|
165
205
|
- 0
|
166
|
-
hash:
|
206
|
+
hash: 2646691092288794916
|
167
207
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
168
208
|
none: false
|
169
209
|
requirements:
|
@@ -172,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
212
|
version: '0'
|
173
213
|
requirements: []
|
174
214
|
rubyforge_project:
|
175
|
-
rubygems_version: 1.8.
|
215
|
+
rubygems_version: 1.8.23
|
176
216
|
signing_key:
|
177
217
|
specification_version: 3
|
178
218
|
summary: Generate PDF checks
|