EmmanuelOga/ffaker — pull request #29 by doctorbh (2011-11-11 21:14:19+00:00)
Title: Refactor US, UK addresses - Submitted for your consideration

I took a few minutes to refactor out the existing US/UK specific methods in the Address module into separate modules of their own, like the AddressDE and AddressCA.

I added in deprecation warnings on the existing methods and pointed them to the new methods to retain backward compatibility. (I'm sure there's a better way to do deprecation warnings but they're in there as well as I know how to.) Testing verifies that backward compatibility is working.

Only thing I was unsure about was whether to leave in the default zip_code on Address. I chose to put this in AddressUS as I believe it is specific to the US.

In any case, this is simply submitted for consideration to see if you like the idea. This may make it easier for others to include modules with details specific to their country.