Sha256: 27f91f29f026886e6ba7a581605e49fb2097ea634c7ba57674f78e3e6734fbd2

Contents?: true

Size: 1.15 KB

Versions: 43

Compression:

Stored size: 1.15 KB

Contents

# frozen_string_literal: true

begin
  gem "msgpack", ">= 1.7.0"
  require "msgpack"
rescue LoadError => error
  warn "ActiveSupport::MessagePack requires the msgpack gem, version 1.7.0 or later. " \
    "Please add it to your Gemfile: `gem \"msgpack\", \">= 1.7.0\"`"
  raise error
end

require_relative "message_pack/cache_serializer"
require_relative "message_pack/serializer"

module ActiveSupport
  module MessagePack
    extend Serializer

    ##
    # :singleton-method: dump
    # :call-seq: dump(object)
    #
    # Dumps an object. Raises ActiveSupport::MessagePack::UnserializableObjectError
    # if the object type is not supported.
    #
    #--
    # Implemented by Serializer#dump.

    ##
    # :singleton-method: load
    # :call-seq: load(dumped)
    #
    # Loads an object dump created by ::dump.
    #
    #--
    # Implemented by Serializer#load.

    ##
    # :singleton-method: signature?
    # :call-seq: signature?(dumped)
    #
    # Returns true if the given dump begins with an +ActiveSupport::MessagePack+
    # signature.
    #
    #--
    # Implemented by Serializer#signature?.

    ActiveSupport.run_load_hooks(:message_pack, self)
  end
end

Version data entries

43 entries across 43 versions & 7 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/activesupport-7.1.3.4/lib/active_support/message_pack.rb
activesupport-8.0.1 lib/active_support/message_pack.rb
activesupport-8.0.0.1 lib/active_support/message_pack.rb
activesupport-7.2.2.1 lib/active_support/message_pack.rb
activesupport-7.1.5.1 lib/active_support/message_pack.rb
activesupport-8.0.0 lib/active_support/message_pack.rb
activesupport-7.2.2 lib/active_support/message_pack.rb
activesupport-7.1.5 lib/active_support/message_pack.rb
activesupport-8.0.0.rc2 lib/active_support/message_pack.rb
activesupport-7.2.1.2 lib/active_support/message_pack.rb
activesupport-7.1.4.2 lib/active_support/message_pack.rb
activesupport-8.0.0.rc1 lib/active_support/message_pack.rb
activesupport-7.2.1.1 lib/active_support/message_pack.rb
activesupport-7.1.4.1 lib/active_support/message_pack.rb
activesupport-8.0.0.beta1 lib/active_support/message_pack.rb
omg-activesupport-8.0.0.alpha9 lib/active_support/message_pack.rb
omg-activesupport-8.0.0.alpha8 lib/active_support/message_pack.rb
omg-activesupport-8.0.0.alpha7 lib/active_support/message_pack.rb
omg-activesupport-8.0.0.alpha4 lib/active_support/message_pack.rb
omg-activesupport-8.0.0.alpha3 lib/active_support/message_pack.rb