Skip to content

Releases: ledermann/unread

v0.8.1

12 Jul 05:43
Compare
Choose a tag to compare

v0.8.0

20 Mar 09:05
Compare
Choose a tag to compare
  • Allows STI subclasses to be defined as readable without affecting parent classes (PR #68, thanks to @tangopium)
  • Support for pluralize_table_names = false (#69, thanks to @rlow)
  • Support for Rails 5
  • Some cleanup

Detailed changelog

v0.7.1

06 Nov 10:44
Compare
Choose a tag to compare

Support for PostgreSQL (#65, thanks to @pyro2927)

v0.7.0

04 Nov 15:16
Compare
Choose a tag to compare

This release has some important improvements:

  • Multiple reader classes are allowed (#63, thanks to @everplays)
  • acts_as_reader: Replaced :scope option by class method (2a1649e)
  • acts_as_reader: The after_create callback is customizable (1e4b8f2)
  • Improved performance of cleanup_read_marks! (#64, thanks to @pyro2927)
  • Added bin/console (useful for developing the gem)
  • Lots of code and spec cleanup

If you are using an older release of this gem, please read the the upgrade notes!

v0.6.3

27 Sep 07:58
Compare
Choose a tag to compare

STI support (#61, thanks to @xzhflying)

v0.6.2

09 Sep 07:14
Compare
Choose a tag to compare
  • Associations: Add missing inverse_of (#58, thanks to @lowjoel)
  • Better support for String primary keys (#60, thanks to @swastik)

v0.6.1

28 May 06:22
Compare
Choose a tag to compare

Fix for a regression introduced in v0.6.0

v0.6.0

27 May 12:57
Compare
Choose a tag to compare

New features

  • Readables: Added .read_by as the inverse of unread_by(#53, thanks to @mikeki)
  • Readers: Added .have_read and .have_not_read (#55, thanks to @mikeki)

Changes

  • acts_as_reader: For setting scope (previously undocumented feature), the option now takes a lambda instead of an array of symbols (0b91458)
  • Used quoting for column/table names in SQL statements

Bugfixes

  • Added compatibility for protected_attributes gem
  • Fixed memoization issue on resetting read_marks
  • Fixed eager loading by with_read_marks_for (#56, thanks to @mikeki)
  • Fixed nested transactions (#26)
  • Fixed a time fraction bug in unread_by scope (#51,#52, thanks to @huiping)

v0.5.0

14 Mar 06:53
Compare
Choose a tag to compare
  • acts_as_reader: Added optional :scopes option
  • .mark_array_as_read: Better performance
  • Rails 4.2 compatibility (thanks to @JuanitoFatas)
  • Improved error messages (thanks to @kyuden)
  • Migration: Removed harmful string length limit
  • Use rails standard way reference to declare polymorphic associations (thanks to @wangqiang1208)

v0.4.0

09 Jun 07:46
Compare
Choose a tag to compare
  • Testsuite migrated to RSpec
  • Travis: Test against Rails 4.0/4.1 and Ruby 2.1.0
  • Generated migration fixed to be .rb file (PR #36, thanks to @jarinudom)
  • In queries, use ReadMark.table_name to allow custom table names (PR #39, thanks to @felipetio)