Module: Xml::Kit

Defined in:
lib/xml/kit.rb,
lib/xml/kit/id.rb,
lib/xml/kit/crypto.rb,
lib/xml/kit/version.rb,
lib/xml/kit/document.rb,
lib/xml/kit/key_info.rb,
lib/xml/kit/key_pair.rb,
lib/xml/kit/template.rb,
lib/xml/kit/signature.rb,
lib/xml/kit/decryption.rb,
lib/xml/kit/encryption.rb,
lib/xml/kit/namespaces.rb,
lib/xml/kit/signatures.rb,
lib/xml/kit/certificate.rb,
lib/xml/kit/fingerprint.rb,
lib/xml/kit/templatable.rb,
lib/xml/kit/encrypted_key.rb,
lib/xml/kit/encrypted_data.rb,
lib/xml/kit/decryption_error.rb,
lib/xml/kit/crypto/rsa_cipher.rb,
lib/xml/kit/crypto/oaep_cipher.rb,
lib/xml/kit/key_info/key_value.rb,
lib/xml/kit/crypto/unknown_cipher.rb,
lib/xml/kit/key_info/rsa_key_value.rb,
lib/xml/kit/crypto/symmetric_cipher.rb,
lib/xml/kit/self_signed_certificate.rb,
lib/xml/kit/key_info/retrieval_method.rb

Defined Under Namespace

Modules: Crypto, Namespaces, Templatable Classes: Certificate, Decryption, DecryptionError, Document, EncryptedData, EncryptedKey, Encryption, Error, Fingerprint, Id, KeyInfo, KeyPair, SelfSignedCertificate, Signature, Template

Constant Summary collapse

VERSION =
'0.6.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.loggerObject



41
42
43
# File 'lib/xml/kit.rb', line 41

def logger
  @logger ||= Logger.new(STDOUT)
end

Class Method Details

.deprecate(name, alternative: nil) ⇒ Object



47
48
49
50
51
52
53
54
# File 'lib/xml/kit.rb', line 47

def deprecate(name, alternative: nil)
  @deprecation ||= ActiveSupport::Deprecation.new('1.0.0', 'xml-kit')
  if alternative
    @deprecation.deprecation_warning(name, "Use `#{alternative}` instead")
  else
    @deprecation.deprecation_warning(name)
  end
end