Permalink
Commits on Jan 14, 2014
  1. Remove belongs_to :addressable from Address, as some apps may want to…

    … define a belongs_to :address
    
    instead (or separate belongs_to :physical_address and belongs_to :mailing_address).
    committed Jan 14, 2014
Commits on Nov 29, 2012
  1. Removed AddressEngine::Version constant because it was causing all Ac…

    …tiveRecord
    
    models to also have a Version constant defined in them due to the module being
    included into ActiveRecord::Base. This meant that referencing Version from
    within my User model caused it to reference this version number instead of (as
    intended) referencing the class named Version.
    Tyler Rick committed Nov 29, 2012
Commits on Dec 9, 2011
  1. added empty?

    Tyler Rick committed Dec 9, 2011
Commits on Aug 24, 2011
  1. more work in progress

    Tyler Rick committed Aug 24, 2011
Commits on Aug 21, 2011
  1. Added has_address/has_addresses macro methods

    Added tests for has_one/has_many associations
    Tyler Rick committed Aug 21, 2011
  2. Repurposed country column to be used for storing country *name* instead

    of code. Added country_code2 column to store ISO 3166-1 alpha-2 codes
    (and country_code3 for future expansion).
    
    Now you can set the country either by using the country= writer (if you
    want to use a country name as input) or the country_code= writer (if you
    want to use a country code as input). It will automatically update the
    other column for you and keep both of them up-to-date.
    
    Added some special handling of UK countries, since Carmen doesn't
    recognize 'England', etc. as countries but we want to allow those
    country names to be stored since they are kind of an important part of
    the address.
    
    Rewrote parts and readable_parts (renamed to lines) to make more concise
    and readable. Fixed problem with readable_parts where it added a comma
    before postal code.
    
    Added attribute_normalizer dependency and cleanlines normalizer for address.
    
    Added active_record_ignored_attributes, which provides the same_as?
    comparison method. (Removed the identical? method I had added
    previously.)
    
    Added fairly comprehensive suite of tests
    Tyler Rick committed Aug 19, 2011
  3. Added rspec

    Tyler Rick committed Aug 19, 2011
Commits on Aug 19, 2011
  1. Used 'bundle gem' command to generate a cleaner gemspec than Jeweler

    provides. Reorganized things a bit.
    Tyler Rick committed Aug 19, 2011
Commits on Aug 18, 2011
  1. Added Address#identical?

    Tyler Rick committed Aug 18, 2011
  2. Added country_name= method and made it smart enough to not use

    Carmen::country_code(name) when name is blank since Carmen::country_code
    currently has a bug where Carmen::country_code('') == 'AF'.
    
    Added a similar workaround for this bug in country_name.
    Tyler Rick committed Aug 18, 2011
Commits on Aug 4, 2011
  1. Renamed state_province_region to province. (state_province_region is too

    long and calling it both a state and a province and a region is redundant)
    
    Renamed zip_postal_code to postal_code for the same reasons.
    Tyler Rick committed Aug 4, 2011
  2. Then again, these validations should all be optional, so the app that's

    using this engine can customize their Address model with the validations
    they actually want.
    Tyler Rick committed Aug 4, 2011
  3. Shouldn't address be required?

    Tyler Rick committed Aug 4, 2011
  4. Changed message of validates_format_of :email

    Made :phone not required (would be nice if it could be optional through
    some config option)
    Tyler Rick committed Aug 4, 2011
Commits on Aug 3, 2011
  1. Removed Address#order and Address#shipping_rules since they appear to be

    unused, vestigial methods
    Tyler Rick committed Aug 3, 2011
Commits on Mar 8, 2011
  1. stupid stupid

    paulca committed Mar 8, 2011
  2. bumpity bump

    paulca committed Mar 8, 2011
  3. dammit

    paulca committed Mar 8, 2011
  4. update readme

    paulca committed Mar 8, 2011
  5. remove carmen dependency

    paulca committed Mar 8, 2011
  6. address me

    paulca committed Mar 8, 2011