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.)
24 lines
No EOL
639 B
Ruby
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 |