Skip to content

Releases: clowne-rb/clowne

v1.4.0 "Clowne Fish Bar"

08 Jan 17:15
Compare
Choose a tag to compare
  • [#60] Allow access to the operation mapper in after_clone
  • Updated Rubocop to v1+
  • Dropped Ruby 2.4 support
  • Migrated to Github Actions

The release name inspired by

1.3.0 "Clowne and Barlborough railway station"

12 May 22:20
8c9d4eb
Compare
Choose a tag to compare
  • Fixed Ruby 2.7 warnings
  • Added Ruby 3.0 support

The release name inspired by Clowne and Barlborough railway station

1.2.0 "Clowne towne"

03 Jul 15:43
Compare
Choose a tag to compare
  • Added TruffleRuby support
  • Added Ruby 2.7 support
  • Fixed JRuby support
  • Fixed all dependencies vulnerabilities
  • Documents moved to Docsify engine

The release name inspired by Xiu Xiu "Clowne Towne"

1.1.0 "Ocellaris clownfish"

20 Mar 09:19
Compare
Choose a tag to compare

Added after_clone declaration (PR)
This is intermediate callback between finalize and after_persist which is called for built but not persisted record.

class ACloner < Clowne::Cloner
  after_clone do |_origin, clone, **|
    # actualize user attribute
    clone.draft_count = clone.posts.count
  end

See more in docs.
From Cult of Martians.


Added support for belongs_to association (only for active_record adapter) (PR).
Please read small notice if you want to use it.
From Cult of Martians.

1.0.0 "Great Moscow Circus"

26 Feb 16:20
Compare
Choose a tag to compare

Changed resulting API of cloning. For now, Cloner returns individual operation object and provides simple methods to manipulate with it. See more in docs

NOTE: the old API method (e.g. save) is still working, but deprecated (you'll see a notice).

Implemented DSL to manipulate with already persisted records after the main cloning flow (inspired by #19). See more in docs

If you are using old Clowne version, see migration guide

Other

  • Mapper as a customizable mechanism to restore broken relations while after_persist execution. See more in docs

v0.1.0 (pre-release)

01 Feb 07:10
Compare
Choose a tag to compare

This is the first pre-release version.

See docs: https://palkan.github.io/clowne/