Sha256: 4074e0deccfc2e544ac64d5184395e75090c31dfd1c14d657bdfc3be5c7d0d53

Contents?: true

Size: 881 Bytes

Versions: 9

Compression:

Stored size: 881 Bytes

Contents

# frozen_string_literal: true
module Shipit
  class CommandLineUser
    def present?
      false
    end

    def email
      'command_line@example.com'
    end

    def login
      'command_line'
    end

    def name
      'CommandLine'
    end

    def avatar_url
      'https://github.com/images/error/octocat_happy.gif'
    end

    def id
    end

    def github_id
    end

    def logged_in?
      false
    end

    def authorized?
      Shipit.authentication_disabled?
    end

    def repositories_contributed_to
      []
    end

    def stacks_contributed_to
      []
    end

    def avatar_uri
      User::DEFAULT_AVATAR.dup
    end

    def created_at
      Time.at(0).utc
    end
    alias_method :updated_at, :created_at

    def read_attribute_for_serialization(attr)
      public_send(attr)
    end

    def github_api
      Shipit.github.api
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
shipit-engine-0.39.0 app/models/shipit/command_line_user.rb
shipit-engine-0.38.0 app/models/shipit/command_line_user.rb
shipit-engine-0.37.0 app/models/shipit/command_line_user.rb
shipit-engine-0.36.1 app/models/shipit/command_line_user.rb
shipit-engine-0.36.0 app/models/shipit/command_line_user.rb
shipit-engine-0.35.1 app/models/shipit/command_line_user.rb
shipit-engine-0.35.0 app/models/shipit/command_line_user.rb
shipit-engine-0.34.0 app/models/shipit/command_line_user.rb
shipit-engine-0.33.0 app/models/shipit/command_line_user.rb