Closed xiefei closed 12 years ago
I have the similar problem.
ERROR (NoMethodError): undefined method select!' for #<Array:0x1010d2990> /Users/jovikao/.gem/ruby/1.8/gems/redis-dump-0.3.2/lib/redis/dump.rb:74:in
dump'
/Users/jovikao/.gem/ruby/1.8/gems/redis-dump-0.3.2/lib/redis/dump.rb:102:in process_chunk' /Users/jovikao/.gem/ruby/1.8/gems/redis-dump-0.3.2/lib/redis/dump.rb:71:in
dump'
yes , change chunk_entries = [] chunk_entries.select! do | key |
@jovikao This issue is happening because you are using ruby 1.8.
@coliver I have a same problem like @jovikao and i try to upgrade version of ruby from 1.8.7 to 1.9.3. but It's still not working.
ERROR (NoMethodError): undefined method `select!' for #Array:0x2b87670e4a38
how should I do ?
@chatreek: It won't work on 1.8.7 because select! is not defined for Array. If you are using 1.9.3, you should not be getting that error.
How can I fix this issue?
Add this line?
"chunk_entries = []"
@delano is it fix this bug ?
I no longer work with Ruby 1.8.x but I'm happy to pull in a patch request (tests go in try/10_redis_dump_try.rb
).
this bug code file:redis/dump.rb dum method chunk_entries = [] chunk_entries.select! do | key |