This repository was archived by the owner on Jul 2, 2021. It is now read-only.
v2.0.0
Pre-release
Pre-release
Breaking changes:
-
LibStorj::Env.newnow takes a hash instead of an array.You can now pass a string containing the path to a yaml file (following the structure in options.example.yml) directly to the
Env.newmethod:require 'ruby-libstorj' storj = LibStorj::Env.new(path: <some/path/to/a.yaml>)
Alternatively, you can pass a hash of
FFIstructs:require 'ruby-libstorj' # initialize structs bridge = LibStorj::Ext::Storj::BridgeOptions.new http = LibStorj::Ext::Storj::HttpOptions.new encrypt = LibStorj::Ext::Storj::EncryptOptions.new log = LibStorj::Ext::Storj::LogOptions.new # manipulate structs # ... options = { bridge_options: bridge } storj = LibStorj::Env.new(*options)