Skip to content

Latest commit

 

History

History
72 lines (45 loc) · 1.66 KB

CHANGELOG.md

File metadata and controls

72 lines (45 loc) · 1.66 KB

Changelog

All notable changes to this project will be documented in this file.

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

0.3.0 - 2021-10-25

Changed

  • Allow configuring EzAttributes (PR #3)
class User
  extend EzAttributes.configure(getters: false)

  attributes :name, :age, email: 'guest@user.com'
end

User.new(name: 'Matz', age: 22).name
# NoMethodError (undefined method `name' for #<User:0x000055bac152f130>)
  • Replace Rubocop with StandardRB

0.2.2 - 2021-04-30

Changed

  • Fix shared state between class instances. (Commit 759abc7cb971e6a30448f5e9557be4542128d7cf)

0.2.1 - 2021-01-20

Changed

  • Do not generate getter for attribute named class. This prevents overriding the Object#class method.

0.2.0 - 2021-01-19

Added

  • Allow using reserved words as attributes.
Class.new do
  extend EzAttributes

  # This would break in 0.1.0.
  # Now it works.
  attributes :class, :if
end

0.1.0 - 2020-11-24

Added

  • Basic module to define class initializers with keyword args.