phony_rails 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -89,8 +89,8 @@ module PhonyRails
89
89
  options = attributes.last.is_a?(Hash) ? attributes.pop : {}
90
90
  options.assert_valid_keys :country_code, :default_country_code
91
91
  attributes.each do |attribute|
92
- raise ArgumentError, "Attribute #{attribute} was not found on #{self.name} (PhonyRails)" unless self.attribute_method?(attribute)
93
92
  define_method :"normalized_#{attribute}" do
93
+ raise ArgumentError, "Attribute #{attribute} was not found on #{self.name} (PhonyRails)" unless self.attribute_method?(attribute)
94
94
  options[:country_code] ||= self.country_code if self.respond_to?(:country_code)
95
95
  PhonyRails.normalize_number(self[attribute], options)
96
96
  end
@@ -1,3 +1,3 @@
1
1
  module PhonyRails
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
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.10
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-05 00:00:00.000000000 Z
12
+ date: 2012-06-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: phony