change AR dependency
tell CPK to use Rails 4.0 beta1
change referenced of #scoped to #scope
new namespace for ConnectionSpecification::Resolver
new initialize method for Relation
change Dirty implementation to match Rails 4
use the loaded Rails' implementation of the method unless it applies to CPK
use Rails' version unless it applies to CPK
updates to look like Rails AssociationScope
fix for default ordering by primary key
fix CPK update, switch to including CPK persistence as a module to gain access to `super` in Rails
fix for removal of `in?` method
fix nil scope
fix for default ordering by PK when column names are ambiguous due to being present in multiple tables in the query
fix for destroy
change back to following Rails to fix #changes on composite_belongs_to
Fix test for bracket assignment (see description)

Rails 4 has a commit (see https://github.com/rails/rails/commit/522c0fdb555d54ca68d1acfd1bd8e67fd0040086) that ensures the PK is always present in the @attributes hash, which was causing this test to break when attempting to assign values to that key in the hash (since it just loops over them).

Given there was no expectation the key existed in the prior versions, a valid fix seemed to me to be to do not test assignment in this version.

However, I'm not sure if that's a valid assumption or not, so please review / consider that carefully.
:green_heart: for mysql: move initialize_dupe into new core file so `super` does not end up calling the Rails version of the method
add note in History
find_in_batches should use lexicographic select