Skip to content

Releases: Sija/gphoto2.cr

v0.14.0

11 Nov 02:10
Compare
Choose a tag to compare

What's Changed

  • Expand CameraFolder#put signature to allow for additional file properties
  • Add CameraFile#data= setter
  • Add CameraFile#mime_type property
  • Add CameraFile#mtime property
  • Remember to check the input for NULL bytes

Full Changelog: v0.13.0...v0.14.0

v0.13.0

10 Nov 00:35
Compare
Choose a tag to compare

What's Changed

  • Add CameraFolder#put method, allowing for file upload

Full Changelog: v0.12.0...v0.13.0

v0.12.0

08 Nov 19:32
Compare
Choose a tag to compare

What's Changed

  • Add CameraFolder#mkdir method, allowing for folder creation
  • Normalize and absolutize the input path in Camera#filesystem and Camera#blob
  • Make CameraFileInfo::{File,Preview}#{width,height} return signed int
  • Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows by @dependabot in #41

New Contributors

Full Changelog: v0.11.0...v0.12.0

v0.11.0

23 Jul 12:52
Compare
Choose a tag to compare
  • Use Path throughout the Camera::Filesystem, CameraFile and CameraFolder APIs
  • Remove CameraFile.join method, obsolete now
  • Remove CameraFile#extension method, as there's CameraFile#path now
  • Add Camera::Filesystem#blob QoL helper
  • Add Camera::ID#serialnumber QoL helper
  • Relax type restriction in Camera::Configuration#preserving_config

Full Changelog: v0.10.2...v0.11.0

v0.10.2

22 Apr 20:32
Compare
Choose a tag to compare
  • Check for NUL bytes in strings passed to CameraWidget::Text
  • Do not memoize CameraWidget::Range#get_range method

Full Changelog: v0.10.1...v0.10.2

v0.10.1

17 Feb 20:24
Compare
Choose a tag to compare
  • Turn CameraFile into a struct
  • Fix missed type rename

Full Changelog: v0.10.0...v0.10.1

v0.10.0

14 Jan 23:09
Compare
Choose a tag to compare
  • Add Camera::ID extension
  • Add ZIP compression helpers to CameraFolder
  • Add CameraWidget::Base#value?
  • Add CameraFolder#up? method
  • Remove CameraWidget::Base#==(other : Regex) overload
  • Rename: File#deletable? -> File#removable?
  • Rename: CameraFolder#up -> CameraFolder#parent
  • Fix incorrect calculations in CameraWidget::Text#set_value
  • Fix incorrect usage of postfix rescue
  • Tighten up many APIs w/ re: to the argument types (i.e. return Crystal types)
  • Use scoped enum aliases
  • Memoize some of the CameraWidget::Base static properties
  • Refactor CameraWidget::Range
  • Refactor CameraWidget::Base#in? method
  • Refactor CameraList and remove obsolete Entry class
  • Always return String from CameraWidget::Text#get_value
  • Return #path in Camera{File,Folder}#to_s

Full Changelog: v0.9.1...v0.10.0

v0.9.1

03 Apr 23:03
881c3c1
Compare
Choose a tag to compare

Compatibility with Crystal 1.0 🎉

v0.9.0

07 Mar 14:15
1d5b05d
Compare
Choose a tag to compare
  • Compatibility with Crystal 0.36.0
  • Made text-based widgets accept Symbol as value (converted to a capitalised string: :automatic -> “Automatic”)
  • Made radio widget accepts Enumerable and Range values (using first from choices matching the given value)
  • Updated examples

v0.8.0

05 Aug 21:03
2def5bc
Compare
Choose a tag to compare
  • Compatibility with Crystal 0.35.1
  • Removed Camera.autorelease method, which wasn't very useful anyway (Camera#autorelease is still present)
  • Changed Camera.where to accept only named arguments (Camera.where(model: /Canon/))
  • Changed timeout argument type to Time::Span for Camera::Event#wait
  • Added optional timeout argument to Camera::Event#wait_for
  • Changed CameraFile#save to take additionally a Path object as destination
  • Changed many methods to accept only enums instead of Symbol | String variants as before
  • Lots of code and APIs cleanups