/usr/lib/ruby/vendor_ruby/msgpack.rb is in ruby-msgpack 0.6.2-1build4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | require "msgpack/version"
if defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby" # This is same with `/java/ =~ RUBY_VERSION`
require "java"
require "msgpack/msgpack.jar"
org.msgpack.jruby.MessagePackLibrary.new.load(JRuby.runtime, false)
else
begin
require "msgpack/#{RUBY_VERSION[/\d+.\d+/]}/msgpack"
rescue LoadError
require "msgpack/msgpack"
end
end
|