has_vcards 0.12.3 → 0.12.4
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/app/models/vcard.rb +1 -1
- data/config/locales/has_vcards.de.yml +1 -1
- data/lib/has_vcards/version.rb +1 -1
- metadata +40 -20
data/app/models/vcard.rb
CHANGED
@@ -52,7 +52,7 @@ class Vcard < ActiveRecord::Base
|
|
52
52
|
|
53
53
|
# Helper methods
|
54
54
|
def address_lines
|
55
|
-
lines = [extended_address, street_address, "#{postal_code} #{locality}"]
|
55
|
+
lines = [extended_address, street_address, post_office_box, "#{postal_code} #{locality}"]
|
56
56
|
|
57
57
|
# Only return non-empty lines
|
58
58
|
lines.map {|line| line.strip unless (line.nil? or line.strip.empty?)}.compact
|
data/lib/has_vcards/version.rb
CHANGED
metadata
CHANGED
@@ -1,23 +1,32 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_vcards
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 39
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 12
|
9
|
+
- 4
|
10
|
+
version: 0.12.4
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
- Simon
|
12
|
+
authors:
|
13
|
+
- "Simon H\xC3\xBCrlimann (CyT)"
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
17
|
+
|
18
|
+
date: 2012-01-16 00:00:00 Z
|
13
19
|
dependencies: []
|
20
|
+
|
14
21
|
description: Rails gem providing VCard like contact and address models and helpers.
|
15
22
|
email: simon.huerlimann@cyt.ch
|
16
23
|
executables: []
|
24
|
+
|
17
25
|
extensions: []
|
18
|
-
|
26
|
+
|
27
|
+
extra_rdoc_files:
|
19
28
|
- README.markdown
|
20
|
-
files:
|
29
|
+
files:
|
21
30
|
- app/controllers/phone_numbers_controller.rb
|
22
31
|
- app/helpers/has_vcards_helper.rb
|
23
32
|
- app/models/address.rb
|
@@ -40,26 +49,37 @@ files:
|
|
40
49
|
- README.markdown
|
41
50
|
homepage: https://github.com/huerlisi/bookyt_pos
|
42
51
|
licenses: []
|
52
|
+
|
43
53
|
post_install_message:
|
44
54
|
rdoc_options: []
|
45
|
-
|
55
|
+
|
56
|
+
require_paths:
|
46
57
|
- lib
|
47
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
58
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
48
59
|
none: false
|
49
|
-
requirements:
|
50
|
-
- -
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
|
53
|
-
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
hash: 3
|
64
|
+
segments:
|
65
|
+
- 0
|
66
|
+
version: "0"
|
67
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
68
|
none: false
|
55
|
-
requirements:
|
56
|
-
- -
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
hash: 3
|
73
|
+
segments:
|
74
|
+
- 0
|
75
|
+
version: "0"
|
59
76
|
requirements: []
|
77
|
+
|
60
78
|
rubyforge_project:
|
61
|
-
rubygems_version: 1.8.
|
79
|
+
rubygems_version: 1.8.10
|
62
80
|
signing_key:
|
63
81
|
specification_version: 3
|
64
82
|
summary: VCard rails plugin
|
65
83
|
test_files: []
|
84
|
+
|
85
|
+
has_rdoc:
|