Sha256: dc96c0d9cfd3747613a00a73260bc63e2297ece38745e3d0b21cdc3f19d9df3d
Contents?: true
Size: 744 Bytes
Versions: 1
Compression:
Stored size: 744 Bytes
Contents
# -*- ruby -*- require 'laag/library' # MIT License module LAAG LIBSODIUM_GEM_ROOT = File.expand_path(File.join(__dir__, %w[.. ..])) LIBSODIUM_ORIGIN = 'github.com/jedisct1/libsodium' LIBSODIUM_VERSION = ( $LOADED_FEATURES .map { |f| f.match %r{/laag-libsodium-(?<version>[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)} } .compact .map { |gem| gem['version'] } .uniq .first ) || ( File .basename(LIBSODIUM_GEM_ROOT) .match(%r{^laag-libsodium-(?<version>[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)})['version'] ) def self.libsodium @@libsodium ||= Library.new( gem_root: LIBSODIUM_GEM_ROOT, origin: LIBSODIUM_ORIGIN, version: LIBSODIUM_VERSION ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
laag-libsodium-1.0.16.2 | lib/laag/libsodium.rb |