Fix AttributeFormats#define_normalization_method_for for Rails 4.0.4+
Use Gem::Version for better version comparison
Rails3 didn't have ActiveRecord.version--wrap version in Gem::Version
Ignore Gemfile.lock