- [CHANGE] Mark
gp_camera_wait_for_event
as a blocking call (#19).
- [CHANGE] Update to ffi 1.15.0. This raises the minimum Ruby version to 2.3.0.
- [FIX] Fix deprecation warning (
warning: rb_safe_level will be removed in Ruby 3.0
) by updating to ffi 1.12.0. - [CHANGE] Raise minimum Ruby version to 2.0.0, which comes from the dependency on ffi 1.12.0 (specifically 1.11.1).
- [FIX] Load
ffi
before any usage of the bindings.
- [CHANGE] Raise minimum
libgphoto2
version to 2.5.2. This version introducedgp_port_reset
. - [ADD] Add
FFI::GPhoto2Port::GPPort
struct and related functions to do a port reset.
- [FIX]
ManagedStruct.release
actually calls*_free
functions. Autorelease invocations were silently failing with aTypeError
because the functions expected structs, not pointers.
- [FIX] Use the correct default filename when a
CameraFile
is a preview. - [ADD] Add
CameraFileInfo
and related operations.CameraFile#info
only supports files. - [FIX]
CameraWidget#label
calls the correct widget label function. - [FIX]
Camera#[]=
raises anArgumentError
when passed an invalid key instead of failing onnil
. - [ADD] Add
CameraAbilities#operations
to always return anInteger
. libgphoto2 does not stay in the defined enum set ofCameraOperations
; therefore, it is treated as an integer bit field instead. - [CHANGE] Errors are thrown as
GPhoto2::Error
rather thanRuntimeError
. Use#message
and#code
to extract the the GPhoto2 error message and return code, respectively. - [ADD]
Camera#trigger
for trigger capture. - [FIX]
TextCameraWidget
values can by any object that implements#to_s
.