Skip to content

Releases: Betterment/uncruft

v0.7.1: fixing Rails initialization to avoid STDERR output

29 Jan 23:28
5b77e47
Compare
Choose a tag to compare

v0.7.0 - git-sourced gem support

28 Jan 16:43
fbe2e35
Compare
Choose a tag to compare

What's Changed

  • Add support for git-sourced gems by @rzane in #43

Full Changelog: v0.6.2...v0.7.0

v0.6.2

23 Jan 22:39
ef90c54
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.6.1...v0.6.2

v0.6.1

22 Jan 16:26
2a01d9d
Compare
Choose a tag to compare

What's Changed

  • Add Rails 7.2 and 8.0 to appraisals by @rzane in #38
  • Fix primary gemfile by @rzane in #39
  • Add Ruby 3.3 to test matrix by @rzane in #41
  • warn needs to match Kernel's signature by @rzane in #40

New Contributors

  • @rzane made their first contribution in #38

Full Changelog: v0.5.0...v0.6.1

v0.5.0

25 Jun 16:08
212b717
Compare
Choose a tag to compare

What's Changed

  • Handle gems installed with --user-install by @smudge in #27

Full Changelog: v0.4.0...v0.5.0

v0.4.0

02 Jan 22:54
b8bc9a7
Compare
Choose a tag to compare
Version 0.4.0

v0.3.1

26 Apr 21:18
531119f
Compare
Choose a tag to compare

Fixed

  • Some ruby warnings included gem paths that weren't being normalized by the
    regex matchers
  • Some ruby warnings included both gem paths and absolute paths and we were
    only normalizing one but not the other
  • Fixed some rubocop linter rules

A new `deprecate_attribute` helper!

29 Oct 18:23
cf694ed
Compare
Choose a tag to compare

If you would like to deprecate an attribute by applying a ActiveSupport::Deprecation warning on the deprecated attribute's getters and setters then look no further, we have a tool for that! Simply include Uncruft::Deprecatable in your class, identify the attribute you would like deprecated and provide a message you would like applied to the deprecation warning.

class Customer
  include Uncruft::Deprecatable
  attr_accessor :first_name
  def initialize(first_name)
    @first_name = first_name
  end
  deprecate_attribute(:first_name,
                      message: "Please stop using first_name it is deprecated, please use legal_first_name instead!")
end

Within the Uncruft::Deprecatable module there is also a .deprecate_method method that can be used to apply a deprecation warning to an identified method, much like the deprecate_attribute method described above.

From there you can use Uncruft's deprecation recording tools to generate ingorefiles and manage your deprecation backlog in an organized manner.