Sha256: 87495a6df066380c0e6858b40e04685866a1d92bbfa7b23dd503fe4298cd654a
Contents?: true
Size: 672 Bytes
Versions: 2
Compression:
Stored size: 672 Bytes
Contents
# frozen_string_literal: true require "ffi-libarchive-binary/version" require "pathname" module LibarchiveBinary class Error < StandardError; end LIBRARY_PATH = Pathname.new(File.join(__dir__, "ffi-libarchive-binary")) end module Archive module C def self.ffi_lib(*args) prefixed = args.map do |names| filenames = names.is_a?(Array) ? names : [names] with_path = filenames.map(&:to_s).map do |filename| LibarchiveBinary::LIBRARY_PATH.join(FFI.map_library_name(filename)).to_s end with_path + filenames end super(*prefixed) end end end require "ffi-libarchive"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffi-libarchive-binary-0.2.3-x86-mingw32 | lib/ffi-libarchive-binary.rb |
ffi-libarchive-binary-0.2.3-x64-mingw32 | lib/ffi-libarchive-binary.rb |