guilleiguaran/fakeredis — Issue #7: fakeredis can't work with resque scheduler
Author: saberma
Created: 2011-12-01 08:47:36+00:00
State: open

QUEUE=* bundle exec rake resque:scheduler

```ruby
rake aborted!
undefined method `zrangebyscore' for #
/home/saberma/.rvm/gems/ruby-1.9.3-p0/gems/fakeredis-0.2.2/lib/redis/connection/memory.rb:93:in `write'
/home/saberma/.rvm/gems/ruby-1.9.3-p0/gems/redis-2.2.2/lib/redis/client.rb:139:in `block (3 levels) in process'
/home/saberma/.rvm/gems/ruby-1.9.3-p0/gems/redis-2.2.2/lib/redis/client.rb:138:in `each'
/home/saberma/.rvm/gems/ruby-1.9.3-p0/gems/redis-2.2.2/lib/redis/client.rb:138:in `block (2 levels) in process'
/home/saberma/.rvm/gems/ruby-1.9.3-p0/gems/redis-2.2.2/lib/redis/client.rb:250:in `ensure_connected'
/home/saberma/.rvm/gems/ruby-1.9.3-p0/gems/redis-2.2.2/lib/redis/client.rb:137:in `block in process'
/home/saberma/.rvm/gems/ruby-1.9.3-p0/gems/redis-2.2.2/lib/redis/client.rb:206:in `logging'
/home/saberma/.rvm/gems/ruby-1.9.3-p0/gems/redis-2.2.2/lib/redis/client.rb:136:in `process'
/home/saberma/.rvm/gems/ruby-1.9.3-p0/gems/redis-2.2.2/lib/redis/client.rb:46:in `call'
/home/saberma/.rvm/gems/ruby-1.9.3-p0/gems/redis-2.2.2/lib/redis.rb:573:in `block in zrangebyscore'
/home/saberma/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/saberma/.rvm/gems/ruby-1.9.3-p0/gems/redis-2.2.2/lib/redis.rb:572:in `zrangebyscore'
/home/saberma/.rvm/gems/ruby-1.9.3-p0/gems/redis-namespace-1.0.3/lib/redis/namespace.rb:213:in `method_missing'
/home/saberma/.rvm/gems/ruby-1.9.3-p0/bundler/gems/resque-scheduler-54075b0f5492/lib/resque_scheduler.rb:170:in `next_delayed_timestamp'
/home/saberma/.rvm/gems/ruby-1.9.3-p0/bundler/gems/resque-scheduler-54075b0f5492/lib/resque/scheduler.rb:147:in `handle_delayed_items'
/home/saberma/.rvm/gems/ruby-1.9.3-p0/bundler/gems/resque-scheduler-54075b0f5492/lib/resque/scheduler.rb:51:in `block in run'
/home/saberma/.rvm/gems/ruby-1.9.3-p0/bundler/gems/resque-scheduler-54075b0f5492/lib/resque/scheduler.rb:49:in `loop'
/home/saberma/.rvm/gems/ruby-1.9.3-p0/bundler/gems/resque-scheduler-54075b0f5492/lib/resque/scheduler.rb:49:in `run'
/home/saberma/.rvm/gems/ruby-1.9.3-p0/bundler/gems/resque-scheduler-54075b0f5492/lib/resque_scheduler/tasks.rb:23:in `block (2 levels) in '
```

https://github.com/Viximo/fakeredis/commit/7f81b71fd6a9d7f7f4a6c6f7013ca5d9084913e6

This guy implement the method, consider to merge it?