impress/vendor/gems/RocketAMF-1.0.0/lib/rocketamf/pure.rb
Emi Matchu b1f06029f8 Moderize RocketAMF C types to fix build error
I'm not sure if this is a Mac-only problem or what, but we were getting incompatible-function-pointer errors when trying to build the RocketAMF C extensions. This fixes that! (Maybe it's like, Mac-only but as of Ruby 3.4 in specific? We're running RocketAMF in production on Ruby 3.4 right now without this. Shrug.)
2025-10-30 02:45:56 +00:00

24 lines
No EOL
639 B
Ruby

require 'rocketamf/pure/deserializer'
require 'rocketamf/pure/serializer'
require 'rocketamf/pure/remoting'
module RocketAMF
# This module holds all the modules/classes that implement AMF's functionality
# in pure ruby
module Pure
$DEBUG and warn "Using pure library for RocketAMF."
end
#:stopdoc:
# Import serializer/deserializer
Deserializer = RocketAMF::Pure::Deserializer
Serializer = RocketAMF::Pure::Serializer
# Modify envelope so it can serialize/deserialize
class Envelope
remove_method :populate_from_stream
remove_method :serialize
include RocketAMF::Pure::Envelope
end
#:startdoc:
end