addressable_record 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/VERSION +1 -1
- data/addressable_record.gemspec +2 -2
- data/lib/addressable_record.rb +1 -1
- data/lib/addressable_record/address.rb +0 -3
- metadata +2 -2
data/History.txt
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
data/addressable_record.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{addressable_record}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["C. Jason Harrelson (midas)"]
|
12
|
-
s.date = %q{2010-03-
|
12
|
+
s.date = %q{2010-03-29}
|
13
13
|
s.description = %q{Encapsulates the composed of pattern for addresses into any easy to use library. Provides convenience methods for formatting, parsing, etc.}
|
14
14
|
s.email = %q{jason@lookforwardenterprises.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/addressable_record.rb
CHANGED
@@ -4,7 +4,7 @@ require 'addressable_record/address'
|
|
4
4
|
require 'addressable_record/active_record_extesions'
|
5
5
|
|
6
6
|
module AddressableRecord
|
7
|
-
VERSION = '1.0.
|
7
|
+
VERSION = '1.0.4'
|
8
8
|
end
|
9
9
|
|
10
10
|
ActiveRecord::Base.send( :include, AddressableRecord::ActiveRecordExtensions ) if defined?( ActiveRecord::Base )
|
@@ -17,10 +17,7 @@ module AddressableRecord
|
|
17
17
|
|
18
18
|
@streets = AddressableRecord::Address.parse_street( attrs[:raw_street] || '' )
|
19
19
|
raw_zip = (attrs[:raw_zip_code] || '')
|
20
|
-
puts raw_zip
|
21
|
-
puts raw_zip.size
|
22
20
|
@zip_code = raw_zip.size == 5 ? raw_zip : raw_zip.gsub( /(\d{5})(\d{4})/, "\\1#{@@zip_code_delimiter}\\2" )
|
23
|
-
puts @zip_code
|
24
21
|
|
25
22
|
@pattern_map = {
|
26
23
|
'%s' => @streets.join( ', ' ) || "",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: addressable_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- C. Jason Harrelson (midas)
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-03-
|
12
|
+
date: 2010-03-29 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|