lib/osqp.rb in osqp-0.1.0 vs lib/osqp.rb in osqp-0.1.1
- old
+ new
@@ -1,15 +1,17 @@
# stdlib
require "fiddle/import"
# modules
-require "osqp/ffi"
require "osqp/solver"
require "osqp/version"
module OSQP
class Error < StandardError; end
def self.lib_version
FFI.osqp_version.to_s
end
+
+ # friendlier error message
+ autoload :FFI, "osqp/ffi"
end