Skip to content

Latest commit

 

History

History
69 lines (39 loc) · 1.94 KB

CHANGELOG.md

File metadata and controls

69 lines (39 loc) · 1.94 KB

Changelog

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

0.5.0 - 2025-02-17

Added

  • Add String#b to mimic Ruby's String
  • Add a lot of examples in YARD documentation. These examples are checked using yard-doctest.

Deprecated

  • Deprecate BinStruct.force_binary and Struct.force_binary in favor of Ruby's String#b

Fixed

  • Fix String#to_s when static_length is set. #to_s was not aware of static length option.

0.4.0 - 2025-02-13

Added

  • Add Struct#attribute? to check existence of an attribute.
  • Add AbstractTLV.derive to derive a new subclass from a concrete TLV class.

Fixed

  • Update and fix Yard documentation.

0.3.0 - 2024-12-02

Added

  • BitAddr class is added. This class is used as a Structable type to handle bitfield attributes.
  • Add Struct.define_bit_attr, .define_bit_attr_before and .define_bit_attr_before to define bitfield attributes.

Changed

  • Struct.define_bit_attr_on is removed in favor of Struct.define_bit_attr. Bitfield attributes are now first class attributes, and no more an onverlay on Int.

0.2.1 - 2024-11-25

Added

  • CString and String initializers now accepts :value option to set string initial value.

Changed

  • IntString initializer option :string is renamed into :value.

0.2.0 - 2024-07-21

Changed

  • BinStruct::Fields renamed into BinStruct::Struct, and *field* methods are renamed into *attr* or *attributes*.
  • BinStruct::Struct#inspect: add a title line.

Fixed

  • Fix BinStruct::ArrayOfInt#read_from_array by using value: option.
  • Fix BinStruct::IntString#calc_length by using #from_human instead of #read.
  • BinStruct::String#to_s: force binary encoding.
  • BinStruct::String#<<: force binary encoding on argument before catenating.

0.1.0 - 2024-07-13

  • Initial release