module Liberic
Constants
- ERIC_HOME
- ERIC_LIB_FOLDER
- VERSION
Public Instance Methods
check_eric_version!()
click to toggle source
# File lib/liberic/boot.rb, line 25 def check_eric_version! version_response = Response::Version.new( Helpers::Invocation.with_result_buffer do |handle| SDK::API::version(handle) end ) eric_version = version_response.for_library('libericapi') if !SDK::Configuration::LIBERICAPI_VERSION.include?(eric_version) #raise InitializationError.new("ERiC #{SDK::Configuration::LIBERICAPI_VERSION.join(', ')} required, but #{eric_version} found.") warn "ERiC #{SDK::Configuration::LIBERICAPI_VERSION.join(', ')} required, but #{eric_version} found." end end
config()
click to toggle source
# File lib/liberic.rb, line 15 def config @config ||= Config.new end
eric_home()
click to toggle source
# File lib/liberic/boot.rb, line 7 def eric_home ERIC_HOME end
library_path()
click to toggle source
# File lib/liberic/boot.rb, line 11 def library_path suffix = if RUBY_PLATFORM =~ /linux/ 'so' elsif RUBY_PLATFORM =~ /darwin/ 'dylib' else 'dll' end File.expand_path("libericapi.#{suffix}", ERIC_LIB_FOLDER) end