Git Product home page Git Product logo

Comments (5)

sds avatar sds commented on July 17, 2024 1

Released in 0.43.0. Thanks again.

from mock_redis.

sds avatar sds commented on July 17, 2024

Hey @sho-work, sorry for the delay in response.

The version of mock_redis in your stack trace suggests you are on an older version. Can you confirm this problem still happens with the latest version? (0.42.0 at time of writing)

Thanks!

from mock_redis.

sho-work avatar sho-work commented on July 17, 2024

Hey @sds, Thank you for your response!

I tried upgrading mock_redis to version 0.42.0, but I'm still encountering an ArgumentError similar to the one below.

ArgumentError:
       wrong number of arguments (given 3, expected 2)
     # /usr/local/bundle/gems/mock_redis-0.42.0/lib/mock_redis/string_methods.rb:215:in `set'
     # /usr/local/bundle/gems/mock_redis-0.42.0/lib/mock_redis/multi_db_wrapper.rb:21:in `method_missing'
     # /usr/local/bundle/gems/mock_redis-0.42.0/lib/mock_redis/expire_wrapper.rb:17:in `method_missing'
     # /usr/local/bundle/gems/mock_redis-0.42.0/lib/mock_redis/transaction_wrapper.rb:30:in `method_missing'
     # /usr/local/bundle/gems/mock_redis-0.42.0/lib/mock_redis/pipelined_wrapper.rb:27:in `method_missing'
     # /usr/local/bundle/gems/mock_redis-0.42.0/lib/mock_redis.rb:94:in `block in method_missing'
     # /usr/local/bundle/gems/mock_redis-0.42.0/lib/mock_redis.rb:150:in `logging'
     # /usr/local/bundle/gems/mock_redis-0.42.0/lib/mock_redis.rb:93:in `method_missing'
     # /usr/local/bundle/gems/redis-rack-2.1.4/lib/rack/session/redis.rb:49:in `block (2 levels) in write_session'
     # /usr/local/bundle/gems/redis-rack-2.1.4/lib/redis/rack/connection.rb:24:in `with'
     # /usr/local/bundle/gems/redis-rack-2.1.4/lib/rack/session/redis.rb:82:in `with'
     # /usr/local/bundle/gems/redis-rack-2.1.4/lib/rack/session/redis.rb:49:in `block in write_session'
     # /usr/local/bundle/gems/redis-rack-2.1.4/lib/rack/session/redis.rb:70:in `with_lock'
     # /usr/local/bundle/gems/redis-rack-2.1.4/lib/rack/session/redis.rb:48:in `write_session'

from mock_redis.

sds avatar sds commented on July 17, 2024

Thanks for confirming. I am supportive of making the change, though I would think we would need to have _hash = nil in the signature so that any callers who don't supply the magical 3rd argument don't fail either.

If you open a PR with passing tests, happy to merge and cut a release. Thanks!

from mock_redis.

sho-work avatar sho-work commented on July 17, 2024

@sds
Thank you! I have made the modifications in the following pull request. I would appreciate it if you could review it!

from mock_redis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.