has_vcards 0.8.1 → 0.9.0

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.
@@ -19,7 +19,12 @@ class PhoneNumber < ActiveRecord::Base
19
19
  end
20
20
  end
21
21
 
22
- def to_s(separator = " ")
23
- return [label, number].compact.join(separator)
22
+ def to_s(separator = " ", format = :default)
23
+ case format
24
+ when :label
25
+ return [label, number].compact.join(separator)
26
+ else
27
+ return number
28
+ end
24
29
  end
25
30
  end
@@ -1,3 +1,3 @@
1
1
  module HasVcards
2
- VERSION = '0.8.1'
2
+ VERSION = '0.9.0'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_vcards
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
4
+ hash: 59
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 8
9
- - 1
10
- version: 0.8.1
8
+ - 9
9
+ - 0
10
+ version: 0.9.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Simon H\xC3\xBCrlimann (CyT)"