Update adaptor.rb

fix missing end