formatted_phone_number 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/formatted_phone_number.gemspec +2 -2
- data/lib/formatted_phone_number/builder.rb +3 -3
- metadata +2 -2
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new("formatted_phone_number", '0.1.
|
5
|
+
Echoe.new("formatted_phone_number", '0.1.4') do |p|
|
6
6
|
p.description = "Phone number handler for ActiveRecord models"
|
7
7
|
p.url = "http://github.com/jonohrt/formatted_phone_number"
|
8
8
|
p.author = "Jon Ohrt"
|
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{formatted_phone_number}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.4"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = [%q{Jon Ohrt}]
|
9
|
-
s.date = %q{2011-08-
|
9
|
+
s.date = %q{2011-08-23}
|
10
10
|
s.description = %q{Phone number handler for ActiveRecord models}
|
11
11
|
s.email = %q{jonohrt1@gmail.com}
|
12
12
|
s.extra_rdoc_files = [%q{README.rdoc}, %q{lib/formatted_phone_number.rb}, %q{lib/formatted_phone_number/builder.rb}, %q{lib/formatted_phone_number/formatted_phone_number.rb}]
|
@@ -2,11 +2,11 @@ module FormattedPhoneNumber
|
|
2
2
|
module FormBuilder
|
3
3
|
def phone_number_fields
|
4
4
|
content = "("
|
5
|
-
content += @template.text_field(@object_name, :phone_area_code, { :size => 3, :maxlength => 3, :class => "phone_field"})
|
5
|
+
content += @template.text_field(@object_name, :phone_area_code, { :size => 3, :maxlength => 3, :class => "phone_field areacode"})
|
6
6
|
content += ")"
|
7
|
-
content += @template.text_field(@object_name, :phone_prefix, { :size => 3, :maxlength => 3, :class => "phone_field"})
|
7
|
+
content += @template.text_field(@object_name, :phone_prefix, { :size => 3, :maxlength => 3, :class => "phone_field prefix"})
|
8
8
|
content += " - "
|
9
|
-
content += @template.text_field(@object_name, :phone_suffix, { :size => 4, :maxlength => 4, :class => "phone_field"})
|
9
|
+
content += @template.text_field(@object_name, :phone_suffix, { :size => 4, :maxlength => 4, :class => "phone_field suffix"})
|
10
10
|
content.html_safe
|
11
11
|
end
|
12
12
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: formatted_phone_number
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jon Ohrt
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-08-
|
13
|
+
date: 2011-08-23 00:00:00 Z
|
14
14
|
dependencies: []
|
15
15
|
|
16
16
|
description: Phone number handler for ActiveRecord models
|