def list(*args)
      params = args.extract_options!
      normalize! params
      _merge_user_into_params!(params) unless params.has_key?('user')
      filter! %w[ user type ], params

      response = #if (user_name = params.delete("user"))
                 #  get_request("/1.0/users/#{user_name}", params)
                 #else
                   # For authenticated user
                   get_request("/1.0/user/repositories", params)
                 #end
      return response unless block_given?
      response.each { |el| yield el }
    end
def list(*args)
      params = args.extract_options!
      normalize! params
      _merge_user_into_params!(params) unless params.has_key?('user')
      filter! %w[ user type ], params

      response = #if (user_name = params.delete("user"))
                 #  get_request("/1.0/users/#{user_name}", params)
                 #else
                   # For authenticated user
                   get_request("/1.0/user/repositories", params)
                 #end
      return response unless block_given?
      response.each { |el| yield el }
    end
List repositories for the authenticated user

 = Examples
   bitbucket = BitBucket.new :oauth_token => '...', :oauth_secret => '...'
   bitbucket.repos.list
   bitbucket.repos.list { |repo| ... }

 List public repositories for the specified user.

 = Examples
   bitbucket = BitBucket.new
   bitbucket.repos.list :user => 'user-name'
   bitbucket.repos.list :user => 'user-name', { |repo| ... }