Permalink
Commits on Jan 12, 2011
  1. Version bump to 0.2.5

    committed Jan 12, 2011
Commits on Jan 11, 2011
  1. Renamed #values_sql_for_column_names_and_attributes to #values_sql_fo…

    …r_columns_and_attributes and cleaned up how it dealt with columns.
    
    * added back in the support for type-casting based on the database column
    * removed unused method in ActiveRecord::Import::AbstractAdapter
    
    https://github.com/zdennis/activerecord-import/issues#issue/5
    committed Jan 11, 2011
  2. Simplify validations_arry_for_column_names_and_attributes with map, e…

    …ach_with_index and Hash.
    
    Hash[column_names.zip(attributes)] would be much clearer, but would leave nil values for missing attributes which doesn't match the existing behavior.
    Empact committed with Nov 17, 2010
  3. Consolidate insert_sql between supports_import? cases so both make us…

    …e of options[:ignore]
    Empact committed with Nov 17, 2010
  4. Reinstate the deleting of the :validate option - not because it was c…

    …ausing trouble, but to be a bit paranoid (reverts 63d6fae)
    Empact committed with Nov 17, 2010
  5. Fix that values_sql_for_attributes wasn't accessing the columns with …

    …the same indexes as the array_of_attributes, and so was sometime mismatched.
    
    Also return to the column_names[j] == primary_key style of testing, as the column itself is not always present
    Empact committed with Nov 17, 2010
  6. Codify import results in a Struct rather than OpenStruct, as it's a f…

    …aster, more rigid structure
    Empact committed with Nov 17, 2010
  7. #dup array_of_attributes a bit earlier - there's no point in duping t…

    …he primary_key nulls we might put in next
    Empact committed with Nov 17, 2010
  8. Refactor remaining supports_import? split to share code in values_sql…

    …_for_column_names_and_attributes. This means both with properly support sequences.
    
    Rather than pass a ton of variables (sequence_name, columns, column_names, &c.), move the method out of the connection.  Also, use Column#primary to check primary key status.
    Empact committed with Nov 17, 2010
  9. Extract columns_sql local more generally in #import_without_validatio…

    …ns_or_callbacks. This is DRY-er, more consistent between the supports_import? cases and enables us to inline #quote_column_names
    Empact committed with Nov 17, 2010
  10. Inline multiple_value_sets_insert_sql because it never changes, isn't…

    … particularly well-factored, and for parity with "not supports_import?"
    Empact committed with Nov 17, 2010
  11. Avoid N << method calls in #import_without_validations_or_callbacks b…

    …y chaining #map (is simpler, should be more performant, AFAIK)
    Empact committed with Nov 17, 2010
  12. Don't initialize options[:on_duplicate_key_update] if the adapter doe…

    …sn't #supports_on_duplicate_key_update?
    Empact committed with Nov 17, 2010
Commits on Jan 6, 2011
  1. Version bump to 0.2.4

    committed Jan 6, 2011
  2. Use ActiveRecord Column#type_cast to properly parse fields represente…

    …d by a string.
    
    Fixed issued reported by Nick Burdick where imported datetime fields was not correctly working with certain string formats for MySQL which doesn't support MM/DD/YYYY format directly.
    committed Jan 6, 2011
Commits on Nov 3, 2010
  1. Version bump to 0.2.3

    committed Nov 3, 2010
  2. No longer support 3.0.0rc, force rails ~> 3.0.0. Resolves dependency …

    …issue where gem was installing activesupport and activemodel 3.0.0rc versions even when 3.0.0 or 3.0.1 were installed
    committed Nov 3, 2010
Commits on Oct 6, 2010
  1. Version bump to 0.2.2

    committed Oct 6, 2010
Commits on Oct 5, 2010
  1. Version bump to 0.2.1

    committed Oct 5, 2010
Commits on Sep 27, 2010
  1. Version bump to 0.2.0

    committed Sep 26, 2010