def tags_rename(old_tag, new_tag=nil)
      params = {}
      params[:old] = old_tag
      params[:new] = new_tag if new_tag

      options = create_params(params)
      result_code = self.class.get('/tags/rename', options).parsed_response["result"]

      raise Error.new(result_code) if result_code != "done"

      result_code
    end
def tags_rename(old_tag, new_tag=nil)
      params = {}
      params[:old] = old_tag
      params[:new] = new_tag if new_tag

      options = create_params(params)
      result_code = self.class.get('/tags/rename', options).parsed_response["result"]

      raise Error.new(result_code) if result_code != "done"

      result_code
    end
Rename an tag or fold it into an existing tag

 @param [String] old_tag Tag to rename (not case sensitive)
 @param [String] new_tag New tag (if empty nothing will happen)

 @return [String] "done" when everything went as expected
 @raise [Error] if result code is not "done"