phony_rails 0.2.1 → 0.2.2
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/Gemfile.lock +11 -11
- data/lib/phony_rails.rb +1 -1
- data/lib/phony_rails/version.rb +1 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
phony_rails (0.
|
|
4
|
+
phony_rails (0.2.2)
|
|
5
5
|
activerecord (>= 3.0)
|
|
6
6
|
countries (>= 0.8.2)
|
|
7
7
|
phony (>= 1.7.7)
|
|
@@ -9,16 +9,16 @@ PATH
|
|
|
9
9
|
GEM
|
|
10
10
|
remote: http://rubygems.org/
|
|
11
11
|
specs:
|
|
12
|
-
activemodel (3.2.
|
|
13
|
-
activesupport (= 3.2.
|
|
12
|
+
activemodel (3.2.13)
|
|
13
|
+
activesupport (= 3.2.13)
|
|
14
14
|
builder (~> 3.0.0)
|
|
15
|
-
activerecord (3.2.
|
|
16
|
-
activemodel (= 3.2.
|
|
17
|
-
activesupport (= 3.2.
|
|
15
|
+
activerecord (3.2.13)
|
|
16
|
+
activemodel (= 3.2.13)
|
|
17
|
+
activesupport (= 3.2.13)
|
|
18
18
|
arel (~> 3.0.2)
|
|
19
19
|
tzinfo (~> 0.3.29)
|
|
20
|
-
activesupport (3.2.
|
|
21
|
-
i18n (
|
|
20
|
+
activesupport (3.2.13)
|
|
21
|
+
i18n (= 0.6.1)
|
|
22
22
|
multi_json (~> 1.0)
|
|
23
23
|
arel (3.0.2)
|
|
24
24
|
builder (3.0.4)
|
|
@@ -41,8 +41,8 @@ GEM
|
|
|
41
41
|
rb-fchange (~> 0.0.5)
|
|
42
42
|
rb-fsevent (~> 0.9.1)
|
|
43
43
|
rb-inotify (~> 0.8.8)
|
|
44
|
-
multi_json (1.
|
|
45
|
-
phony (1.
|
|
44
|
+
multi_json (1.7.2)
|
|
45
|
+
phony (1.9.0)
|
|
46
46
|
rake (10.0.3)
|
|
47
47
|
rb-fchange (0.0.5)
|
|
48
48
|
ffi
|
|
@@ -59,7 +59,7 @@ GEM
|
|
|
59
59
|
rspec-mocks (2.11.1)
|
|
60
60
|
sqlite3 (1.3.6)
|
|
61
61
|
thor (0.15.4)
|
|
62
|
-
tzinfo (0.3.
|
|
62
|
+
tzinfo (0.3.37)
|
|
63
63
|
|
|
64
64
|
PLATFORMS
|
|
65
65
|
ruby
|
data/lib/phony_rails.rb
CHANGED
|
@@ -49,7 +49,7 @@ module PhonyRails
|
|
|
49
49
|
options[:country_code] ||= self.country_code if self.respond_to?(:country_code)
|
|
50
50
|
attributes.each do |attribute|
|
|
51
51
|
attribute_name = options[:as] || attribute
|
|
52
|
-
raise RuntimeError, "No attribute #{attribute_name} found on #{self.class.name} (PhonyRails)" if not self.attribute_method?(attribute_name)
|
|
52
|
+
raise RuntimeError, "No attribute #{attribute_name} found on #{self.class.name} (PhonyRails)" if not self.class.attribute_method?(attribute_name)
|
|
53
53
|
write_attribute(attribute_name, PhonyRails.normalize_number(read_attribute(attribute), options))
|
|
54
54
|
end
|
|
55
55
|
end
|
data/lib/phony_rails/version.rb
CHANGED