vesr 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vesr/prawn/esr_recipe.rb +10 -0
- data/lib/vesr/version.rb +1 -1
- metadata +6 -8
@@ -21,6 +21,16 @@ 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
|
+
|
24
34
|
def draw_account(account)
|
25
35
|
bounding_box [cm2pt(2.6), bounds.top - cm2pt(3.4)], :width => cm2pt(2.5) do
|
26
36
|
text account.pc_id
|
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 5
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 1
|
10
|
+
version: 0.6.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Roman Simecek
|
@@ -16,8 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-
|
20
|
-
default_executable:
|
19
|
+
date: 2011-12-02 00:00:00 Z
|
21
20
|
dependencies: []
|
22
21
|
|
23
22
|
description: VESR provides support for ESR number calculations and gives ready to use Rails components.
|
@@ -53,7 +52,6 @@ files:
|
|
53
52
|
- lib/vesr/version.rb
|
54
53
|
- README.rdoc
|
55
54
|
- LICENSE.txt
|
56
|
-
has_rdoc: true
|
57
55
|
homepage: https://github.com/raskhadafi/vesr
|
58
56
|
licenses:
|
59
57
|
- MIT
|
@@ -83,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
81
|
requirements: []
|
84
82
|
|
85
83
|
rubyforge_project:
|
86
|
-
rubygems_version: 1.
|
84
|
+
rubygems_version: 1.8.11
|
87
85
|
signing_key:
|
88
86
|
specification_version: 3
|
89
87
|
summary: VESR invoice support library.
|