Module: Keyless
- Defined in:
- lib/keyless.rb,
lib/keyless/jwt.rb,
lib/keyless/version.rb,
lib/keyless/configuration.rb,
lib/keyless/rsa_public_key.rb
Overview
The gem version details.
Defined Under Namespace
Classes: Configuration, Jwt, RsaPublicKey
Constant Summary collapse
- VERSION =
The version of the
keyless
gem '2.0.0'
Class Attribute Summary collapse
-
.configuration ⇒ Configuration
Retrieve the current configuration object.
Class Method Summary collapse
-
.configure {|configuration| ... } ⇒ Object
Configure the concern by providing a block which takes care of this task.
-
.gem_version ⇒ Gem::Version
Returns the version of the gem as a
Gem::Version
. -
.reset_configuration! ⇒ Object
Reset the current configuration with the default one.
-
.version ⇒ String
Returns the version of gem as a string.
Class Attribute Details
.configuration ⇒ Configuration
Retrieve the current configuration object.
38 39 40 |
# File 'lib/keyless.rb', line 38 def configuration @configuration ||= Configuration.new end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
Configure the concern by providing a block which takes care of this task. Example:
Keyless.configure do |conf|
# conf.xyz = [..]
end
48 49 50 |
# File 'lib/keyless.rb', line 48 def configure yield(configuration) end |
.gem_version ⇒ Gem::Version
Returns the version of the gem as a Gem::Version
.
19 20 21 |
# File 'lib/keyless/version.rb', line 19 def gem_version Gem::Version.new VERSION end |
.reset_configuration! ⇒ Object
Reset the current configuration with the default one.
53 54 55 |
# File 'lib/keyless.rb', line 53 def reset_configuration! self.configuration = Configuration.new end |
.version ⇒ String
Returns the version of gem as a string.
12 13 14 |
# File 'lib/keyless/version.rb', line 12 def version VERSION end |