Git Product home page Git Product logo

mojox-redis's People

Contributors

marcusramberg avatar shlomif avatar und3f avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

yko shlomif

mojox-redis's Issues

Failing due to change in Mojo::IOLoop

Changes in Mojolicious version 2.27 are causing a failure of the tests and causing a failure to install

2.27 2011-11-16

  • Deprecated Mojo::IOLoop->connect in favor of Mojo::IOLoop->client.
  • Deprecated Mojo::IOLoop->listen in favor of Mojo::IOLoop->server.

t/redis.t ............. 1/10 Can't locate object method "listen" via package "Mojo::IOLoop" at t/redis.t line 42.

Looks like you planned 10 tests but ran 2.

Test Summary Report

t/redis.t (Wstat: 7424 Tests: 2 Failed: 0)
Non-zero exit status: 29
Parse errors: Bad plan. You planned 10 tests but ran 2.
Files=5, Tests=2, 1 wallclock secs ( 0.11 usr 0.02 sys + 1.50 cusr 0.10 csys = 1.73 CPU)
Result: FAIL
Failed 1/5 test programs. 0/2 subtests failed.
make: *** [test_dynamic] Error 255
UNDEF/MojoX-Redis-0.83.tar.gz
/usr/bin/make test -- NOT OK

"DEPRECATE" warnings about Mojo::IOLoop.

Due to Mojolicious changed it's API again, there are "DEPRECATED" warnings when trying to use MojoX::Redis.

Mojo::IOLoop->connect is DEPRECATED in favor of Mojo::IOLoop->client!
Mojo::IOLoop->connection_timeout is DEPRECATED in favor of
Mojo::IOLoop->timeout!
Mojo::IOLoop->write is DEPRECATED in favor of Mojo::IOLoop::Stream->write!

I had a quick check and tried to have a quick fix it, but new Mojolicious not only changed method name but also callback value/objects so it's not easy to have a "quick" fix.

missing ioloop replacement in mojolicious examples

The examples in the DOC are incomplete. as-is they will not work with mojolocious. I finally found the missing piece.

In you mojolicious application you have to replace the default MojoX ioloop instance with the Mojolicious instance.

my $redis = MojoX::Redis->new(server => '127.0.0.1:6379', ioloop => Mojo::IOLoop->new);

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.