Skip to content

Releases: rails/globalid

0.4.1

24 Oct 16:01
v0.4.1
b6abf00

Choose a tag to compare

  • Fix occasional error while trying to deserialize arguments: "uninitialized constant GlobalID::Locator"

    Yuji Yaginuma (#102)

v0.4.0

16 Apr 15:38

Choose a tag to compare

  • Generate URL-safe SGIDs by default.

    Goerge Claghorn (#98)

  • Bump Rails support to 4.2 and above.

    #98 required the ActiveSupport::MessageVerifier from Active Support 4.2 to work.

    Kasper Timm Hansen

v0.3.7

26 Jul 20:37

Choose a tag to compare

  • Verify instances of SignedGlobalID when locating them.

    y-yagi

Release 0.3.6

04 Aug 21:32

Choose a tag to compare

  • Raise MissingModelIdError when a Global ID is created without a model id.

    Faraz Yashar

  • Encode model id's to support non-alphanumeric characters.

    Thomas Drake-Brockman

  • Add support for Global ID params to to_global_id and to_gid_param.

    Ray Zane

  • Locating Global ID models prefers an unscoped lookup if the model responds to it.

    Kasper Timm Hansen

Release 0.3.5

04 Aug 21:33

Choose a tag to compare

Same as 0.3.4 but working in all the supported versions of Ruby.

Release 0.3.4

04 Aug 21:34

Choose a tag to compare

  • Added locate_many(ignore_missing: true) option that'll use #where instead of #find for bulk location, which via Active Record means missing records will be ignored instead of raise an exception.

Release 0.3.3

13 Feb 23:22

Choose a tag to compare

  • Fixed purpose not passed on to Locator.locate_many_signed(strings, for: 'purpose')

DHH

Release 0.3.2

09 Feb 18:12

Choose a tag to compare

  • Added to_gid_param and to_sgid_param convenience methods 64fb44b.

    DHH

Release 0.3.1

09 Feb 18:10

Choose a tag to compare

  • Add locate_many and locate_many_signed for efficient lookups of many models ab5f975.

    Tom Ward, DHH

  • Ruby 2.2 support.

    Kasper Timm Hansen

  • Support for simple custom params #44.

    Kasper Timm Hansen

Release 0.3.0

17 Sep 17:49

Choose a tag to compare

  • Rename model.gid -> model.to_gid so we don't collide with existing methods
    #36
  • Customize gid locator per gid://appname
    #15
  • Signed Global IDs now have expiry timestamps and a specific purpose
    #20
    #29