vesr 0.12.1 → 0.12.2
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.
- data/lib/vesr/prawn/esr_recipe.rb +0 -10
- data/lib/vesr/version.rb +1 -1
- metadata +4 -4
@@ -21,16 +21,6 @@ module Prawn
|
|
21
21
|
draw_address sender.vcard
|
22
22
|
end
|
23
23
|
|
24
|
-
# Draws the full address of a vcard
|
25
|
-
def draw_address(vcard)
|
26
|
-
lines = [vcard.full_name, vcard.extended_address, vcard.street_address, vcard.post_office_box, "#{vcard.postal_code} #{vcard.locality}"]
|
27
|
-
lines = lines.map {|line| line.strip unless (line.nil? or line.strip.empty?)}.compact
|
28
|
-
|
29
|
-
lines.each do |line|
|
30
|
-
text line
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
24
|
def draw_account(account)
|
35
25
|
bounding_box [cm2pt(2.6), bounds.top - cm2pt(3.4)], :width => cm2pt(2.5) do
|
36
26
|
font_size 9 do
|
data/lib/vesr/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vesr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 43
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 12
|
9
|
-
-
|
10
|
-
version: 0.12.
|
9
|
+
- 2
|
10
|
+
version: 0.12.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Roman Simecek
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2012-04-
|
19
|
+
date: 2012-04-19 00:00:00 Z
|
20
20
|
dependencies: []
|
21
21
|
|
22
22
|
description: VESR provides support for ESR number calculations and gives ready to use Rails components.
|