Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: None
    • Component/s: None
    • Security Level: Public
    • Labels:
      None

      Description

      Using the 1.1.2 gem, specifying a :delta => 10 does not increment or decrement the value by any given delta.

      # Subject Project Status CR V
      For Gerrit Dashboard: &For+RCBC-39=message:RCBC-39

        Activity

        Hide
        wayne Wayne Siu added a comment -

        Reopening the ticket for administrative reason.

        Show
        wayne Wayne Siu added a comment - Reopening the ticket for administrative reason.
        Hide
        karenzeller karenzeller added a comment -

        Great. Will update doc.

        Show
        karenzeller karenzeller added a comment - Great. Will update doc.
        Hide
        avsej Sergey Avseyev added a comment -
        Show
        avsej Sergey Avseyev added a comment - Uploaded fix http://review.couchbase.org/17554
        Hide
        avsej Sergey Avseyev added a comment -

        Currently you can specify delta using second argument:

        conn.incr("foo", 100)
        conn.decr("foo", 50)

        Show
        avsej Sergey Avseyev added a comment - Currently you can specify delta using second argument: conn.incr("foo", 100) conn.decr("foo", 50)
        Hide
        karenzeller karenzeller added a comment -

        If you do implement :delta for incr() and decr(), it would make the SDK more consistent with all the other SDKs....

        Show
        karenzeller karenzeller added a comment - If you do implement :delta for incr() and decr(), it would make the SDK more consistent with all the other SDKs....
        Hide
        karenzeller karenzeller added a comment -

        So right now in Ruby, the increment and decrement only increment/decrement by 1?

        Show
        karenzeller karenzeller added a comment - So right now in Ruby, the increment and decrement only increment/decrement by 1?
        Hide
        avsej Sergey Avseyev added a comment -

        There is only one mention about :delta option: in README, and currenly I don't have code which does it, but it will be easy to implement

        Show
        avsej Sergey Avseyev added a comment - There is only one mention about :delta option: in README, and currenly I don't have code which does it, but it will be easy to implement

          People

          • Assignee:
            wayne Wayne Siu
            Reporter:
            kzeller kzeller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes