Sha256: cd44f792bcfaacd706b9bfc803c529c9f4c559899ae0edb3ea6fcb10bd811bc4

Contents?: true

Size: 379 Bytes

Versions: 6

Compression:

Stored size: 379 Bytes

Contents

module Jiralicious
  ##
  # The BasicSesion class extends the default Session class by forcing
  # basic_auth to be fired prior to any other action.
  #
  class BasicSession < Session
    ##
    # Fires off the basic_auth with the local username and password.
    #
    def before_request
      self.class.basic_auth(Jiralicious.username, Jiralicious.password)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jiralicious-0.5.0 lib/jiralicious/basic_session.rb
jiralicious-0.4.3 lib/jiralicious/basic_session.rb
jiralicious-0.4.0 lib/jiralicious/basic_session.rb
jiralicious-0.3.0 lib/jiralicious/basic_session.rb
jiralicious-0.2.2 lib/jiralicious/basic_session.rb
jiralicious-0.2.1 lib/jiralicious/basic_session.rb