validates_and_formats_phones 0.0.10 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +10 -6
- data/README.rdoc +10 -6
- data/lib/validates_and_formats_phones/version.rb +1 -1
- metadata +3 -3
data/README
CHANGED
@@ -12,11 +12,11 @@ But you can change all that...just read on.
|
|
12
12
|
|
13
13
|
1. Install it as a gem:
|
14
14
|
|
15
|
-
sudo gem install validates_and_formats_phones
|
15
|
+
(sudo) gem install validates_and_formats_phones
|
16
16
|
|
17
|
-
2. Then add it to your <tt>
|
17
|
+
2. Then add it to your <tt>Gemfile</tt> file
|
18
18
|
|
19
|
-
|
19
|
+
gem 'validates_and_formats_phones', '~> 1.0.0'
|
20
20
|
|
21
21
|
3. Add the method <tt>validates_and_formats_phones</tt> to your model
|
22
22
|
|
@@ -69,8 +69,8 @@ You can also format and specify fields, like so:
|
|
69
69
|
|
70
70
|
== Configuration options
|
71
71
|
|
72
|
-
|
73
|
-
to
|
72
|
+
All configuration options available to validates_each are also available
|
73
|
+
to the phone validator.
|
74
74
|
For example:
|
75
75
|
|
76
76
|
class Person
|
@@ -79,7 +79,7 @@ For example:
|
|
79
79
|
|
80
80
|
Here's a quick link to the validates_each documentation at the time of writing:
|
81
81
|
|
82
|
-
http://api.rubyonrails.
|
82
|
+
http://api.rubyonrails.org/classes/ActiveModel/Validations/ClassMethods.html#method-i-validates_each
|
83
83
|
|
84
84
|
|
85
85
|
== Tiny string extension
|
@@ -93,6 +93,10 @@ As a tiny added benefit, String is extended with a to_phone method.
|
|
93
93
|
> => '1234-5678'
|
94
94
|
|
95
95
|
=Change Log
|
96
|
+
1.0.0
|
97
|
+
No significant changes.
|
98
|
+
0.0.10
|
99
|
+
1. Make compatible with Rails 3 (note this breaks compatibility with previous Rails versions)
|
96
100
|
0.0.7
|
97
101
|
1. Bug fix for ...yes... Ruby 1.8.5...That's dedication right there.
|
98
102
|
0.0.6
|
data/README.rdoc
CHANGED
@@ -12,11 +12,11 @@ But you can change all that...just read on.
|
|
12
12
|
|
13
13
|
1. Install it as a gem:
|
14
14
|
|
15
|
-
sudo gem install validates_and_formats_phones
|
15
|
+
(sudo) gem install validates_and_formats_phones
|
16
16
|
|
17
|
-
2. Then add it to your <tt>
|
17
|
+
2. Then add it to your <tt>Gemfile</tt> file
|
18
18
|
|
19
|
-
|
19
|
+
gem 'validates_and_formats_phones', '~> 1.0.0'
|
20
20
|
|
21
21
|
3. Add the method <tt>validates_and_formats_phones</tt> to your model
|
22
22
|
|
@@ -69,8 +69,8 @@ You can also format and specify fields, like so:
|
|
69
69
|
|
70
70
|
== Configuration options
|
71
71
|
|
72
|
-
|
73
|
-
to
|
72
|
+
All configuration options available to validates_each are also available
|
73
|
+
to the phone validator.
|
74
74
|
For example:
|
75
75
|
|
76
76
|
class Person
|
@@ -79,7 +79,7 @@ For example:
|
|
79
79
|
|
80
80
|
Here's a quick link to the validates_each documentation at the time of writing:
|
81
81
|
|
82
|
-
http://api.rubyonrails.
|
82
|
+
http://api.rubyonrails.org/classes/ActiveModel/Validations/ClassMethods.html#method-i-validates_each
|
83
83
|
|
84
84
|
|
85
85
|
== Tiny string extension
|
@@ -93,6 +93,10 @@ As a tiny added benefit, String is extended with a to_phone method.
|
|
93
93
|
> => '1234-5678'
|
94
94
|
|
95
95
|
=Change Log
|
96
|
+
1.0.0
|
97
|
+
No significant changes.
|
98
|
+
0.0.10
|
99
|
+
1. Make compatible with Rails 3 (note this breaks compatibility with previous Rails versions)
|
96
100
|
0.0.7
|
97
101
|
1. Bug fix for ...yes... Ruby 1.8.5...That's dedication right there.
|
98
102
|
0.0.6
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: validates_and_formats_phones
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
|
+
- 1
|
7
8
|
- 0
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 0.0.10
|
10
|
+
version: 1.0.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Bernardo Telles
|