updating gemfile to latest ruby SDK and improving ruby 1.8.7 support