Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

refactor to just serializer

  • Loading branch information...
commit ed3bd662fa0c9c31823bd77e91915aeede83b25d 1 parent c108f93
@randysecrist randysecrist authored
View
4 lib/ripple-encryption/activation.rb
@@ -7,7 +7,7 @@ module Encryption
# When mixed into a Ripple::Document class, this will encrypt the
# serialized form before it is stored in Riak. You must register
# a serializer that will perform the encryption.
- # @see EncryptedSerializer
+ # @see Serializer
extend ActiveSupport::Concern
@@is_activated = false
@@ -36,7 +36,7 @@ def self.activate(path)
unless Riak::Serializers['application/x-json-encrypted']
begin
config = YAML.load_file(path)[ENV['RACK_ENV']]
- encryptor = Ripple::Encryption::EncryptedSerializer.new(OpenSSL::Cipher.new(config['cipher']), 'application/x-json-encrypted', path)
+ encryptor = Ripple::Encryption::Serializer.new(OpenSSL::Cipher.new(config['cipher']), 'application/x-json-encrypted', path)
rescue Exception => e
handle_invalid_encryption_config(e.message, e.backtrace)
end
View
2  lib/ripple-encryption/encrypted_serializer.rb → lib/ripple-encryption/serializer.rb
@@ -11,7 +11,7 @@ module Encryption
# end
#
# @see Encryption
- class EncryptedSerializer
+ class Serializer
# @return [String] The Content-Type of the internal format,
# generally "application/json"
attr_accessor :content_type
Please sign in to comment.
Something went wrong with that request. Please try again.