Sha256: 10118272e58f3f5b985853b5595e2f613bd37d35727aed1c4cf58e511082c806

Contents?: true

Size: 1.91 KB

Versions: 4

Compression:

Stored size: 1.91 KB

Contents

# Used for compression
require 'zlib'
# Used to coerce data types between string and their actual types
require 'coercible'

require 'symmetric_encryption/version'
require 'symmetric_encryption/cipher'
require 'symmetric_encryption/symmetric_encryption'
require 'symmetric_encryption/exception'

# @formatter:off
module SymmetricEncryption
  autoload :Coerce,                 'symmetric_encryption/coerce'
  autoload :Config,                 'symmetric_encryption/config'
  autoload :Encoder,                'symmetric_encryption/encoder'
  autoload :Generator,              'symmetric_encryption/generator'
  autoload :Header,                 'symmetric_encryption/header'
  autoload :Key,                    'symmetric_encryption/key'
  autoload :Reader,                 'symmetric_encryption/reader'
  autoload :RSAKey,                 'symmetric_encryption/rsa_key'
  autoload :Writer,                 'symmetric_encryption/writer'
  autoload :CLI,                    'symmetric_encryption/cli'
  autoload :Keystore,               'symmetric_encryption/keystore'
  module Utils
    autoload :Aws,                  'symmetric_encryption/utils/aws'
    autoload :ReEncryptFiles,       'symmetric_encryption/utils/re_encrypt_files'
  end
end
# @formatter:on

# Add extensions. Gems are no longer order dependent.
begin
  require 'rails'
  require 'symmetric_encryption/railtie'
rescue LoadError
end

begin
  require 'active_record'
  require 'symmetric_encryption/extensions/active_record/base'
rescue LoadError
end

begin
  require 'active_model'
  require 'symmetric_encryption/railties/symmetric_encryption_validator'
rescue LoadError
end

begin
  require 'mongoid'
  require 'symmetric_encryption/extensions/mongoid/encrypted'
rescue LoadError
end

begin
  require 'mongo_mapper'
  warn 'MongoMapper support is deprecated. Please upgrade to Mongoid.'
  require 'symmetric_encryption/extensions/mongo_mapper/plugins/encrypted_key'
rescue LoadError
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
symmetric-encryption-4.1.4 lib/symmetric_encryption.rb
symmetric-encryption-4.1.3 lib/symmetric_encryption.rb
symmetric-encryption-4.1.2 lib/symmetric_encryption.rb
symmetric-encryption-4.1.1 lib/symmetric_encryption.rb