phony_rails 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -42,6 +42,12 @@ In your views use:
42
42
 
43
43
  ## Changelog
44
44
 
45
+ 0.0.9
46
+ * Fix for using same options Hash for all models.
47
+
48
+ 0.0.8
49
+ * Improved number cleaning not to remove '+' and leading 0's. Now works with national numbers starting with 0 followed by country_code. Eg. 032 in BE.
50
+
45
51
  0.0.7
46
52
  * Fixed problem with '+' number
47
53
 
@@ -55,6 +55,7 @@ module PhonyRails
55
55
  # This methods sets the attribute to the normalized version.
56
56
  # It also adds the country_code (number), eg. 31 for NL numbers.
57
57
  def set_phony_normalized_numbers(attributes, options = {})
58
+ options = options.clone
58
59
  options[:country_code] ||= self.country_code if self.respond_to?(:country_code)
59
60
  attributes.each do |attribute|
60
61
  write_attribute(attribute, PhonyRails.normalize_number(read_attribute(attribute), options))
@@ -1,3 +1,3 @@
1
1
  module PhonyRails
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phony_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
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: 2012-06-01 00:00:00.000000000Z
12
+ date: 2012-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: phony
16
- requirement: &70279657969100 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: 1.6.7
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70279657969100
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 1.6.7
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: activerecord
27
- requirement: &70279657968600 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
@@ -32,7 +37,12 @@ dependencies:
32
37
  version: '3.0'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *70279657968600
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '3.0'
36
46
  description: This Gem adds useful methods to your Rails app to validate, display and
37
47
  save phone numbers.
38
48
  email:
@@ -70,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
80
  version: '0'
71
81
  requirements: []
72
82
  rubyforge_project:
73
- rubygems_version: 1.8.15
83
+ rubygems_version: 1.8.24
74
84
  signing_key:
75
85
  specification_version: 3
76
86
  summary: This Gem adds useful methods to your Rails app to validate, display and save