Module: Authlogic

Defined in:
lib/authlogic/version.rb,
lib/authlogic/i18n.rb,
lib/authlogic/config.rb,
lib/authlogic/errors.rb,
lib/authlogic/random.rb,
lib/authlogic/test_case.rb,
lib/authlogic/session/base.rb,
lib/authlogic/i18n/translator.rb,
lib/authlogic/crypto_providers.rb,
lib/authlogic/cookie_credentials.rb,
lib/authlogic/crypto_providers/md5.rb,
lib/authlogic/crypto_providers/sha1.rb,
lib/authlogic/test_case/mock_logger.rb,
lib/authlogic/acts_as_authentic/base.rb,
lib/authlogic/test_case/mock_request.rb,
lib/authlogic/acts_as_authentic/email.rb,
lib/authlogic/acts_as_authentic/login.rb,
lib/authlogic/crypto_providers/bcrypt.rb,
lib/authlogic/crypto_providers/md5/v2.rb,
lib/authlogic/crypto_providers/scrypt.rb,
lib/authlogic/crypto_providers/sha256.rb,
lib/authlogic/crypto_providers/sha512.rb,
lib/authlogic/crypto_providers/sha1/v2.rb,
lib/authlogic/test_case/mock_controller.rb,
lib/authlogic/test_case/mock_cookie_jar.rb,
lib/authlogic/acts_as_authentic/password.rb,
lib/authlogic/crypto_providers/sha256/v2.rb,
lib/authlogic/crypto_providers/sha512/v2.rb,
lib/authlogic/test_case/mock_api_controller.rb,
lib/authlogic/acts_as_authentic/magic_columns.rb,
lib/authlogic/test_case/rails_request_adapter.rb,
lib/authlogic/controller_adapters/rack_adapter.rb,
lib/authlogic/controller_adapters/rails_adapter.rb,
lib/authlogic/acts_as_authentic/logged_in_status.rb,
lib/authlogic/acts_as_authentic/perishable_token.rb,
lib/authlogic/acts_as_authentic/persistence_token.rb,
lib/authlogic/controller_adapters/sinatra_adapter.rb,
lib/authlogic/controller_adapters/abstract_adapter.rb,
lib/authlogic/acts_as_authentic/session_maintenance.rb,
lib/authlogic/acts_as_authentic/single_access_token.rb,
lib/authlogic/acts_as_authentic/queries/find_with_case.rb,
lib/authlogic/acts_as_authentic/queries/case_sensitivity.rb,
lib/authlogic/session/magic_column/assigns_last_request_at.rb

Overview

Authlogic bridge for Sinatra

Defined Under Namespace

Modules: ActsAsAuthentic, Config, ControllerAdapters, CryptoProviders, I18n, Random, Session, TestCase Classes: CookieCredentials, Error, InvalidCryptoProvider, ModelSetupError, NilCryptoProvider

Class Method Summary collapse

Class Method Details

.gem_versionObject

Returns a ‘::Gem::Version`, the version number of the authlogic gem.

It is preferable for a library to provide a ‘gem_version` method, rather than a `VERSION` string, because `::Gem::Version` is easier to use in a comparison.

We cannot return a frozen ‘Version`, because rubygems will try to modify it. github.com/binarylogic/authlogic/pull/590

Added in 4.0.0



19
20
21
# File 'lib/authlogic/version.rb', line 19

def self.gem_version
  ::Gem::Version.new("6.4.3")
end