fix AS dependency to work with 4.1, and bump ruby version