Sha256: 48c8b76cada26af99a81dbc139219d61400b451e4e78a521ec2815201f783c52

Contents?: true

Size: 299 Bytes

Versions: 27

Compression:

Stored size: 299 Bytes

Contents

module Octokit
  module Authentication
    def authentication
      if login && password
        {:login => login, :password => password}
      else
        {}
      end
    end

    def authenticated?
      !authentication.empty?
    end

    def oauthed?
      !oauth_token.nil?
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
octokit-1.11.0 lib/octokit/authentication.rb
octokit-1.10.0 lib/octokit/authentication.rb
octokit-1.9.4 lib/octokit/authentication.rb
octokit-1.9.3 lib/octokit/authentication.rb
octokit-1.9.2 lib/octokit/authentication.rb
octokit-1.9.1 lib/octokit/authentication.rb
octokit-1.8.1 lib/octokit/authentication.rb
octokit-1.8.0 lib/octokit/authentication.rb
octokit-1.7.0 lib/octokit/authentication.rb
octokit-1.6.1 lib/octokit/authentication.rb
octokit-1.6.0 lib/octokit/authentication.rb
octokit-1.5.0 lib/octokit/authentication.rb
octokit-1.4.0 lib/octokit/authentication.rb
octokit-1.3.0 lib/octokit/authentication.rb
octokit-1.2.1 lib/octokit/authentication.rb
octokit-1.2.0 lib/octokit/authentication.rb
octokit-1.1.1 lib/octokit/authentication.rb
octokit-1.1.0 lib/octokit/authentication.rb
octokit-1.0.7 lib/octokit/authentication.rb
octokit-1.0.6 lib/octokit/authentication.rb