Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Suggestion for releasing as a gem #27

@pbrisbin

Description

@pbrisbin

I think we should stop using this as a git source everywhere and start pushing to ruby-gems and respecting SemVer for ourselves. We've already got a situation where some applications rely on the now-removed Indexes module, so we'll want to stay pinned until we can address that, but other applications are following master.

Suggestion:

  • Release d7684b7 as 1.0.0

    This is the latest point on master before the most recent breaking change. This is what applications that currently rely on the Indexes module will depend on. If they rely on #rescue_duplicate_key_error, the upgrade path is clear, but if they rely on .ensure_index they'll need to not do that (it's considered dangerous) before upgrading.

  • Remove #save

    This method is dangerous for reasons which I'll outline when removing it (and probably document in the README, because its absence will be surprising). But it's the only breaking change I know of on the roadmap, so might as well do it before releasing again.

    I think we can just make #save safe by implementing it with $set instead.

  • Release master as 2.0.0 and update current application Gemfiles

  • Proceed with development, follow SemVer

WDYT @codeclimate/review ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions