lib/lockbox.rb in lockbox-1.2.0 vs lib/lockbox.rb in lockbox-1.3.0
- old
+ new
@@ -3,21 +3,21 @@
require "openssl"
require "securerandom"
require "stringio"
# modules
-require "lockbox/aes_gcm"
-require "lockbox/box"
-require "lockbox/calculations"
-require "lockbox/encryptor"
-require "lockbox/key_generator"
-require "lockbox/io"
-require "lockbox/migrator"
-require "lockbox/model"
-require "lockbox/padding"
-require "lockbox/utils"
-require "lockbox/version"
+require_relative "lockbox/aes_gcm"
+require_relative "lockbox/box"
+require_relative "lockbox/calculations"
+require_relative "lockbox/encryptor"
+require_relative "lockbox/key_generator"
+require_relative "lockbox/io"
+require_relative "lockbox/migrator"
+require_relative "lockbox/model"
+require_relative "lockbox/padding"
+require_relative "lockbox/utils"
+require_relative "lockbox/version"
module Lockbox
class Error < StandardError; end
class DecryptionError < Error; end
class PaddingError < Error; end
@@ -86,14 +86,14 @@
end
end
end
# integrations
-require "lockbox/carrier_wave_extensions" if defined?(CarrierWave)
-require "lockbox/railtie" if defined?(Rails)
+require_relative "lockbox/carrier_wave_extensions" if defined?(CarrierWave)
+require_relative "lockbox/railtie" if defined?(Rails)
if defined?(ActiveSupport::LogSubscriber)
- require "lockbox/log_subscriber"
+ require_relative "lockbox/log_subscriber"
Lockbox::LogSubscriber.attach_to :lockbox
end
if defined?(ActiveSupport.on_load)
ActiveSupport.on_load(:active_record) do