Fixes spec deprecation warnings
Updates the Rakefile