addresslogic 1.1.1 → 1.1.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/CHANGELOG.rdoc +4 -0
- data/lib/addresslogic.rb +1 -1
- data/lib/addresslogic/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG.rdoc
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
== 1.1.2
|
2
|
+
|
3
|
+
* Update defaults to use changes in 1.1.1
|
4
|
+
|
1
5
|
== 1.1.1
|
2
6
|
|
3
7
|
* Clean up code to use recursion and allow fields to be specified like: [:street1, :street2, [:city, [:state, :zip]], :country]. Which is the standard american way of displaying address. Which looks like: [street1, street2, "#{city}, #{state} #{zip}", country]
|
data/lib/addresslogic.rb
CHANGED
@@ -23,7 +23,7 @@ module Addresslogic
|
|
23
23
|
attr_accessor :address_parts_fields
|
24
24
|
|
25
25
|
def apply_addresslogic(args = {})
|
26
|
-
self.address_parts_fields = args[:fields] || [:street1, :street2, :city, [:state, :zip], :country]
|
26
|
+
self.address_parts_fields = args[:fields] || [:street1, :street2, [:city, [:state, :zip]], :country]
|
27
27
|
include Addresslogic::InstanceMethods
|
28
28
|
end
|
29
29
|
end
|
data/lib/addresslogic/version.rb
CHANGED